Loading...
Searching...
No Matches
si70xx_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Inria
3 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#include "board.h"
21#include "si70xx.h"
22#include "saul_reg.h"
23#include "si70xx_internals.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef SI70XX_PARAM_I2C_DEV
34#define SI70XX_PARAM_I2C_DEV I2C_DEV(0)
35#endif
36#ifndef SI70XX_PARAM_ADDR
37#define SI70XX_PARAM_ADDR SI70XX_I2C_ADDRESS
38#endif
39
40#ifndef SI70XX_PARAMS
41#define SI70XX_PARAMS { .i2c_dev = SI70XX_PARAM_I2C_DEV, \
42 .address = SI70XX_PARAM_ADDR }
43#endif
44#ifndef SI70XX_SAUL_INFO
45#define SI70XX_SAUL_INFO { .name = "si70xx" }
46#endif
48
53{
54 SI70XX_PARAMS
55};
56
61{
62 SI70XX_SAUL_INFO
63};
64
65#ifdef __cplusplus
66}
67#endif
68
SAUL registry interface definition.
Interface definition of the Si70xx driver.
Internal definitions for Si7006/13/20/21.
static const si70xx_params_t si70xx_params[]
Configure Si7006/13/20/21.
static const saul_reg_info_t si70xx_saul_info[]
Configure SAUL registry entries.
Additional data to collect for each entry.
Definition saul_reg.h:48
Device initialization parameters.
Definition si70xx.h:64