Loading...
Searching...
No Matches
max31855_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
20
21#include "board.h"
22#include "saul_reg.h"
23
24#include "max31855.h"
25#include "max31855_constants.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
38#ifndef MAX31855_PARAM_PARAM_SPI
39#define MAX31855_PARAM_PARAM_SPI (SPI_DEV(0))
40#endif
44#ifndef MAX31855_PARAM_PARAM_CS_PIN
45#define MAX31855_PARAM_PARAM_CS_PIN (GPIO_PIN(0, 4))
46#endif
50#ifndef MAX31855_PARAMS
51#define MAX31855_PARAMS { \
52 .spi = MAX31855_PARAM_PARAM_SPI, \
53 .cs_pin = MAX31855_PARAM_PARAM_CS_PIN, \
54}
55#endif
59#ifndef MAX31855_SAULINFO
60#define MAX31855_SAULINFO { .name = "max31855_thermo" },{ .name = "max31855_internal" }
61#endif
63
71
79
80#ifdef __cplusplus
81}
82#endif
83
Internal addresses, registers and constants.
static const max31855_params_t max31855_params[]
Configuration structs for the MAX31855 driver.
static const saul_reg_info_t max31855_saul_info[]
Allocate and configure entries to the SAUL registry.
#define MAX31855_PARAMS
Default parameters for the MAX31855 driver.
#define MAX31855_SAULINFO
Default SAUL info for the MAX31855 driver.
SAUL registry interface definition.
Device initialization parameters.
Definition max31855.h:50
Additional data to collect for each entry.
Definition saul_reg.h:48