STM32L486xx HAL User Manual
|
Functions | |
__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. | |
__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. | |
__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. | |
__STATIC_INLINE uint32_t | LL_DAC_GetTrimmingValue (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the offset trimming value for the selected DAC channel. | |
__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. | |
__STATIC_INLINE uint32_t | LL_DAC_GetTriggerSource (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the conversion trigger source for the selected DAC channel. | |
__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. | |
__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. | |
__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). | |
__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). | |
__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. | |
__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. | |
__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. | |
__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. | |
__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. | |
__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. | |
__STATIC_INLINE uint32_t | LL_DAC_GetOutputBuffer (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the output buffer state for the selected DAC channel. | |
__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. | |
__STATIC_INLINE uint32_t | LL_DAC_GetOutputConnection (DAC_TypeDef *DACx, uint32_t DAC_Channel) |
Get the output connection for the selected DAC channel. | |
__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. | |
__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. | |
__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. | |
__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. | |
__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. | |
__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. |
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
OutputMode | This parameter can be one of the following values: |
OutputBuffer | This parameter can be one of the following values: |
OutputConnection | This parameter can be one of the following values: |
None |
Definition at line 1015 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Returned | value can be one of the following values: |
Definition at line 656 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__STATIC_INLINE uint32_t LL_DAC_GetOutputBuffer | ( | DAC_TypeDef * | DACx, |
uint32_t | DAC_Channel | ||
) |
Get the output buffer state for the selected DAC channel.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Returned | value can be one of the following values: |
Definition at line 1116 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__STATIC_INLINE uint32_t LL_DAC_GetOutputConnection | ( | DAC_TypeDef * | DACx, |
uint32_t | DAC_Channel | ||
) |
Get the output connection for the selected DAC channel.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Returned | value can be one of the following values: |
Definition at line 1181 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Returned | value can be one of the following values: |
Definition at line 1067 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Value | between Min_Data=0x000 and Max_Data=0x3FF |
Definition at line 1273 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Value | between Min_Data=0x00 and Max_Data=0xFF |
Definition at line 1316 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Value | between Min_Data=0x000 and Max_Data=0x3FF |
Definition at line 1230 of file stm32l4xx_ll_dac.h.
References __DAC_MASK_SHIFT, __DAC_PTR_REG_OFFSET, and DAC_REG_SHSRX_REGOFFSET_MASK.
__STATIC_INLINE uint32_t LL_DAC_GetTriggerSource | ( | DAC_TypeDef * | DACx, |
uint32_t | DAC_Channel | ||
) |
Get the conversion trigger source for the selected DAC channel.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Returned | value can be one of the following values: |
Definition at line 768 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
TrimmingValue | Value between Min_Data=0x00 and Max_Data=0x1F |
Definition at line 701 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Returned | value can be one of the following values: |
Definition at line 817 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
Referenced by LL_DAC_GetWaveMode().
__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).
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Definition at line 889 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
Definition at line 961 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values:
|
ChannelMode | This parameter can be one of the following values: |
None |
Definition at line 633 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
OutputBuffer | This parameter can be one of the following values: |
None |
Definition at line 1094 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
OutputConnection | This parameter can be one of the following values: |
None |
Definition at line 1149 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
OutputMode | This parameter can be one of the following values: |
None |
Definition at line 1045 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
HoldTime | Value between Min_Data=0x000 and Max_Data=0x3FF |
None |
Definition at line 1252 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
RefreshTime | Value between Min_Data=0x00 and Max_Data=0xFF |
None |
Definition at line 1295 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
SampleTime | Value between Min_Data=0x000 and Max_Data=0x3FF |
None |
Definition at line 1207 of file stm32l4xx_ll_dac.h.
References __DAC_MASK_SHIFT, __DAC_PTR_REG_OFFSET, and DAC_REG_SHSRX_REGOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
TriggerSource | This parameter can be one of the following values: |
None |
Definition at line 736 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
TrimmingValue | Value between Min_Data=0x00 and Max_Data=0x1F |
None |
Definition at line 679 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
WaveAutoGeneration | This parameter can be one of the following values: |
None |
Definition at line 793 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
Referenced by LL_DAC_SetWaveMode().
__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).
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
NoiseLFSRMask | This parameter can be one of the following values:
|
None |
Definition at line 856 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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.
DACx | DAC instance |
DAC_Channel | This parameter can be one of the following values: (1) On this STM32 serie, parameter not available on all devices. Refer to device datasheet for channels availability. |
TriangleAmplitude | This parameter can be one of the following values:
|
None |
Definition at line 928 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.