Loading...
Searching...
No Matches
tmp00x_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017-2019 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "tmp00x.h"
20#include "saul_reg.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
31#ifndef TMP00X_PARAM_I2C
35#define TMP00X_PARAM_I2C I2C_DEV(0)
36#endif
37
38#ifndef TMP00X_PARAM_ADDR
42#define TMP00X_PARAM_ADDR (CONFIG_TMP00X_I2C_ADDRESS)
43#endif
44
45#ifndef TMP00X_PARAM_RATE
49#define TMP00X_PARAM_RATE TMP00X_CONFIG_CR_DEF
50#endif
51
52#ifndef TMP00X_PARAMS
56#define TMP00X_PARAMS { .i2c = TMP00X_PARAM_I2C, \
57 .addr = TMP00X_PARAM_ADDR, \
58 .rate = TMP00X_PARAM_RATE }
59#endif
60
61#ifndef TMP00X_SAUL_INFO
65#define TMP00X_SAUL_INFO { .name = "tmp00x" }
66#endif
68
73{
75};
76
84
85#ifdef __cplusplus
86}
87#endif
88
SAUL registry interface definition.
Additional data to collect for each entry.
Definition saul_reg.h:48
Parameters needed for device initialization.
Definition tmp00x.h:190
Interface definition for the TMP00X sensor driver.
#define TMP00X_PARAMS
The parameters to initialize the TMP00X device driver with.
static const tmp00x_params_t tmp00x_params[]
TMP00X configuration.
static const saul_reg_info_t tmp00x_saul_info[]
Additional meta information to keep in the SAUL registry.
#define TMP00X_SAUL_INFO
The SAUL info to register the TMP00x device driver instances with.