Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
27
extern
"C"
{
28
#endif
29
35
#ifndef TMP00X_PARAM_I2C
36
#define TMP00X_PARAM_I2C I2C_DEV(0)
37
#endif
38
#ifndef TMP00X_PARAM_ADDR
39
#define TMP00X_PARAM_ADDR (CONFIG_TMP00X_I2C_ADDRESS)
40
#endif
41
#ifndef TMP00X_PARAM_RATE
42
#define TMP00X_PARAM_RATE TMP00X_CONFIG_CR_DEF
43
#endif
44
45
#ifndef TMP00X_PARAMS
46
#define TMP00X_PARAMS { .i2c = TMP00X_PARAM_I2C, \
47
.addr = TMP00X_PARAM_ADDR, \
48
.rate = TMP00X_PARAM_RATE }
49
#endif
50
#ifndef TMP00X_SAUL_INFO
51
#define TMP00X_SAUL_INFO { .name = "tmp00x" }
52
#endif
53
58
static
const
tmp00x_params_t
tmp00x_params
[] =
59
{
60
TMP00X_PARAMS
61
};
62
66
static
const
saul_reg_info_t
tmp00x_saul_info
[] =
67
{
68
TMP00X_SAUL_INFO
69
};
70
71
#ifdef __cplusplus
72
}
73
#endif
74
75
#endif
/* TMP00X_PARAMS_H */
76
tmp00x_params_t
Parameters needed for device initialization.
Definition:
tmp00x.h:190
saul_reg_info_t
Additional data to collect for each entry.
Definition:
saul_reg.h:49
tmp00x_saul_info
static const saul_reg_info_t tmp00x_saul_info[]
Additional meta information to keep in the SAUL registry.
Definition:
tmp00x_params.h:66
tmp00x.h
Interface definition for the TMP00X sensor driver.
tmp00x_params
static const tmp00x_params_t tmp00x_params[]
TMP00X configuration.
Definition:
tmp00x_params.h:58
saul_reg.h
SAUL registry interface definition.
Generated on Tue Nov 24 2020 19:46:51 by
1.8.17