21#ifndef PROTOCORE_LDC1614_H
22#define PROTOCORE_LDC1614_H
26#if PROTOCORE_ENABLE_LDC1614
34#define LDC1614_REG_DATA_CH0_MSB 0x00
36#define LDC1614_REG_DATA_CH0_LSB 0x01
38#define LDC1614_REG_RCOUNT_CH0 0x08
40#define LDC1614_REG_SETTLECOUNT_CH0 0x10
42#define LDC1614_REG_CLOCK_DIVIDERS_CH0 0x14
44#define LDC1614_REG_STATUS 0x18
46#define LDC1614_REG_ERROR_CONFIG 0x19
48#define LDC1614_REG_CONFIG 0x1A
50#define LDC1614_REG_MUX_CONFIG 0x1B
52#define LDC1614_REG_DRIVE_CURRENT_CH0 0x1E
54#define LDC1614_REG_MANUFACTURER_ID 0x7E
56#define LDC1614_REG_DEVICE_ID 0x7F
58#define LDC1614_MANUFACTURER_ID 0x5449
60#define LDC1614_DEVICE_ID 0x3055
62#define LDC1614_CONFIG_MAX 21
82} Ldc1614SensorFreqHzArgs;
91} Ldc1614BuildConfigArgs;
141 Ldc1614DataArgs data_args;
142 Ldc1614ErrorArgs error_args;
143 Ldc1614SensorFreqHzArgs sensor_freq_hz_args;
144 Ldc1614BuildConfigArgs build_config_args;
145 Ldc1614BeginArgs begin_args;
146 Ldc1614ReadCh0Args read_ch0_args;
155extern Ldc1614Vars Ldc1614V;
160 void (*
const data)(uint8_t *work);
161 void (*
const error)(uint8_t *work);
162 void (*
const sensor_freq_hz)(uint8_t *work);
163 void (*
const build_config)(uint8_t *work);
164 void (*
const begin)(uint8_t *work);
165 void (*
const read_ch0)(uint8_t *work);
170void protocore_ldc1614_data(uint8_t *work);
171void protocore_ldc1614_error(uint8_t *work);
172void protocore_ldc1614_sensor_freq_hz(uint8_t *work);
173void protocore_ldc1614_build_config(uint8_t *work);
174void protocore_ldc1614_begin(uint8_t *work);
175void protocore_ldc1614_read_ch0(uint8_t *work);
181static const Ldc1614Ns Ldc1614 __attribute__((unused)) = {
182 .data = protocore_ldc1614_data,
183 .error = protocore_ldc1614_error,
184 .sensor_freq_hz = protocore_ldc1614_sensor_freq_hz,
185 .build_config = protocore_ldc1614_build_config,
186 .begin = protocore_ldc1614_begin,
187 .read_ch0 = protocore_ldc1614_read_ch0,
199uint8_t *protocore_ldc1614_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