28 #if (HAL_USE_ADC == TRUE) || defined(__DOXYGEN__) 47 #if !defined(PLATFORM_ADC_USE_ADC1) || defined(__DOXYGEN__) 48 #define PLATFORM_ADC_USE_ADC1 FALSE 165 #if (ADC_USE_WAIT == TRUE) || defined(__DOXYGEN__) 171 #if (ADC_USE_MUTUAL_EXCLUSION == TRUE) || defined(__DOXYGEN__) 177 #if defined(ADC_DRIVER_EXT_FIELDS) 178 ADC_DRIVER_EXT_FIELDS
191 #if (PLATFORM_ADC_USE_ADC1 == TRUE) && !defined(__DOXYGEN__) adcstate_t
Driver state machine possible states.
const ADCConversionGroup * grpp
Current conversion group pointer or NULL.
adcerror_t
Possible ADC failure causes.
void adc_lld_start(ADCDriver *adcp)
Configures and activates the ADC peripheral.
adccallback_t end_cb
Callback function associated to the group or NULL.
thread_reference_t thread
Waiting thread.
Conversion group configuration structure.
adcerrorcallback_t error_cb
Error callback or NULL.
adc_channels_num_t num_channels
Number of the analog channels belonging to the conversion group.
uint16_t adc_channels_num_t
Channels number in a conversion group.
void(* adccallback_t)(ADCDriver *adcp, adcsample_t *buffer, size_t n)
ADC notification callback type.
void adc_lld_stop_conversion(ADCDriver *adcp)
Stops an ongoing conversion.
Structure representing an ADC driver.
bool circular
Enables the circular buffer mode for the group.
void(* adcerrorcallback_t)(ADCDriver *adcp, adcerror_t err)
ADC error callback type.
adcstate_t state
Driver state.
void * thread_reference_t
Type of a thread reference.
uint16_t adcsample_t
ADC sample data type.
mutex_t mutex
Mutex protecting the peripheral.
void adc_lld_stop(ADCDriver *adcp)
Deactivates the ADC peripheral.
ADCDriver ADCD1
ADC1 driver identifier.
void adc_lld_init(void)
Low level ADC driver initialization.
size_t depth
Current samples buffer depth or 0.
Driver configuration structure.
uint32_t mutex_t
Type of a mutex.
adcsample_t * samples
Current samples buffer pointer or NULL.
void adc_lld_start_conversion(ADCDriver *adcp)
Starts an ADC conversion.
const ADCConfig * config
Current configuration data.