Loading...
Searching...
No Matches
si70xx_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Inria
3 * 2017 Freie Universität Berlin
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
10#pragma once
11
22
23#include "board.h"
24#include "si70xx.h"
25#include "saul_reg.h"
26#include "si70xx_internals.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
36#ifndef SI70XX_PARAM_I2C_DEV
37#define SI70XX_PARAM_I2C_DEV I2C_DEV(0)
38#endif
39#ifndef SI70XX_PARAM_ADDR
40#define SI70XX_PARAM_ADDR SI70XX_I2C_ADDRESS
41#endif
42
43#ifndef SI70XX_PARAMS
44#define SI70XX_PARAMS { .i2c_dev = SI70XX_PARAM_I2C_DEV, \
45 .address = SI70XX_PARAM_ADDR }
46#endif
47#ifndef SI70XX_SAUL_INFO
48#define SI70XX_SAUL_INFO { .name = "si70xx" }
49#endif
51
56{
57 SI70XX_PARAMS
58};
59
64{
65 SI70XX_SAUL_INFO
66};
67
68#ifdef __cplusplus
69}
70#endif
71
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