Loading...
Searching...
No Matches
si1133_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 iosabi
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "si1133.h"
20#include "saul_reg.h"
21#include "si1133_internals.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef SI1133_PARAM_I2C_DEV
32#define SI1133_PARAM_I2C_DEV I2C_DEV(0)
33#endif
34
35#ifndef SI1133_PARAM_ADDR
36#define SI1133_PARAM_ADDR SI1133_I2C_ADDRESS
37#endif
38
39#ifndef SI1133_PARAMS
40#define SI1133_PARAMS { .i2c_dev = SI1133_PARAM_I2C_DEV, \
41 .address = SI1133_PARAM_ADDR }
42#endif
43
44#ifndef SI1133_SAUL_INFO
45#define SI1133_SAUL_INFO { .name = "si1133" }
46#endif
48
53{
54 SI1133_PARAMS
55};
56
61{
62 SI1133_SAUL_INFO
63};
64
65#ifdef __cplusplus
66}
67#endif
68
struct saul_reg saul_reg_t
SAUL registry entry.
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.
saul_reg_t si1133_saul_reg_info[]
Allocate and configure entries to the SAUL registry.
Device initialization parameters.
Definition si1133.h:103