void adc_set_sampling_length(uint8_t length)
Sets the sampling length for the ADC.
Definition adc.c:80
uint16_t adc_get_analog_value_for_channel(uint8_t channel)
Gets the analog value on the given ADC channel.
Definition adc.c:86
void adc_init(void)
Initializes the ADC peripheral, but does not enable it.
Definition adc.c:107
void adc_enable(void)
Enables the ADC peripheral.
Definition adc.c:188
void adc_disable(void)
Disables the ADC peripheral.
Definition adc.c:207
void adc_enable_result_ready_event_output(bool enabled)
Enables or disables the result ready event output.
Definition adc.c:203
void adc_enable_start_event(bool enabled)
Enables or disables event-triggered ADC conversion start.
Definition adc.c:199
uint16_t adc_get_analog_value(uint8_t pin)
Gets the analog value on the given ADC pin.
Definition adc.c:98
bool adc_is_enabled(void)
Checks if the ADC is currently enabled.
Definition adc.c:195