si114x_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2018 Inria
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 SI114X_PARAMS_H
20 #define SI114X_PARAMS_H
21 
22 #include "board.h"
23 #include "si114x.h"
24 #include "saul_reg.h"
25 #include "si114x_internals.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #ifndef SI114X_PARAM_I2C_DEV
36 #define SI114X_PARAM_I2C_DEV I2C_DEV(0)
37 #endif
38 
39 #ifndef SI114X_PARAMS
40 #define SI114X_PARAMS { .i2c_dev = SI114X_PARAM_I2C_DEV, \
41  .led_current = SI114X_PS_LED1 }
42 #endif
43 #ifndef SI114X_SAUL_INFO
44 #define SI114X_SAUL_INFO { .name = "si114x" }
45 #endif
46 
52 {
53  SI114X_PARAMS
54 };
55 
60 {
61  SI114X_SAUL_INFO
62 };
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif /* SI114X_PARAMS_H */
69 
Internal addresses, registers, constants for the Si114x sensors family.
static const si114x_params_t si114x_params[]
Configure Si114x.
Definition: si114x_params.h:51
Device driver interface for the Si114x sensors family.
Device initialization parameters.
Definition: si114x.h:68
saul_reg_t si114x_saul_reg_info[]
Allocate and configure entries to the SAUL registry.
Definition: si114x_params.h:59
SAUL registry interface definition.
SAUL registry entry.
Definition: saul_reg.h:39