MG32F10x Standard Peripherals Firmware Library
|
This file provides all the ADC firmware functions. More...
Functions | |
void | ADC_DeInit (void) |
Deinitializes the ADC peripheral registers to their default reset values. More... | |
void | ADC_Init (ADC_InitTypeDef *ADC_InitStruct) |
Initializes the ADC peripheral according to the specified parameters in the ADC_InitStruct. More... | |
void | ADC_StructInit (ADC_InitTypeDef *ADC_InitStruct) |
Fills each ADC_InitStruct member with its default value. More... | |
void | ADC_Cmd (FunctionalState NewState) |
Enables or disables the ADC peripheral. More... | |
void | ADC_DMACmd (FunctionalState NewState) |
Enables or disables the ADC DMA request. More... | |
void | ADC_InjectedDMACmd (FunctionalState NewState) |
Enables or disables the ADC injected group DMA request. More... | |
void | ADC_ITConfig (uint16_t ADC_IT, FunctionalState NewState) |
Enables or disables the specified ADC interrupts. More... | |
void | ADC_ResetCalibration (void) |
Resets the selected ADC calibration registers. More... | |
FlagStatus | ADC_GetResetCalibrationStatus (void) |
Gets the selected ADC reset calibration registers status. More... | |
void | ADC_StartCalibration (void) |
Starts the selected ADC calibration process. More... | |
FlagStatus | ADC_GetCalibrationStatus (void) |
Gets the selected ADC calibration status. More... | |
void | ADC_SoftwareStartConvCmd (FunctionalState NewState) |
Enables or disables the selected ADC software start conversion . More... | |
FlagStatus | ADC_GetSoftwareStartConvStatus (void) |
Gets the selected ADC Software start conversion Status. More... | |
void | ADC_DiscModeChannelCountConfig (uint8_t Number) |
Configures the discontinuous mode for the selected ADC regular group channel. More... | |
void | ADC_DiscModeCmd (FunctionalState NewState) |
Enables or disables the discontinuous mode on regular group channel for the ADC. More... | |
void | ADC_RegularChannelConfig (uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime) |
Configures for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. More... | |
void | ADC_ExternalTrigConvCmd (FunctionalState NewState) |
Enables or disables the ADC conversion through external trigger. More... | |
uint16_t | ADC_GetConversionValue (void) |
Returns the last ADC conversion result data for regular channel. More... | |
void | ADC_AutoInjectedConvCmd (FunctionalState NewState) |
Enables or disables the selected ADC automatic injected group conversion after regular one. More... | |
void | ADC_InjectedDiscModeCmd (FunctionalState NewState) |
Enables or disables the discontinuous mode for injected group channel for the ADC. More... | |
void | ADC_ExternalTrigInjectedConvConfig (uint32_t ADC_ExternalTrigInjecConv) |
Configures the ADC external trigger for injected channels conversion. More... | |
void | ADC_ExternalTrigInjectedConvCmd (FunctionalState NewState) |
Enables or disables the ADC injected channels conversion through external trigger. More... | |
void | ADC_SoftwareStartInjectedConvCmd (FunctionalState NewState) |
Enables or disables the selected ADC start of the injected channels conversion. More... | |
FlagStatus | ADC_GetSoftwareStartInjectedConvCmdStatus (void) |
Gets the selected ADC Software start injected conversion Status. More... | |
void | ADC_InjectedChannelConfig (uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime) |
Configures for the selected ADC injected channel its corresponding rank in the sequencer and its sample time. More... | |
void | ADC_InjectedSequencerLengthConfig (uint8_t Length) |
Configures the sequencer length for injected channels. More... | |
void | ADC_SetInjectedOffset (uint8_t ADC_InjectedChannel, uint16_t Offset) |
Set the injected channels conversion value offset. More... | |
uint16_t | ADC_GetInjectedConversionValue (uint8_t ADC_InjectedChannel) |
Returns the ADC injected channel conversion result. More... | |
void | ADC_AnalogWatchdogCmd (uint32_t ADC_AnalogWatchdog) |
Enables or disables the analog watchdog on single/all regular or injected channels. More... | |
void | ADC_AnalogWatchdogThresholdsConfig (uint16_t HighThreshold, uint16_t LowThreshold) |
Configures the high and low thresholds of the analog watchdog. More... | |
void | ADC_AnalogWatchdogSingleChannelConfig (uint8_t ADC_Channel) |
Configures the analog watchdog guarded single channel. More... | |
void | ADC_TempSensorVrefintCmd (FunctionalState NewState) |
Enables or disables the temperature sensor and Vrefint channel. More... | |
FlagStatus | ADC_GetFlagStatus (uint8_t ADC_FLAG) |
Checks whether the specified ADC flag is set or not. More... | |
void | ADC_ClearFlag (uint8_t ADC_FLAG) |
Clears the ADC's pending flags. More... | |
ITStatus | ADC_GetITStatus (uint16_t ADC_IT) |
Checks whether the specified ADC interrupt has occurred or not. More... | |
void | ADC_ClearITPendingBit (uint16_t ADC_IT) |
Clears the ADC's interrupt pending bits. More... | |
uint16_t | ADC_GetADValue (uint16_t data) |
Adjust the ADC conversion result. More... | |
This file provides all the ADC firmware functions.