9 extern const struct adc_ops test_ops;
17 bool (*callback)(
struct adc *adc, uint32_t channel, int32_t value,
void *data);
20 int32_t (*test_callback)(
struct adc *adc, uint32_t channel,
void *data);
24 int32_t
adc_test_connect(
struct adc *adc, int32_t callback(
struct adc *adc, uint32_t channel,
void *data),
void *data);
25 #define ADD_ADC_TEST(_channelID) \
26 struct adc_test test_##_channelID = { \
28 HAL_NAME("Test ADC Channel " #_channelID) \
29 .channelID = _channelID, \
31 ADC_ADDDEV(test, test_##_channelID)
32 #define TEST_ID(_channelID) HAL_GET_ID(adc, test, test_##_channelID)