22#ifndef PROTOCORE_FDC2214_H
23#define PROTOCORE_FDC2214_H
27#if PROTOCORE_ENABLE_FDC2214
35#define FDC2214_REG_DATA_CH0_MSB 0x00
37#define FDC2214_REG_DATA_CH0_LSB 0x01
39#define FDC2214_REG_RCOUNT_CH0 0x08
41#define FDC2214_REG_SETTLECOUNT_CH0 0x10
43#define FDC2214_REG_CLOCK_DIVIDERS_CH0 0x14
45#define FDC2214_REG_STATUS 0x18
47#define FDC2214_REG_ERROR_CONFIG 0x19
49#define FDC2214_REG_CONFIG 0x1A
51#define FDC2214_REG_MUX_CONFIG 0x1B
53#define FDC2214_REG_DRIVE_CURRENT_CH0 0x1E
55#define FDC2214_REG_MANUFACTURER_ID 0x7E
57#define FDC2214_REG_DEVICE_ID 0x7F
59#define FDC2214_MANUFACTURER_ID 0x5449
61#define FDC2214_DEVICE_ID 0x3055
63#define FDC2214_CONFIG_MAX 21
83} Fdc2214SensorFreqHzArgs;
92} Fdc2214BuildConfigArgs;
142 Fdc2214DataArgs data_args;
143 Fdc2214ErrorArgs error_args;
144 Fdc2214SensorFreqHzArgs sensor_freq_hz_args;
145 Fdc2214BuildConfigArgs build_config_args;
146 Fdc2214BeginArgs begin_args;
147 Fdc2214ReadCh0Args read_ch0_args;
156extern Fdc2214Vars Fdc2214V;
161 void (*
const data)(uint8_t *work);
162 void (*
const error)(uint8_t *work);
163 void (*
const sensor_freq_hz)(uint8_t *work);
164 void (*
const build_config)(uint8_t *work);
165 void (*
const begin)(uint8_t *work);
166 void (*
const read_ch0)(uint8_t *work);
171void protocore_fdc2214_data(uint8_t *work);
172void protocore_fdc2214_error(uint8_t *work);
173void protocore_fdc2214_sensor_freq_hz(uint8_t *work);
174void protocore_fdc2214_build_config(uint8_t *work);
175void protocore_fdc2214_begin(uint8_t *work);
176void protocore_fdc2214_read_ch0(uint8_t *work);
182static const Fdc2214Ns Fdc2214 __attribute__((unused)) = {
183 .data = protocore_fdc2214_data,
184 .error = protocore_fdc2214_error,
185 .sensor_freq_hz = protocore_fdc2214_sensor_freq_hz,
186 .build_config = protocore_fdc2214_build_config,
187 .begin = protocore_fdc2214_begin,
188 .read_ch0 = protocore_fdc2214_read_ch0,
200uint8_t *protocore_fdc2214_span(
void);
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS