31#define NUM_ADC_CHANNELS 19U
33#define ADC_TIMEOUT_MS 100U
100#ifdef MS_PLATFORM_X86
StatusCode adc_read_raw(GpioAddress *address, uint16_t *reading)
Read the most recent raw value for a Gpio address.
Definition: adc.c:219
StatusCode adc_run(void)
Runs ADC conversions for all added channels.
Definition: adc.c:202
StatusCode adc_init(void)
Initialize the ADC instance.
Definition: adc.c:99
StatusCode adc_add_channel(GpioAddress *address)
Adds an ADC channel for a given Gpio.
Definition: adc.c:177
StatusCode adc_read_converted(GpioAddress *address, uint16_t *reading)
Read the most recent converted value for a Gpio address in mV.
Definition: adc.c:235
AdcMode
Available ADC modes.
Definition: adc.h:38
void adc_deinit(void)
Clears the ADC state.
Definition: adc.c:248
@ ADC_MODE_SINGLE
Definition: adc.h:39
@ ADC_MODE_CONTINUOUS
Definition: adc.h:40
@ NUM_ADC_MODES
Definition: adc.h:41
StatusCode
StatusCodes for various errors.
Definition: status.h:27
Port and pin data.
Definition: gpio.h:112