Loading...
Searching...
No Matches
hm330x_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Inria
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 HM330X_PARAMS_H
20#define HM330X_PARAMS_H
21
22#include "board.h"
23#include "saul_reg.h"
24
25#include "hm330x.h"
26#include "hm330x_constants.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
39#ifndef HM330X_PARAM_I2C_DEV
40#define HM330X_PARAM_I2C_DEV I2C_DEV(0)
41#endif
45#ifndef HM330X_PARAM_RESET_PIN
46#define HM330X_PARAM_RESET_PIN GPIO_UNDEF
47#endif
51#ifndef HM330X_PARAM_SET_PIN
52#define HM330X_PARAM_SET_PIN GPIO_UNDEF
53#endif
57#ifndef HM330X_SAUL_INFO
58#define HM330X_SAUL_INFO { .name = "hm330x" }
59#endif
63#ifndef HM330X_PARAMS
64#define HM330X_PARAMS { .i2c = HM330X_PARAM_I2C_DEV, \
65 .reset_pin = HM330X_PARAM_RESET_PIN, \
66 .set_pin = HM330X_PARAM_SET_PIN }
67#endif
74{
76};
77
81#define HM330X_NUMOF ARRAY_SIZE(hm330x_params)
82
90
94#define HM330X_INFO_NUM ARRAY_SIZE(hm330x_saul_info)
95
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif /* HM330X_PARAMS_H */
Internal addresses, registers and constants.
static const saul_reg_info_t hm330x_saul_info[]
Additional meta information to keep in the SAUL registry.
#define HM330X_SAUL_INFO
HM330X default SAUL information.
static const hm330x_params_t hm330x_params[]
Configuration struct.
#define HM330X_PARAMS
HM330X default parameters.
SAUL registry interface definition.
Device initialization parameters.
Definition hm330x.h:79
Additional data to collect for each entry.
Definition saul_reg.h:49