Loading...
Searching...
No Matches
hsc_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board.h"
19#include "hsc.h"
20#include "hsc_internals.h"
21#include "saul_reg.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31#ifndef HSC_PARAM_I2C_DEV
32#define HSC_PARAM_I2C_DEV I2C_DEV(0)
33#endif
34#ifndef HSC_PARAM_I2C_ADDR
35#define HSC_PARAM_I2C_ADDR CONFIG_HSC_I2C_ADDR
36#endif
37#ifndef HSC_PARAM_RANGE
38#define HSC_PARAM_RANGE CONFIG_HSC_RANGE
39#endif
40
41#ifndef HSC_PARAMS
42#define HSC_PARAMS { .i2c_dev = HSC_PARAM_I2C_DEV, \
43 .i2c_addr = HSC_PARAM_I2C_ADDR, \
44 .hsc_range = HSC_PARAM_RANGE, }
45#endif
46#ifndef HSC_SAUL_INFO
47#define HSC_SAUL_INFO { .name = "hsc" }
48#endif
50
54static const hsc_params_t hsc_params[] =
55{
56 HSC_PARAMS
57};
58
63{
64 HSC_SAUL_INFO
65};
66
67#ifdef __cplusplus
68}
69#endif
70
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:54
static const saul_reg_info_t hsc_saul_info[]
Configure SAUL registry entries.
Definition hsc_params.h:62
SAUL registry interface definition.
Device initialization parameters.
Definition hsc.h:36
Additional data to collect for each entry.
Definition saul_reg.h:48