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