|
PER Firmware
|
Private register-level API for the STM32G4 ADC PHAL. More...
Go to the source code of this file.
Functions | |
| bool | ADC_PRIV_instance_is_supported (const ADC_TypeDef *instance) |
| Return whether an ADC instance is supported by this driver. | |
| bool | ADC_PRIV_configure (ADC_TypeDef *instance, const PHAL_ADC_ChannelConfig_t *channels, size_t channel_count) |
| Configure and calibrate a disabled ADC instance. | |
| bool | ADC_PRIV_enable (ADC_TypeDef *instance) |
| Enable an ADC instance and wait for it to become ready. | |
| bool | ADC_PRIV_disable (ADC_TypeDef *instance) |
| Stop and disable an ADC instance. | |
| bool | ADC_PRIV_is_ready (const ADC_TypeDef *instance) |
| Return whether an ADC instance is enabled and ready. | |
| void | ADC_PRIV_prepare_transfer (ADC_TypeDef *instance, bool continuous) |
| Clear transfer flags and select single or continuous DMA requests. | |
| void | ADC_PRIV_start_conversion (ADC_TypeDef *instance) |
| Start the configured regular conversion sequence. | |
| bool | ADC_PRIV_stop_conversion (ADC_TypeDef *instance) |
| Stop an active regular conversion sequence. | |
Private register-level API for the STM32G4 ADC PHAL.
Used by adc.c to drive the ADC directly: clock setup, calibration, sequence and sample-time programming, enable/disable, and conversion start/stop. Not for direct use by application code.
| bool ADC_PRIV_configure | ( | ADC_TypeDef * | instance, |
| const PHAL_ADC_ChannelConfig_t * | channels, | ||
| size_t | channel_count ) |
Configure and calibrate a disabled ADC instance.
| bool ADC_PRIV_disable | ( | ADC_TypeDef * | instance | ) |
Stop and disable an ADC instance.
| bool ADC_PRIV_enable | ( | ADC_TypeDef * | instance | ) |
Enable an ADC instance and wait for it to become ready.
| bool ADC_PRIV_instance_is_supported | ( | const ADC_TypeDef * | instance | ) |
Return whether an ADC instance is supported by this driver.
| bool ADC_PRIV_is_ready | ( | const ADC_TypeDef * | instance | ) |
Return whether an ADC instance is enabled and ready.
| void ADC_PRIV_prepare_transfer | ( | ADC_TypeDef * | instance, |
| bool | continuous ) |
Clear transfer flags and select single or continuous DMA requests.
| void ADC_PRIV_start_conversion | ( | ADC_TypeDef * | instance | ) |
Start the configured regular conversion sequence.
| bool ADC_PRIV_stop_conversion | ( | ADC_TypeDef * | instance | ) |
Stop an active regular conversion sequence.