Loading...
Searching...
No Matches
hsc_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
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
19#ifndef HSC_PARAMS_H
20#define HSC_PARAMS_H
21
22#include "board.h"
23#include "hsc.h"
24#include "hsc_internals.h"
25#include "saul_reg.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
35#ifndef HSC_PARAM_I2C_DEV
36#define HSC_PARAM_I2C_DEV I2C_DEV(0)
37#endif
38#ifndef HSC_PARAM_I2C_ADDR
39#define HSC_PARAM_I2C_ADDR CONFIG_HSC_I2C_ADDR
40#endif
41#ifndef HSC_PARAM_RANGE
42#define HSC_PARAM_RANGE CONFIG_HSC_RANGE
43#endif
44
45#ifndef HSC_PARAMS
46#define HSC_PARAMS { .i2c_dev = HSC_PARAM_I2C_DEV, \
47 .i2c_addr = HSC_PARAM_I2C_ADDR, \
48 .hsc_range = HSC_PARAM_RANGE, }
49#endif
50#ifndef HSC_SAUL_INFO
51#define HSC_SAUL_INFO { .name = "hsc" }
52#endif
58static const hsc_params_t hsc_params[] =
59{
60 HSC_PARAMS
61};
62
67{
68 HSC_SAUL_INFO
69};
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* HSC_PARAMS_H */
Device driver interface for the HSC sensor.
Internal addresses, constants for the HSC sensor.
static const hsc_params_t hsc_params[]
Configure HSC.
Definition hsc_params.h:58
static const saul_reg_info_t hsc_saul_info[]
Configure SAUL registry entries.
Definition hsc_params.h:66
SAUL registry interface definition.
Device initialization parameters.
Definition hsc.h:37
Additional data to collect for each entry.
Definition saul_reg.h:49