Loading...
Searching...
No Matches
opt3001_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
20
21#include "board.h"
22#include "opt3001.h"
23#include "saul_reg.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
34 #ifndef OPT3001_PARAM_I2C_DEV
35 #define OPT3001_PARAM_I2C_DEV I2C_DEV(0)
36 #endif
37 #ifndef OPT3001_PARAM_I2C_ADDR
38 #define OPT3001_PARAM_I2C_ADDR (CONFIG_OPT3001_I2C_ADDRESS)
39 #endif
40
41 #ifndef OPT3001_PARAMS
42 #define OPT3001_PARAMS { .i2c_dev = OPT3001_PARAM_I2C_DEV, \
43 .i2c_addr = OPT3001_PARAM_I2C_ADDR}
44
45 #endif
46 #ifndef OPT3001_SAUL_INFO
47 #define OPT3001_SAUL_INFO { .name = "opt3001" }
48 #endif
50
55 {
56 OPT3001_PARAMS
57 };
58
63 {
64 OPT3001_SAUL_INFO
65 };
66
67#ifdef __cplusplus
68}
69#endif
70
Interface definition for the OPT3001 sensor driver.
static const opt3001_params_t opt3001_params[]
OPT3001 configuration.
static const saul_reg_info_t opt3001_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
Parameters needed for device initialization.
Definition opt3001.h:95
Additional data to collect for each entry.
Definition saul_reg.h:48