Loading...
Searching...
No Matches
si114x_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016-2018 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "si114x.h"
20#include "saul_reg.h"
21#include "si114x_internals.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef SI114X_PARAM_I2C_DEV
32#define SI114X_PARAM_I2C_DEV I2C_DEV(0)
33#endif
34
35#ifndef SI114X_PARAMS
36#define SI114X_PARAMS { .i2c_dev = SI114X_PARAM_I2C_DEV, \
37 .led_current = SI114X_PS_LED1 }
38#endif
39#ifndef SI114X_SAUL_INFO
40#define SI114X_SAUL_INFO { .name = "si114x" }
41#endif
43
48{
49 SI114X_PARAMS
50};
51
56{
57 SI114X_SAUL_INFO
58};
59
60#ifdef __cplusplus
61}
62#endif
63
struct saul_reg saul_reg_t
SAUL registry entry.
SAUL registry interface definition.
Device driver interface for the Si114x sensors family.
Internal addresses, registers, constants for the Si114x sensors family.
static const si114x_params_t si114x_params[]
Configure Si114x.
saul_reg_t si114x_saul_reg_info[]
Allocate and configure entries to the SAUL registry.
Device initialization parameters.
Definition si114x.h:67