Ll_Dac_Trigswconversion; Ll_Dac_Convertdata12Rightaligned; Ll_Dac_Convertdata12Leftaligned - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

LL DAC Generic Driver
Reference Manual to
LL API cross
reference:

LL_DAC_TrigSWConversion

Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:

LL_DAC_ConvertData12RightAligned

Function name
Function description
Parameters
Return values
Reference Manual to
LL API cross
reference:

LL_DAC_ConvertData12LeftAligned

Function name
842/1371
CR TEN1 LL_DAC_IsTriggerEnabled
CR TEN2 LL_DAC_IsTriggerEnabled
__STATIC_INLINE void LL_DAC_TrigSWConversion
(DAC_TypeDef * DACx, uint32_t DAC_Channel)
Trig DAC conversion by software for the selected DAC channel.
DACx: DAC instance
DAC_Channel: This parameter can a combination of the
following values:
LL_DAC_CHANNEL_1
LL_DAC_CHANNEL_2
None:
Preliminarily, DAC trigger must be set to software trigger
using function LL_DAC_SetTriggerSource() with parameter
"LL_DAC_TRIGGER_SOFTWARE". and DAC trigger must be
enabled using function LL_DAC_EnableTrigger().
For devices featuring DAC with 2 channels: this function can
perform a SW start of both DAC channels simultaneously.
Two channels can be selected as parameter. Example:
(LL_DAC_CHANNEL_1 | LL_DAC_CHANNEL_2)
SWTRIGR SWTRIG1 LL_DAC_TrigSWConversion
SWTRIGR SWTRIG2 LL_DAC_TrigSWConversion
__STATIC_INLINE void LL_DAC_ConvertData12RightAligned
(DAC_TypeDef * DACx, uint32_t DAC_Channel, uint32_t Data)
Set the data to be loaded in the data holding register in format 12
bits left alignment (LSB aligned on bit 0), for the selected DAC
channel.
DACx: DAC instance
DAC_Channel: This parameter can be one of the following
values:
LL_DAC_CHANNEL_1
LL_DAC_CHANNEL_2
Data: Value between Min_Data=0x000 and
Max_Data=0xFFF
None:
DHR12R1 DACC1DHR LL_DAC_ConvertData12RightAligned
DHR12R2 DACC2DHR
LL_DAC_ConvertData12RightAligned
__STATIC_INLINE void LL_DAC_ConvertData12LeftAligned
DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF