Loading...
Searching...
No Matches
sen5x_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 TU Braunschweig Institut für Betriebssysteme und Rechnerverbund
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "sen5x.h"
20#include "saul_reg.h"
21#include "sen5x_constants.h"
22#include "periph/i2c.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#ifndef SEN5X_PARAM_I2C_DEV
36#define SEN5X_PARAM_I2C_DEV I2C_DEV(0)
37#endif
38
39#ifndef SEN5X_PARAM_ADDR
43#define SEN5X_PARAM_ADDR SEN5X_ADRESS_I2C
44#endif
45
46#ifndef SEN5X_PARAMS
50#define SEN5X_PARAMS { .i2c_dev = SEN5X_PARAM_I2C_DEV, \
51 .i2c_addr = SEN5X_PARAM_ADDR }
52#endif
53
54#ifndef SEN5X_SAUL_INFO
58#define SEN5X_SAUL_INFO { .name = "sen5x" }
59#endif
61
66{
68};
69
74{
76};
77
81
82#define SEN5X_NUM ARRAY_SIZE(sen5x_params)
83
84#ifdef __cplusplus
85}
86#endif
87
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.
#define SEN5X_PARAMS
Initialization parameters for the SEN5x driver.
static const saul_reg_info_t sen5x_saul_info[]
Configure SAUL registry entries.
#define SEN5X_SAUL_INFO
Name for this driver used in SAUL.
Additional data to collect for each entry.
Definition saul_reg.h:48
Device initialization parameters.
Definition sen5x.h:70