STM32F4xx_HAL_Driver
1.8.3
|
Header file of DAC LL module. More...
Go to the source code of this file.
Data Structures | |
struct | LL_DAC_InitTypeDef |
Structure definition of some features of DAC instance. More... | |
Functions | |
__STATIC_INLINE void | LL_DAC_SetTriggerSource (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t TriggerSource) |
Set the conversion trigger source for the selected DAC channel. More... | |
__STATIC_INLINE uint32_t | LL_DAC_GetTriggerSource (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the conversion trigger source for the selected DAC channel. More... | |
__STATIC_INLINE void | LL_DAC_SetWaveAutoGeneration (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t WaveAutoGeneration) |
Set the waveform automatic generation mode for the selected DAC channel. @rmtoll CR WAVE1 LL_DAC_SetWaveAutoGeneration CR WAVE2 LL_DAC_SetWaveAutoGeneration. More... | |
__STATIC_INLINE uint32_t | LL_DAC_GetWaveAutoGeneration (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the waveform automatic generation mode for the selected DAC channel. @rmtoll CR WAVE1 LL_DAC_GetWaveAutoGeneration CR WAVE2 LL_DAC_GetWaveAutoGeneration. More... | |
__STATIC_INLINE void | LL_DAC_SetWaveNoiseLFSR (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t NoiseLFSRMask) |
Set the noise waveform generation for the selected DAC channel: Noise mode and parameters LFSR (linear feedback shift register). More... | |
__STATIC_INLINE uint32_t | LL_DAC_GetWaveNoiseLFSR (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the noise waveform generation for the selected DAC channel: Noise mode and parameters LFSR (linear feedback shift register). @rmtoll CR MAMP1 LL_DAC_GetWaveNoiseLFSR CR MAMP2 LL_DAC_GetWaveNoiseLFSR. More... | |
__STATIC_INLINE void | LL_DAC_SetWaveTriangleAmplitude (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t TriangleAmplitude) |
Set the triangle waveform generation for the selected DAC channel: triangle mode and amplitude. More... | |
__STATIC_INLINE uint32_t | LL_DAC_GetWaveTriangleAmplitude (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the triangle waveform generation for the selected DAC channel: triangle mode and amplitude. @rmtoll CR MAMP1 LL_DAC_GetWaveTriangleAmplitude CR MAMP2 LL_DAC_GetWaveTriangleAmplitude. More... | |
__STATIC_INLINE void | LL_DAC_SetOutputBuffer (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t OutputBuffer) |
Set the output buffer for the selected DAC channel. @rmtoll CR BOFF1 LL_DAC_SetOutputBuffer CR BOFF2 LL_DAC_SetOutputBuffer. More... | |
__STATIC_INLINE uint32_t | LL_DAC_GetOutputBuffer (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the output buffer state for the selected DAC channel. @rmtoll CR BOFF1 LL_DAC_GetOutputBuffer CR BOFF2 LL_DAC_GetOutputBuffer. More... | |
__STATIC_INLINE void | LL_DAC_EnableDMAReq (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Enable DAC DMA transfer request of the selected channel. More... | |
__STATIC_INLINE void | LL_DAC_DisableDMAReq (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Disable DAC DMA transfer request of the selected channel. More... | |
__STATIC_INLINE uint32_t | LL_DAC_IsDMAReqEnabled (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get DAC DMA transfer request state of the selected channel. (0: DAC DMA transfer request is disabled, 1: DAC DMA transfer request is enabled) @rmtoll CR DMAEN1 LL_DAC_IsDMAReqEnabled CR DMAEN2 LL_DAC_IsDMAReqEnabled. More... | |
__STATIC_INLINE uint32_t | LL_DAC_DMA_GetRegAddr (const DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t Register) |
Function to help to configure DMA transfer to DAC: retrieve the DAC register address from DAC instance and a list of DAC registers intended to be used (most commonly) with DMA transfer. More... | |
__STATIC_INLINE void | LL_DAC_Enable (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Enable DAC selected channel. @rmtoll CR EN1 LL_DAC_Enable CR EN2 LL_DAC_Enable. More... | |
__STATIC_INLINE void | LL_DAC_Disable (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Disable DAC selected channel. @rmtoll CR EN1 LL_DAC_Disable CR EN2 LL_DAC_Disable. More... | |
__STATIC_INLINE uint32_t | LL_DAC_IsEnabled (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get DAC enable state of the selected channel. (0: DAC channel is disabled, 1: DAC channel is enabled) @rmtoll CR EN1 LL_DAC_IsEnabled CR EN2 LL_DAC_IsEnabled. More... | |
__STATIC_INLINE void | LL_DAC_EnableTrigger (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Enable DAC trigger of the selected channel. More... | |
__STATIC_INLINE void | LL_DAC_DisableTrigger (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Disable DAC trigger of the selected channel. @rmtoll CR TEN1 LL_DAC_DisableTrigger CR TEN2 LL_DAC_DisableTrigger. More... | |
__STATIC_INLINE uint32_t | LL_DAC_IsTriggerEnabled (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get DAC trigger state of the selected channel. (0: DAC trigger is disabled, 1: DAC trigger is enabled) @rmtoll CR TEN1 LL_DAC_IsTriggerEnabled CR TEN2 LL_DAC_IsTriggerEnabled. More... | |
__STATIC_INLINE void | LL_DAC_TrigSWConversion (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Trig DAC conversion by software for the selected DAC channel. More... | |
__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. @rmtoll DHR12R1 DACC1DHR LL_DAC_ConvertData12RightAligned DHR12R2 DACC2DHR LL_DAC_ConvertData12RightAligned. More... | |
__STATIC_INLINE void | LL_DAC_ConvertData12LeftAligned (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 (MSB aligned on bit 15), for the selected DAC channel. @rmtoll DHR12L1 DACC1DHR LL_DAC_ConvertData12LeftAligned DHR12L2 DACC2DHR LL_DAC_ConvertData12LeftAligned. More... | |
__STATIC_INLINE void | LL_DAC_ConvertData8RightAligned (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t Data) |
Set the data to be loaded in the data holding register in format 8 bits left alignment (LSB aligned on bit 0), for the selected DAC channel. @rmtoll DHR8R1 DACC1DHR LL_DAC_ConvertData8RightAligned DHR8R2 DACC2DHR LL_DAC_ConvertData8RightAligned. More... | |
__STATIC_INLINE void | LL_DAC_ConvertDualData12RightAligned (DAC_TypeDef *DACx, uint32_t DataChannel1, uint32_t DataChannel2) |
Set the data to be loaded in the data holding register in format 12 bits left alignment (LSB aligned on bit 0), for both DAC channels. @rmtoll DHR12RD DACC1DHR LL_DAC_ConvertDualData12RightAligned DHR12RD DACC2DHR LL_DAC_ConvertDualData12RightAligned. More... | |
__STATIC_INLINE void | LL_DAC_ConvertDualData12LeftAligned (DAC_TypeDef *DACx, uint32_t DataChannel1, uint32_t DataChannel2) |
Set the data to be loaded in the data holding register in format 12 bits left alignment (MSB aligned on bit 15), for both DAC channels. @rmtoll DHR12LD DACC1DHR LL_DAC_ConvertDualData12LeftAligned DHR12LD DACC2DHR LL_DAC_ConvertDualData12LeftAligned. More... | |
__STATIC_INLINE void | LL_DAC_ConvertDualData8RightAligned (DAC_TypeDef *DACx, uint32_t DataChannel1, uint32_t DataChannel2) |
Set the data to be loaded in the data holding register in format 8 bits left alignment (LSB aligned on bit 0), for both DAC channels. @rmtoll DHR8RD DACC1DHR LL_DAC_ConvertDualData8RightAligned DHR8RD DACC2DHR LL_DAC_ConvertDualData8RightAligned. More... | |
__STATIC_INLINE uint32_t | LL_DAC_RetrieveOutputData (const DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Retrieve output data currently generated for the selected DAC channel. More... | |
__STATIC_INLINE uint32_t | LL_DAC_IsActiveFlag_DMAUDR1 (const DAC_TypeDef *DACx) |
Get DAC underrun flag for DAC channel 1 @rmtoll SR DMAUDR1 LL_DAC_IsActiveFlag_DMAUDR1. More... | |
__STATIC_INLINE uint32_t | LL_DAC_IsActiveFlag_DMAUDR2 (const DAC_TypeDef *DACx) |
Get DAC underrun flag for DAC channel 2 @rmtoll SR DMAUDR2 LL_DAC_IsActiveFlag_DMAUDR2. More... | |
__STATIC_INLINE void | LL_DAC_ClearFlag_DMAUDR1 (DAC_TypeDef *DACx) |
Clear DAC underrun flag for DAC channel 1 @rmtoll SR DMAUDR1 LL_DAC_ClearFlag_DMAUDR1. More... | |
__STATIC_INLINE void | LL_DAC_ClearFlag_DMAUDR2 (DAC_TypeDef *DACx) |
Clear DAC underrun flag for DAC channel 2 @rmtoll SR DMAUDR2 LL_DAC_ClearFlag_DMAUDR2. More... | |
__STATIC_INLINE void | LL_DAC_EnableIT_DMAUDR1 (DAC_TypeDef *DACx) |
Enable DMA underrun interrupt for DAC channel 1 @rmtoll CR DMAUDRIE1 LL_DAC_EnableIT_DMAUDR1. More... | |
__STATIC_INLINE void | LL_DAC_EnableIT_DMAUDR2 (DAC_TypeDef *DACx) |
Enable DMA underrun interrupt for DAC channel 2 @rmtoll CR DMAUDRIE2 LL_DAC_EnableIT_DMAUDR2. More... | |
__STATIC_INLINE void | LL_DAC_DisableIT_DMAUDR1 (DAC_TypeDef *DACx) |
Disable DMA underrun interrupt for DAC channel 1 @rmtoll CR DMAUDRIE1 LL_DAC_DisableIT_DMAUDR1. More... | |
__STATIC_INLINE void | LL_DAC_DisableIT_DMAUDR2 (DAC_TypeDef *DACx) |
Disable DMA underrun interrupt for DAC channel 2 @rmtoll CR DMAUDRIE2 LL_DAC_DisableIT_DMAUDR2. More... | |
__STATIC_INLINE uint32_t | LL_DAC_IsEnabledIT_DMAUDR1 (const DAC_TypeDef *DACx) |
Get DMA underrun interrupt for DAC channel 1 @rmtoll CR DMAUDRIE1 LL_DAC_IsEnabledIT_DMAUDR1. More... | |
__STATIC_INLINE uint32_t | LL_DAC_IsEnabledIT_DMAUDR2 (const DAC_TypeDef *DACx) |
Get DMA underrun interrupt for DAC channel 2 @rmtoll CR DMAUDRIE2 LL_DAC_IsEnabledIT_DMAUDR2. More... | |
ErrorStatus | LL_DAC_DeInit (const DAC_TypeDef *DACx) |
De-initialize registers of the selected DAC instance to their default reset values. More... | |
ErrorStatus | LL_DAC_Init (DAC_TypeDef *DACx, uint32_t DAC_Channel, const LL_DAC_InitTypeDef *DAC_InitStruct) |
Initialize some features of DAC channel. More... | |
void | LL_DAC_StructInit (LL_DAC_InitTypeDef *DAC_InitStruct) |
Set each LL_DAC_InitTypeDef field to default value. More... | |
Header file of DAC LL module.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32f4xx_ll_dac.h.