Loading...
Searching...
No Matches
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
19#ifndef SI1133_PARAMS_H
20#define SI1133_PARAMS_H
21
22#include "board.h"
23#include "si1133.h"
24#include "saul_reg.h"
25#include "si1133_internals.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
35#ifndef SI1133_PARAM_I2C_DEV
36#define SI1133_PARAM_I2C_DEV I2C_DEV(0)
37#endif
38
39#ifndef SI1133_PARAM_ADDR
40#define SI1133_PARAM_ADDR SI1133_I2C_ADDRESS
41#endif
42
43#ifndef SI1133_PARAMS
44#define SI1133_PARAMS { .i2c_dev = SI1133_PARAM_I2C_DEV, \
45 .address = SI1133_PARAM_ADDR }
46#endif
47
48#ifndef SI1133_SAUL_INFO
49#define SI1133_SAUL_INFO { .name = "si1133" }
50#endif
57{
58 SI1133_PARAMS
59};
60
65{
66 SI1133_SAUL_INFO
67};
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* SI1133_PARAMS_H */
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.
SAUL registry entry.
Definition saul_reg.h:39
Device initialization parameters.
Definition si1133.h:104