Interrupts and flags management functions.
More...
|
void | DAC_ClearFlag (uint32_t DAC_Channel, uint32_t DAC_FLAG) |
| Clears the DAC channel's pending flags. More...
|
|
void | DAC_ClearFlag (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_FLAG) |
| Clears the DAC channel's pending flags. More...
|
|
void | DAC_ClearITPendingBit (uint32_t DAC_Channel, uint32_t DAC_IT) |
| Clears the DAC channel's interrupt pending bits. More...
|
|
void | DAC_ClearITPendingBit (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_IT) |
| Clears the DAC channel's interrupt pending bits. More...
|
|
FlagStatus | DAC_GetFlagStatus (uint32_t DAC_Channel, uint32_t DAC_FLAG) |
| Checks whether the specified DAC flag is set or not. More...
|
|
FlagStatus | DAC_GetFlagStatus (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_FLAG) |
| Checks whether the specified DAC flag is set or not. More...
|
|
ITStatus | DAC_GetITStatus (uint32_t DAC_Channel, uint32_t DAC_IT) |
| Checks whether the specified DAC interrupt has occurred or not. More...
|
|
ITStatus | DAC_GetITStatus (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_IT) |
| Checks whether the specified DAC interrupt has occurred or not. More...
|
|
void | DAC_ITConfig (uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState) |
| Enables or disables the specified DAC interrupts. More...
|
|
void | DAC_ITConfig (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t DAC_IT, FunctionalState NewState) |
| Enables or disables the specified DAC interrupts. More...
|
|
Interrupts and flags management functions.
===============================================================================
##### Interrupts and flags management functions #####
===============================================================================
void DAC_ClearFlag |
( |
uint32_t |
DAC_Channel, |
|
|
uint32_t |
DAC_FLAG |
|
) |
| |
Clears the DAC channel's pending flags.
- Parameters
-
DAC_Channel | The selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_FLAG | specifies the flag to clear. This parameter can be of the following value:
- DAC_FLAG_DMAUDR: DMA underrun flag
|
- Note
- The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
- Return values
-
Definition at line 625 of file stm32f4xx_dac.c.
void DAC_ClearFlag |
( |
DAC_TypeDef * |
DACx, |
|
|
uint32_t |
DAC_Channel, |
|
|
uint32_t |
DAC_FLAG |
|
) |
| |
Clears the DAC channel's pending flags.
- Parameters
-
DACx | where x can be 1 or 2 to select the DAC peripheral. |
DAC_Channel | the selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_FLAG | specifies the flag to clear. This parameter can be:
- DAC_FLAG_DMAUDR: DMA underrun flag
|
- Return values
-
Definition at line 661 of file stm32f30x_dac.c.
void DAC_ClearITPendingBit |
( |
uint32_t |
DAC_Channel, |
|
|
uint32_t |
DAC_IT |
|
) |
| |
Clears the DAC channel's interrupt pending bits.
- Parameters
-
DAC_Channel | The selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_IT | specifies the DAC interrupt pending bit to clear. This parameter can be the following values:
- DAC_IT_DMAUDR: DMA underrun interrupt mask
|
- Note
- The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
- Return values
-
Definition at line 688 of file stm32f4xx_dac.c.
void DAC_ClearITPendingBit |
( |
DAC_TypeDef * |
DACx, |
|
|
uint32_t |
DAC_Channel, |
|
|
uint32_t |
DAC_IT |
|
) |
| |
Clears the DAC channel's interrupt pending bits.
- Parameters
-
DACx | where x can be 1 or 2 to select the DAC peripheral. |
DAC_Channel | the selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_IT | specifies the DAC interrupt pending bit to clear. This parameter can be the following values:
- DAC_IT_DMAUDR: DMA underrun interrupt mask
|
- Return values
-
Definition at line 726 of file stm32f30x_dac.c.
FlagStatus DAC_GetFlagStatus |
( |
uint32_t |
DAC_Channel, |
|
|
uint32_t |
DAC_FLAG |
|
) |
| |
Checks whether the specified DAC flag is set or not.
- Parameters
-
DAC_Channel | The selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_FLAG | specifies the flag to check. This parameter can be only of the following value:
- DAC_FLAG_DMAUDR: DMA underrun flag
|
- Note
- The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
- Return values
-
The | new state of DAC_FLAG (SET or RESET). |
Definition at line 590 of file stm32f4xx_dac.c.
Checks whether the specified DAC flag is set or not.
- Parameters
-
DACx | where x can be 1 or 2 to select the DAC peripheral. |
DAC_Channel | thee selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_FLAG | specifies the flag to check. This parameter can be:
- DAC_FLAG_DMAUDR: DMA underrun flag
|
- Note
- The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
- Return values
-
The | new state of DAC_FLAG (SET or RESET). |
Definition at line 625 of file stm32f30x_dac.c.
ITStatus DAC_GetITStatus |
( |
uint32_t |
DAC_Channel, |
|
|
uint32_t |
DAC_IT |
|
) |
| |
Checks whether the specified DAC interrupt has occurred or not.
- Parameters
-
DAC_Channel | The selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_IT | specifies the DAC interrupt source to check. This parameter can be the following values:
- DAC_IT_DMAUDR: DMA underrun interrupt mask
|
- Note
- The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
- Return values
-
The | new state of DAC_IT (SET or RESET). |
Definition at line 648 of file stm32f4xx_dac.c.
Checks whether the specified DAC interrupt has occurred or not.
- Parameters
-
DACx | where x can be 1 or 2 to select the DAC peripheral. |
DAC_Channel | the selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_IT | specifies the DAC interrupt source to check. This parameter can be:
- DAC_IT_DMAUDR: DMA underrun interrupt mask
|
- Note
- The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
- Return values
-
The | new state of DAC_IT (SET or RESET). |
Definition at line 686 of file stm32f30x_dac.c.
void DAC_ITConfig |
( |
uint32_t |
DAC_Channel, |
|
|
uint32_t |
DAC_IT, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the specified DAC interrupts.
- Parameters
-
DAC_Channel | The selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_IT | specifies the DAC interrupt sources to be enabled or disabled. This parameter can be the following values:
- DAC_IT_DMAUDR: DMA underrun interrupt mask
|
- Note
- The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
- Parameters
-
NewState | new state of the specified DAC interrupts. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 558 of file stm32f4xx_dac.c.
Enables or disables the specified DAC interrupts.
- Parameters
-
DACx | where x can be 1 or 2 to select the DAC peripheral. |
DAC_Channel | the selected DAC channel. This parameter can be one of the following values:
- DAC_Channel_1: DAC Channel1 selected
- DAC_Channel_2: DAC Channel2 selected
|
DAC_IT | specifies the DAC interrupt sources to be enabled or disabled. This parameter can be:
- DAC_IT_DMAUDR: DMA underrun interrupt mask
|
- Note
- The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
- Parameters
-
NewState | new state of the specified DAC interrupts. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 591 of file stm32f30x_dac.c.