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
9#pragma once
10
20
21#include "board.h"
22#include "hsc.h"
23#include "hsc_internals.h"
24#include "saul_reg.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#ifndef HSC_PARAM_I2C_DEV
35#define HSC_PARAM_I2C_DEV I2C_DEV(0)
36#endif
37#ifndef HSC_PARAM_I2C_ADDR
38#define HSC_PARAM_I2C_ADDR CONFIG_HSC_I2C_ADDR
39#endif
40#ifndef HSC_PARAM_RANGE
41#define HSC_PARAM_RANGE CONFIG_HSC_RANGE
42#endif
43
44#ifndef HSC_PARAMS
45#define HSC_PARAMS { .i2c_dev = HSC_PARAM_I2C_DEV, \
46 .i2c_addr = HSC_PARAM_I2C_ADDR, \
47 .hsc_range = HSC_PARAM_RANGE, }
48#endif
49#ifndef HSC_SAUL_INFO
50#define HSC_SAUL_INFO { .name = "hsc" }
51#endif
53
57static const hsc_params_t hsc_params[] =
58{
59 HSC_PARAMS
60};
61
66{
67 HSC_SAUL_INFO
68};
69
70#ifdef __cplusplus
71}
72#endif
73
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:57
static const saul_reg_info_t hsc_saul_info[]
Configure SAUL registry entries.
Definition hsc_params.h:65
SAUL registry interface definition.
Device initialization parameters.
Definition hsc.h:36
Additional data to collect for each entry.
Definition saul_reg.h:48