EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Digital-to-analog converter (DAC)
DocID023800 Rev 1
169/584
7.2.8 Interrupts and flags management functions
7.2.8.1 DAC_ITConfig
Function Name
void DAC_ITConfig ( uint32_t DAC_Channel, uint32_t DAC_IT,
FunctionalState NewState)
Function Description
Enables or disables the specified DAC interrupts.
Parameters
DAC_Channel : The selected DAC channel. This parameter
can be:
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
Parameters
NewState : new state of the specified DAC interrupts. This
parameter can be: ENABLE or DISABLE.
Return values
None.
Notes
The DMA underrun occurs when a second external trigger
arrives before the acknowledgement for the first external
trigger is received (first request).
7.2.8.2 DAC_GetFlagStatus
Function Name
FlagStatus DAC_GetFlagStatus ( uint32_t DAC_Channel,
uint32_t DAC_FLAG)
Function Description
Checks whether the specified DAC flag is set or not.
Parameters
DAC_Channel : The selected DAC channel. This parameter
can be:
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
Return values
The new state of DAC_FLAG (SET or RESET).
Notes
The DMA underrun occurs when a second external trigger
arrives before the acknowledgement for the first external
trigger is received (first request).

Table of Contents

Related product manuals