Loading...
Searching...
No Matches
seesaw_soil_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Viktor Gal
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "seesaw_soil.h"
20#include "saul_reg.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#ifndef SEESAW_SOIL_PARAM_I2C
31#define SEESAW_SOIL_PARAM_I2C I2C_DEV(0)
32#endif
33#ifndef SEESAW_SOIL_PARAM_ADDR
34#define SEESAW_SOIL_PARAM_ADDR (CONFIG_SEESAW_SOIL_I2C_ADDRESS)
35#endif
36
37#ifndef SEESAW_SOIL_PARAMS
38#define SEESAW_SOIL_PARAMS { .i2c = SEESAW_SOIL_PARAM_I2C, \
39 .addr = SEESAW_SOIL_PARAM_ADDR }
40#endif
41#ifndef SEESAW_SOIL_SAUL_INFO
42#define SEESAW_SOIL_SAUL_INFO { .name = "seesaw_soil" }
43#endif
45
50{
51 SEESAW_SOIL_PARAMS
52};
53
58{
59 SEESAW_SOIL_SAUL_INFO
60};
61
62#ifdef __cplusplus
63}
64#endif
65
SAUL registry interface definition.
Interface definition for the Adafruit Seesaw Soil sensor.
static const saul_reg_info_t seesaw_soil_saul_info[]
Additional meta information to keep in the SAUL registry.
static const seesaw_soil_params_t seesaw_soil_params[]
Seesaw Soil configuration.
Additional data to collect for each entry.
Definition saul_reg.h:48
Parameters needed for device initialization.
Definition seesaw_soil.h:66