|
STM32L4xx_HAL_Driver
1.14.0
|
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_SetHighFrequencyMode (DAC_TypeDef *DACx, uint32_t HighFreqMode) |
| Set the high frequency interface mode for the selected DAC instance CR HFSEL LL_DAC_SetHighFrequencyMode. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetHighFrequencyMode (DAC_TypeDef *DACx) |
| Get the high frequency interface mode for the selected DAC instance CR HFSEL LL_DAC_GetHighFrequencyMode. More... | |
| __STATIC_INLINE void | LL_DAC_SetMode (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t ChannelMode) |
| Set the operating mode for the selected DAC channel: calibration or normal operating mode. CR CEN1 LL_DAC_SetMode CR CEN2 LL_DAC_SetMode. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetMode (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the operating mode for the selected DAC channel: calibration or normal operating mode. CR CEN1 LL_DAC_GetMode CR CEN2 LL_DAC_GetMode. More... | |
| __STATIC_INLINE void | LL_DAC_SetTrimmingValue (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t TrimmingValue) |
| Set the offset trimming value for the selected DAC channel. Trimming has an impact when output buffer is enabled and is intended to replace factory calibration default values. CCR OTRIM1 LL_DAC_SetTrimmingValue CCR OTRIM2 LL_DAC_SetTrimmingValue. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetTrimmingValue (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the offset trimming value for the selected DAC channel. Trimming has an impact when output buffer is enabled and is intended to replace factory calibration default values. CCR OTRIM1 LL_DAC_GetTrimmingValue CCR OTRIM2 LL_DAC_GetTrimmingValue. More... | |
| __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 (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. CR WAVE1 LL_DAC_SetWaveAutoGeneration CR WAVE2 LL_DAC_SetWaveAutoGeneration. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetWaveAutoGeneration (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the waveform automatic generation mode for the selected DAC channel. 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 (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). 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 (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the triangle waveform generation for the selected DAC channel: triangle mode and amplitude. CR MAMP1 LL_DAC_GetWaveTriangleAmplitude CR MAMP2 LL_DAC_GetWaveTriangleAmplitude. More... | |
| __STATIC_INLINE void | LL_DAC_ConfigOutput (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t OutputMode, uint32_t OutputBuffer, uint32_t OutputConnection) |
| Set the output for the selected DAC channel. More... | |
| __STATIC_INLINE void | LL_DAC_SetOutputMode (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t OutputMode) |
| Set the output mode normal or sample-and-hold for the selected DAC channel. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetOutputMode (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the output mode normal or sample-and-hold for the selected DAC channel. CR MODE1 LL_DAC_GetOutputMode CR MODE2 LL_DAC_GetOutputMode. 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. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetOutputBuffer (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the output buffer state for the selected DAC channel. CR MODE1 LL_DAC_GetOutputBuffer CR MODE2 LL_DAC_GetOutputBuffer. More... | |
| __STATIC_INLINE void | LL_DAC_SetOutputConnection (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t OutputConnection) |
| Set the output connection for the selected DAC channel. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetOutputConnection (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the output connection for the selected DAC channel. More... | |
| __STATIC_INLINE void | LL_DAC_SetSampleAndHoldSampleTime (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t SampleTime) |
| Set the sample-and-hold timing for the selected DAC channel: sample time. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetSampleAndHoldSampleTime (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the sample-and-hold timing for the selected DAC channel: sample time SHSR1 TSAMPLE1 LL_DAC_GetSampleAndHoldSampleTime SHSR2 TSAMPLE2 LL_DAC_GetSampleAndHoldSampleTime. More... | |
| __STATIC_INLINE void | LL_DAC_SetSampleAndHoldHoldTime (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t HoldTime) |
| Set the sample-and-hold timing for the selected DAC channel: hold time SHHR THOLD1 LL_DAC_SetSampleAndHoldHoldTime SHHR THOLD2 LL_DAC_SetSampleAndHoldHoldTime. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetSampleAndHoldHoldTime (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the sample-and-hold timing for the selected DAC channel: hold time SHHR THOLD1 LL_DAC_GetSampleAndHoldHoldTime SHHR THOLD2 LL_DAC_GetSampleAndHoldHoldTime. More... | |
| __STATIC_INLINE void | LL_DAC_SetSampleAndHoldRefreshTime (DAC_TypeDef *DACx, uint32_t DAC_Channel, uint32_t RefreshTime) |
| Set the sample-and-hold timing for the selected DAC channel: refresh time SHRR TREFRESH1 LL_DAC_SetSampleAndHoldRefreshTime SHRR TREFRESH2 LL_DAC_SetSampleAndHoldRefreshTime. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_GetSampleAndHoldRefreshTime (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
| Get the sample-and-hold timing for the selected DAC channel: refresh time SHRR TREFRESH1 LL_DAC_GetSampleAndHoldRefreshTime SHRR TREFRESH2 LL_DAC_GetSampleAndHoldRefreshTime. 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 (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) CR DMAEN1 LL_DAC_IsDMAReqEnabled CR DMAEN2 LL_DAC_IsDMAReqEnabled. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_DMA_GetRegAddr (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. 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. CR EN1 LL_DAC_Disable CR EN2 LL_DAC_Disable. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsEnabled (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) 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. CR TEN1 LL_DAC_DisableTrigger CR TEN2 LL_DAC_DisableTrigger. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsTriggerEnabled (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) 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. 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. 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. 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. 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. 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. DHR8RD DACC1DHR LL_DAC_ConvertDualData8RightAligned DHR8RD DACC2DHR LL_DAC_ConvertDualData8RightAligned. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_RetrieveOutputData (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_CAL1 (DAC_TypeDef *DACx) |
| Get DAC calibration offset flag for DAC channel 1 SR CAL_FLAG1 LL_DAC_IsActiveFlag_CAL1. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsActiveFlag_CAL2 (DAC_TypeDef *DACx) |
| Get DAC calibration offset flag for DAC channel 2 SR CAL_FLAG2 LL_DAC_IsActiveFlag_CAL2. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsActiveFlag_BWST1 (DAC_TypeDef *DACx) |
| Get DAC busy writing sample time flag for DAC channel 1 SR BWST1 LL_DAC_IsActiveFlag_BWST1. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsActiveFlag_BWST2 (DAC_TypeDef *DACx) |
| Get DAC busy writing sample time flag for DAC channel 2 SR BWST2 LL_DAC_IsActiveFlag_BWST2. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsActiveFlag_DMAUDR1 (DAC_TypeDef *DACx) |
| Get DAC underrun flag for DAC channel 1 SR DMAUDR1 LL_DAC_IsActiveFlag_DMAUDR1. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsActiveFlag_DMAUDR2 (DAC_TypeDef *DACx) |
| Get DAC underrun flag for DAC channel 2 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 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 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 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 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 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 CR DMAUDRIE2 LL_DAC_DisableIT_DMAUDR2. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsEnabledIT_DMAUDR1 (DAC_TypeDef *DACx) |
| Get DMA underrun interrupt for DAC channel 1 CR DMAUDRIE1 LL_DAC_IsEnabledIT_DMAUDR1. More... | |
| __STATIC_INLINE uint32_t | LL_DAC_IsEnabledIT_DMAUDR2 (DAC_TypeDef *DACx) |
| Get DMA underrun interrupt for DAC channel 2 CR DMAUDRIE2 LL_DAC_IsEnabledIT_DMAUDR2. More... | |
| ErrorStatus | LL_DAC_DeInit (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, 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.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32l4xx_ll_dac.h.