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 
9 #pragma once
10 
21 #include "board.h"
22 #include "si114x.h"
23 #include "saul_reg.h"
24 #include "si114x_internals.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #ifndef SI114X_PARAM_I2C_DEV
35 #define SI114X_PARAM_I2C_DEV I2C_DEV(0)
36 #endif
37 
38 #ifndef SI114X_PARAMS
39 #define SI114X_PARAMS { .i2c_dev = SI114X_PARAM_I2C_DEV, \
40  .led_current = SI114X_PS_LED1 }
41 #endif
42 #ifndef SI114X_SAUL_INFO
43 #define SI114X_SAUL_INFO { .name = "si114x" }
44 #endif
51 {
52  SI114X_PARAMS
53 };
54 
59 {
60  SI114X_SAUL_INFO
61 };
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
SAUL registry interface definition.
Device driver interface for the Si114x sensors family.
Internal addresses, registers, constants for the Si114x sensors family.
static const si114x_params_t si114x_params[]
Configure Si114x.
Definition: si114x_params.h:50
saul_reg_t si114x_saul_reg_info[]
Allocate and configure entries to the SAUL registry.
Definition: si114x_params.h:58
SAUL registry entry.
Definition: saul_reg.h:38
Device initialization parameters.
Definition: si114x.h:67