STM32L443xx 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 1012 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: |
Returned | value can be one of the following values: |
Definition at line 653 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 1114 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 1179 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 1065 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 1271 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 1314 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 1228 of file stm32l4xx_ll_dac.h.
References __DAC_PTR_REG_OFFSET, DAC_REG_SHSRX_REGOFFSET_BITOFFSET_POS, and DAC_REG_SHSRX_REGOFFSET_MASK_POSBIT0.
__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 764 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: |
TrimmingValue | Value between Min_Data=0x00 and Max_Data=0x1F |
Definition at line 692 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 813 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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 885 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 958 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 1092 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 1147 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 1043 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 1250 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 1293 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 1205 of file stm32l4xx_ll_dac.h.
References __DAC_PTR_REG_OFFSET, DAC_REG_SHSRX_REGOFFSET_BITOFFSET_POS, and DAC_REG_SHSRX_REGOFFSET_MASK_POSBIT0.
__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: |
TriggerSource | This parameter can be one of the following values:
|
None |
Definition at line 728 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: |
TrimmingValue | Value between Min_Data=0x00 and Max_Data=0x1F |
None |
Definition at line 673 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 789 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.
__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 852 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 924 of file stm32l4xx_ll_dac.h.
References DAC_CR_CHX_BITOFFSET_MASK.