si1133_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 iosabi
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
9 #pragma once
10 
21 #include "board.h"
22 #include "si1133.h"
23 #include "saul_reg.h"
24 #include "si1133_internals.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #ifndef SI1133_PARAM_I2C_DEV
35 #define SI1133_PARAM_I2C_DEV I2C_DEV(0)
36 #endif
37 
38 #ifndef SI1133_PARAM_ADDR
39 #define SI1133_PARAM_ADDR SI1133_I2C_ADDRESS
40 #endif
41 
42 #ifndef SI1133_PARAMS
43 #define SI1133_PARAMS { .i2c_dev = SI1133_PARAM_I2C_DEV, \
44  .address = SI1133_PARAM_ADDR }
45 #endif
46 
47 #ifndef SI1133_SAUL_INFO
48 #define SI1133_SAUL_INFO { .name = "si1133" }
49 #endif
56 {
57  SI1133_PARAMS
58 };
59 
64 {
65  SI1133_SAUL_INFO
66 };
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
SAUL registry interface definition.
Device driver interface for the Si1133 sensor.
Internal addresses, registers, constants for the Si1133 sensors family.
static const si1133_params_t si1133_params[]
Configure Si1133.
Definition: si1133_params.h:55
saul_reg_t si1133_saul_reg_info[]
Allocate and configure entries to the SAUL registry.
Definition: si1133_params.h:63
SAUL registry entry.
Definition: saul_reg.h:38
Device initialization parameters.
Definition: si1133.h:103