ds75lx_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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 DS75LX_PARAMS_H
20 #define DS75LX_PARAMS_H
21 
22 #include "board.h"
23 #include "ds75lx.h"
24 #include "ds75lx_internals.h"
25 #include "saul_reg.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #ifndef DS75LX_PARAM_I2C_DEV
36 #define DS75LX_PARAM_I2C_DEV I2C_DEV(0)
37 #endif
38 #ifndef DS75LX_PARAM_I2C_ADDR
39 #define DS75LX_PARAM_I2C_ADDR DS75LX_ADDR
40 #endif
41 #ifndef DS75LX_PARAM_RESOLUTION
42 #define DS75LX_PARAM_RESOLUTION DS75LX_RESOLUTION_10
43 #endif
44 
45 #ifndef DS75LX_PARAMS
46 #define DS75LX_PARAMS { .i2c = DS75LX_PARAM_I2C_DEV, \
47  .addr = DS75LX_PARAM_I2C_ADDR, \
48  .resolution = DS75LX_PARAM_RESOLUTION }
49 #endif
50 #ifndef DS75LX_SAUL_INFO
51 #define DS75LX_SAUL_INFO { .name = "ds75lx" }
52 #endif
53 
59 {
60  DS75LX_PARAMS
61 };
62 
67 {
68  DS75LX_SAUL_INFO
69 };
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* DS75LX_PARAMS_H */
76 
static const ds75lx_params_t ds75lx_params[]
Configure DS75LX.
Definition: ds75lx_params.h:58
Device initialization parameters.
Definition: ds75lx.h:46
Internal addresses, registers, constants for the DS75LX sensor.
static const saul_reg_info_t ds75lx_saul_info[]
Configure SAUL registry entries.
Definition: ds75lx_params.h:66
Additional data to collect for each entry.
Definition: saul_reg.h:49
SAUL registry interface definition.