Loading...
Searching...
No Matches
tmp00x_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 - 2019 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 TMP00X_PARAMS_H
20#define TMP00X_PARAMS_H
21
22#include "board.h"
23#include "tmp00x.h"
24#include "saul_reg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
35#ifndef TMP00X_PARAM_I2C
39#define TMP00X_PARAM_I2C I2C_DEV(0)
40#endif
41
42#ifndef TMP00X_PARAM_ADDR
46#define TMP00X_PARAM_ADDR (CONFIG_TMP00X_I2C_ADDRESS)
47#endif
48
49#ifndef TMP00X_PARAM_RATE
53#define TMP00X_PARAM_RATE TMP00X_CONFIG_CR_DEF
54#endif
55
56#ifndef TMP00X_PARAMS
60#define TMP00X_PARAMS { .i2c = TMP00X_PARAM_I2C, \
61 .addr = TMP00X_PARAM_ADDR, \
62 .rate = TMP00X_PARAM_RATE }
63#endif
64
65#ifndef TMP00X_SAUL_INFO
69#define TMP00X_SAUL_INFO { .name = "tmp00x" }
70#endif
77{
79};
80
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* TMP00X_PARAMS_H */
SAUL registry interface definition.
Additional data to collect for each entry.
Definition saul_reg.h:49
Parameters needed for device initialization.
Definition tmp00x.h:192
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.