![]() |
ChibiOS/RT Architecture - Reference Manual - Guides |
ADC Driver macros and structures. More...
#include "adc_lld.h"Go to the source code of this file.
Enumerations | |
| enum | adcstate_t { ADC_UNINIT = 0, ADC_STOP = 1, ADC_READY = 2, ADC_RUNNING = 3, ADC_COMPLETE = 4 } |
Driver state machine possible states. More... | |
Functions | |
| void | adcInit (void) |
| ADC Driver initialization. | |
| void | adcObjectInit (ADCDriver *adcp) |
Initializes the standard part of a ADCDriver structure. | |
| void | adcStart (ADCDriver *adcp, const ADCConfig *config) |
| Configures and activates the ADC peripheral. | |
| void | adcStop (ADCDriver *adcp) |
| Deactivates the ADC peripheral. | |
| bool_t | adcStartConversion (ADCDriver *adcp, const ADCConversionGroup *grpp, adcsample_t *samples, size_t depth, adccallback_t callback) |
| Starts an ADC conversion. | |
| void | adcStopConversion (ADCDriver *adcp) |
| Stops an ongoing conversion. | |
| msg_t | adcWaitConversion (ADCDriver *adcp, systime_t timeout) |
| Waits for completion. | |
ADC Driver macros and structures.
Definition in file adc.h.
1.7.1