sen5x_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 TU Braunschweig Institut für Betriebssysteme und Rechnerverbund
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 "sen5x.h"
23 #include "saul_reg.h"
24 #include "sen5x_constants.h"
25 #include "periph/i2c.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #ifndef SEN5X_PARAM_I2C_DEV
39 #define SEN5X_PARAM_I2C_DEV I2C_DEV(0)
40 #endif
41 
42 #ifndef SEN5X_PARAM_ADDR
46 #define SEN5X_PARAM_ADDR SEN5X_ADRESS_I2C
47 #endif
48 
49 #ifndef SEN5X_PARAMS
53 #define SEN5X_PARAMS { .i2c_dev = SEN5X_PARAM_I2C_DEV, \
54  .i2c_addr = SEN5X_PARAM_ADDR }
55 #endif
56 
57 #ifndef SEN5X_SAUL_INFO
61 #define SEN5X_SAUL_INFO { .name = "sen5x" }
62 #endif
68 static const sen5x_params_t sen5x_params[] =
69 {
71 };
72 
77 {
79 };
80 
85 #define SEN5X_NUM ARRAY_SIZE(sen5x_params)
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
Low-level I2C peripheral driver interface definition.
SAUL registry interface definition.
Internal addresses, registers and constants.
static const sen5x_params_t sen5x_params[]
Configure SEN55/54.
Definition: sen5x_params.h:68
#define SEN5X_PARAMS
Initialization parameters for the SEN5x driver.
Definition: sen5x_params.h:53
static const saul_reg_info_t sen5x_saul_info[]
Configure SAUL registry entries.
Definition: sen5x_params.h:76
#define SEN5X_SAUL_INFO
Name for this driver used in SAUL.
Definition: sen5x_params.h:61
Additional data to collect for each entry.
Definition: saul_reg.h:49
Device initialization parameters.
Definition: sen5x.h:70