Interrupts and flags management functions.
More...
|
void | SDADC_ITConfig (SDADC_TypeDef *SDADCx, uint32_t SDADC_IT, FunctionalState NewState) |
| Enables or disables the specified SDADC interrupts. More...
|
|
FlagStatus | SDADC_GetFlagStatus (SDADC_TypeDef *SDADCx, uint32_t SDADC_FLAG) |
| Checks whether the specified SDADC flag is set or not. More...
|
|
void | SDADC_ClearFlag (SDADC_TypeDef *SDADCx, uint32_t SDADC_FLAG) |
| Clears the SDADCx pending flags. More...
|
|
ITStatus | SDADC_GetITStatus (SDADC_TypeDef *SDADCx, uint32_t SDADC_IT) |
| Checks whether the specified SDADC interrupt has occurred or not. More...
|
|
void | SDADC_ClearITPendingBit (SDADC_TypeDef *SDADCx, uint32_t SDADC_IT) |
| Clears the SDADCx interrupt pending bits. More...
|
|
Interrupts and flags management functions.
===============================================================================
##### Interrupts and flags management functions #####
===============================================================================
[..] This section provides functions allowing to configure the SDADC Interrupts and
get the status and clear flags and Interrupts pending bits.
[..] The SDADC provide 5 Interrupts sources and 10 Flags which can be divided into 3 groups:
*** Flags and Interrupts for SDADC regular channels ***
======================================================
[..]
(+)Flags :
(##) SDADC_FLAG_ROVR : Overrun detection when regular converted data are lost.
(##) SDADC_FLAG_REOC : Regular channel end of conversion.
(##) SDADC_FLAG_RCIP: Regular conversion in progress.
(+)Interrupts :
(##) SDADC_IT_REOC : specifies the interrupt source for end of regular conversion event.
(##) SDADC_IT_ROVRF : specifies the interrupt source for regular conversion overrun event.
*** Flags and Interrupts for SDADC Injected channels ***
======================================================
[..]
(+)Flags :
(##) SDADC_FLAG_JEOC : Injected channel end of conversion event.
(##) SDADC_FLAG_JOVR: Injected channel Overrun detection event.
(##) SDADC_FLAG_JCIP: Injected channel conversion in progress.
(+)Interrupts :
(##) SDADC_IT_JEOC: specifies the interrupt source for end of injected
conversion event.
(##) SDADC_IT_JOVR: specifies the interrupt source for injected conersion
overrun event.
*** General Flags and Interrupts for the SDADC ***
================================================
[..]
(+)Flags :
(##) SDADC_FLAG_EOCAL: specifies the end of calibration event.
(##) SDADC_FLAG_CALIBIP: specifies that calibration is in progress.
(##) SDADC_FLAG_STABIP: specifies that stabilization is in progress.
(##) SDADC_FLAG_INITRDY: specifies that initialization mode is ready .
(+)Interrupts :
(##) SDADC_IT_EOCAL : specifies the interrupt source for end of calibration event.
[..] User should identify which mode will be used in his application to manage
the SDADC controller events: Polling mode or Interrupt mode.
[..] In the Polling Mode it is advised to use the following functions:
(+) SDADC_GetFlagStatus(): to check if flags events occur.
(+) SDADC_ClearFlag() : to clear the flags events.
[..] In the Interrupt Mode it is advised to use the following functions:
(+) SDADC_ITConfig() : to enable or disable the interrupt source.
(+) SDADC_GetITStatus() : to check if Interrupt occurs.
(+) SDADC_ClearITPendingBit(): to clear the Interrupt pending Bit
(corresponding Flag).
void SDADC_ClearFlag |
( |
SDADC_TypeDef * |
SDADCx, |
|
|
uint32_t |
SDADC_FLAG |
|
) |
| |
Clears the SDADCx pending flags.
- Parameters
-
SDADCx,: | where x can be 1, 2 or 3 to select the SDADC peripheral. |
SDADC_FLAG,: | specifies the flag to clear. This parameter can be any combination of the following values:
- SDADC_FLAG_EOCAL: End of calibration flag
- SDADC_FLAG_JOVR: Injected conversion overrun flag
- SDADC_FLAG_ROVR: Regular conversion overrun flag
|
- Return values
-
void SDADC_ClearITPendingBit |
( |
SDADC_TypeDef * |
SDADCx, |
|
|
uint32_t |
SDADC_IT |
|
) |
| |
Clears the SDADCx interrupt pending bits.
- Parameters
-
SDADCx,: | where x can be 1, 2 or 3 to select the SDADC peripheral. |
SDADC_IT,: | specifies the SDADC interrupt pending bit to clear. This parameter can be any combination of the following values:
- SDADC_IT_EOCAL: End of calibration flag
- SDADC_IT_JOVR: Injected conversion overrun flag
- SDADC_IT_ROVR: Regular conversion overrun flag
|
- Return values
-
FlagStatus SDADC_GetFlagStatus |
( |
SDADC_TypeDef * |
SDADCx, |
|
|
uint32_t |
SDADC_FLAG |
|
) |
| |
Checks whether the specified SDADC flag is set or not.
- Parameters
-
SDADCx,: | where x can be 1, 2 or 3 to select the SDADC peripheral. |
SDADC_FLAG,: | specifies the flag to check. This parameter can be one of the following values:
- SDADC_FLAG_EOCAL: End of calibration flag
- SDADC_FLAG_JEOC: End of injected conversion flag
- SDADC_FLAG_JOVR: Injected conversion overrun flag
- SDADC_FLAG_REOC: End of regular conversion flag
- SDADC_FLAG_ROVR: Regular conversion overrun flag
- SDADC_FLAG_CALIBIP:Calibration in progress status flag
- SDADC_FLAG_JCIP: Injected conversion in progress status flag
- SDADC_FLAG_RCIP: Regular conversion in progress status flag
- SDADC_FLAG_STABIP: Stabilization in progress status flag
- SDADC_FLAG_INITRDY: Initialization mode is ready
|
- Return values
-
The | new state of SDADC_FLAG (SET or RESET). |
ITStatus SDADC_GetITStatus |
( |
SDADC_TypeDef * |
SDADCx, |
|
|
uint32_t |
SDADC_IT |
|
) |
| |
Checks whether the specified SDADC interrupt has occurred or not.
- Parameters
-
SDADCx,: | where x can be 1, 2 or 3 to select the SDADC peripheral. |
SDADC_IT,: | specifies the SDADC interrupt source to check. This parameter can be one of the following values:
- SDADC_IT_EOCAL: End of calibration flag
- SDADC_IT_JEOC: End of injected conversion flag
- SDADC_IT_JOVR: Injected conversion overrun flag
- SDADC_IT_REOC: End of regular conversion flag
- SDADC_IT_ROVR: Regular conversion overrun flag
|
- Return values
-
The | new state of SDADC_IT (SET or RESET). |
void SDADC_ITConfig |
( |
SDADC_TypeDef * |
SDADCx, |
|
|
uint32_t |
SDADC_IT, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the specified SDADC interrupts.
- Parameters
-
SDADCx,: | where x can be 1, 2 or 3 to select the SDADC peripheral. |
SDADC_IT,: | specifies the SDADC interrupt sources to be enabled or disabled. This parameter can be one of the following values:
- SDADC_IT_EOCAL: End of calibration interrupt
- SDADC_IT_JEOC: End of injected conversion interrupt
- SDADC_IT_JOVR: Injected conversion overrun interrupt
- SDADC_IT_REOC: End of regular conversion interrupt
- SDADC_IT_ROVR: Regular conversion overrun interrupt
|
NewState,: | new state of the specified SDADC interrupts. This parameter can be: ENABLE or DISABLE. |
- Return values
-