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
19#ifndef MAX31855_PARAMS_H
20#define MAX31855_PARAMS_H
21
22#include "board.h"
23#include "saul_reg.h"
24
25#include "max31855.h"
26#include "max31855_constants.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
39#ifndef MAX31855_PARAM_PARAM_SPI
40#define MAX31855_PARAM_PARAM_SPI (SPI_DEV(0))
41#endif
45#ifndef MAX31855_PARAM_PARAM_CS_PIN
46#define MAX31855_PARAM_PARAM_CS_PIN (GPIO_PIN(0, 4))
47#endif
51#ifndef MAX31855_PARAMS
52#define MAX31855_PARAMS { \
53 .spi = MAX31855_PARAM_PARAM_SPI, \
54 .cs_pin = MAX31855_PARAM_PARAM_CS_PIN, \
55}
56#endif
60#ifndef MAX31855_SAULINFO
61#define MAX31855_SAULINFO { .name = "max31855_thermo" },{ .name = "max31855_internal" }
62#endif
72
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif /* MAX31855_PARAMS_H */
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:51
Additional data to collect for each entry.
Definition saul_reg.h:49