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
9#pragma once
10
20
21#include "board.h"
22#include "tmp00x.h"
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
34#ifndef TMP00X_PARAM_I2C
38#define TMP00X_PARAM_I2C I2C_DEV(0)
39#endif
40
41#ifndef TMP00X_PARAM_ADDR
45#define TMP00X_PARAM_ADDR (CONFIG_TMP00X_I2C_ADDRESS)
46#endif
47
48#ifndef TMP00X_PARAM_RATE
52#define TMP00X_PARAM_RATE TMP00X_CONFIG_CR_DEF
53#endif
54
55#ifndef TMP00X_PARAMS
59#define TMP00X_PARAMS { .i2c = TMP00X_PARAM_I2C, \
60 .addr = TMP00X_PARAM_ADDR, \
61 .rate = TMP00X_PARAM_RATE }
62#endif
63
64#ifndef TMP00X_SAUL_INFO
68#define TMP00X_SAUL_INFO { .name = "tmp00x" }
69#endif
71
76{
78};
79
87
88#ifdef __cplusplus
89}
90#endif
91
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.