|
MG32L003 Standard Peripherals Firmware Library
|
ADC driver modules. More...
Modules | |
| ADC_Exported_Constants | |
| ADC_Private_Defines | |
| ADC_Private_Functions | |
Data Structures | |
| struct | ADC_InitTypeDef |
| ADC Init structure definition. 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_ITConfig (uint32_t ADC_IT, FunctionalState NewState) |
| Enables or disables the specified ADC interrupts. 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... | |
| uint16_t | ADC_GetConversionValue (uint32_t Chnannel) |
| Returns the last ADC conversion result data for regular channel. More... | |
| uint32_t | ADC_GetAccValue (void) |
| Gets ADC accumulation conversion result. More... | |
| FlagStatus | ADC_GetFlagStatus (uint16_t ADC_FLAG) |
| Checks whether the specified ADC flag is set or not. More... | |
| FlagStatus | ADC_GetRawFlagStatus (uint16_t ADC_FLAG) |
| Checks whether the specified ADC flag is set or not. More... | |
| ITStatus | ADC_GetITStatus (uint16_t ADC_IT) |
| Checks whether the specified ADC interrupt is set or not. More... | |
| void | ADC_ClearFlag (uint16_t ADC_FLAG) |
| Clears the ADC pending interrupt flags. More... | |
| void | ADC_ClearITPendingBit (uint16_t ADC_IT) |
| Clears the ADC pending interrupt bits. More... | |
| void | ADC_ThresholdsConfig (uint16_t LowThreshold, uint16_t HighThreshold) |
| Configures the high and low thresholds of the analog watchdog. More... | |
| void | ADC_ThresholdsCompareCmd (uint16_t Threshold_Config, FunctionalState NewState) |
| Enables or disables the thresholds to compare with the function of analog watchdog. More... | |
ADC driver modules.
| void ADC_ClearFlag | ( | uint16_t | ADC_FLAG | ) |
Clears the ADC pending interrupt flags.
| ADC_FLAG | specifies the flag to clear. This parameter can be one of the following values:
|
| None |
| void ADC_ClearITPendingBit | ( | uint16_t | ADC_IT | ) |
Clears the ADC pending interrupt bits.
| ADC_IT | specifies the ADC interrupt sources to clear. This parameter can be any combination of the following values:
|
| None |
| void ADC_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the ADC peripheral.
| NewState | The new state of the ADC peripheral. This parameter can be: ENABLE or DISABLE. |
| None |
| void ADC_DeInit | ( | void | ) |
Deinitializes the ADC peripheral registers to their default reset values.
| None |
| None |
| uint32_t ADC_GetAccValue | ( | void | ) |
Gets ADC accumulation conversion result.
| None |
| ADC | accumulation conversion data |
| uint16_t ADC_GetConversionValue | ( | uint32_t | Channel | ) |
Returns the last ADC conversion result data for regular channel.
| Channel | Selected channel to get ADC conversion value. This parameter can be one of the following values:
|
| The | Data conversion value. |
| FlagStatus ADC_GetFlagStatus | ( | uint16_t | ADC_FLAG | ) |
Checks whether the specified ADC flag is set or not.
| ADC_FLAG | specifies the flag to check. This parameter can be any combination of the following values:
|
| The | new state of ADC_FLAG (SET or RESET). |
| ITStatus ADC_GetITStatus | ( | uint16_t | ADC_IT | ) |
Checks whether the specified ADC interrupt is set or not.
| ADC_IT | specifies the ADC interrupt sources to check. This parameter can be any combination of the following values:
|
| The | new state of ADC_FLAG (SET or RESET). |
| FlagStatus ADC_GetRawFlagStatus | ( | uint16_t | ADC_FLAG | ) |
Checks whether the specified ADC flag is set or not.
| ADC_FLAG | specifies the flag to check. This parameter can be any combination of the following values:
|
| The | new state of ADC_FLAG (SET or RESET). |
| FlagStatus ADC_GetSoftwareStartConvStatus | ( | void | ) |
Gets the selected ADC Software start conversion Status.
| None |
| The | new state of ADC software start conversion (SET or RESET). |
| void ADC_Init | ( | ADC_InitTypeDef * | ADC_InitStruct | ) |
Initializes the ADC peripheral according to the specified parameters in the ADC_InitStruct.
| ADC_InitStruct | pointer to an ADC_InitTypeDef structure that contains the configuration information for the ADC peripheral. |
| None |
| void ADC_ITConfig | ( | uint32_t | ADC_IT, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified ADC interrupts.
| ADC_IT | specifies the ADC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
| NewState | The new state of the specified ADC interrupts. This parameter can be: ENABLE or DISABLE. |
| None |
| void ADC_SoftwareStartConvCmd | ( | FunctionalState | NewState | ) |
Enables or disables the selected ADC software start conversion.
| NewState | The new state of the selected ADC software start conversion. This parameter can be: ENABLE or DISABLE. |
| None |
| void ADC_StructInit | ( | ADC_InitTypeDef * | ADC_InitStruct | ) |
Fills each ADC_InitStruct member with its default value.
| ADC_InitStruct | : pointer to an ADC_InitTypeDef structure which will be initialized. |
| None |
| void ADC_ThresholdsCompareCmd | ( | uint16_t | Threshold_Config, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the thresholds to compare with the function of analog watchdog.
| Threshold_Config | the ADC analog watchdog threshold configuration. This parameter can be any combination of the following values:
|
| NewState | The new state of the selected ADC software starts conversion. This parameter can be: ENABLE or DISABLE. |
| None |
| void ADC_ThresholdsConfig | ( | uint16_t | LowThreshold, |
| uint16_t | HighThreshold | ||
| ) |
Configures the high and low thresholds of the analog watchdog.
| LowThreshold | the ADC analog watchdog Low threshold value. This parameter must be a 12bit value. |
| HighThreshold | the ADC analog watchdog High threshold value. This parameter must be a 12bit value. |
| None |