Loading...
Searching...
No Matches
max31855_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "saul_reg.h"
20
21#include "max31855.h"
22#include "max31855_constants.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
35#ifndef MAX31855_PARAM_PARAM_SPI
36#define MAX31855_PARAM_PARAM_SPI (SPI_DEV(0))
37#endif
41#ifndef MAX31855_PARAM_PARAM_CS_PIN
42#define MAX31855_PARAM_PARAM_CS_PIN (GPIO_PIN(0, 4))
43#endif
47#ifndef MAX31855_PARAMS
48#define MAX31855_PARAMS { \
49 .spi = MAX31855_PARAM_PARAM_SPI, \
50 .cs_pin = MAX31855_PARAM_PARAM_CS_PIN, \
51}
52#endif
56#ifndef MAX31855_SAULINFO
57#define MAX31855_SAULINFO { .name = "max31855_thermo" },{ .name = "max31855_internal" }
58#endif
60
68
76
77#ifdef __cplusplus
78}
79#endif
80
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:47
Additional data to collect for each entry.
Definition saul_reg.h:48