STM32F439xx HAL User Manual
|
Extended features functions. More...
Functions | |
uint32_t | HAL_DACEx_DualGetValue (DAC_HandleTypeDef *hdac) |
Returns the last data output value of the selected DAC channel. | |
HAL_StatusTypeDef | HAL_DACEx_TriangleWaveGenerate (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Amplitude) |
Enables or disables the selected DAC channel wave generation. | |
HAL_StatusTypeDef | HAL_DACEx_NoiseWaveGenerate (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Amplitude) |
Enables or disables the selected DAC channel wave generation. | |
HAL_StatusTypeDef | HAL_DACEx_DualSetValue (DAC_HandleTypeDef *hdac, uint32_t Alignment, uint32_t Data1, uint32_t Data2) |
Set the specified data holding register value for dual DAC channel. | |
void | HAL_DACEx_ConvCpltCallbackCh2 (DAC_HandleTypeDef *hdac) |
Conversion complete callback in non blocking mode for Channel2. | |
void | HAL_DACEx_ConvHalfCpltCallbackCh2 (DAC_HandleTypeDef *hdac) |
Conversion half DMA transfer callback in non blocking mode for Channel2. | |
void | HAL_DACEx_ErrorCallbackCh2 (DAC_HandleTypeDef *hdac) |
Error DAC callback for Channel2. | |
void | HAL_DACEx_DMAUnderrunCallbackCh2 (DAC_HandleTypeDef *hdac) |
DMA underrun DAC callback for channel2. |
Extended features functions.
============================================================================== ##### Extended features functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Start conversion. (+) Stop conversion. (+) Start conversion and enable DMA transfer. (+) Stop conversion and disable DMA transfer. (+) Get result of conversion. (+) Get result of dual mode conversion.
void HAL_DACEx_ConvCpltCallbackCh2 | ( | DAC_HandleTypeDef * | hdac | ) |
Conversion complete callback in non blocking mode for Channel2.
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
None |
Definition at line 270 of file stm32f4xx_hal_dac_ex.c.
Referenced by DAC_DMAConvCpltCh2().
void HAL_DACEx_ConvHalfCpltCallbackCh2 | ( | DAC_HandleTypeDef * | hdac | ) |
Conversion half DMA transfer callback in non blocking mode for Channel2.
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
None |
Definition at line 285 of file stm32f4xx_hal_dac_ex.c.
Referenced by DAC_DMAHalfConvCpltCh2().
void HAL_DACEx_DMAUnderrunCallbackCh2 | ( | DAC_HandleTypeDef * | hdac | ) |
DMA underrun DAC callback for channel2.
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
None |
Definition at line 315 of file stm32f4xx_hal_dac_ex.c.
Referenced by HAL_DAC_IRQHandler().
uint32_t HAL_DACEx_DualGetValue | ( | DAC_HandleTypeDef * | hdac | ) |
Returns the last data output value of the selected DAC channel.
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
The | selected DAC channel data output value. |
Definition at line 108 of file stm32f4xx_hal_dac_ex.c.
References DAC_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_DACEx_DualSetValue | ( | DAC_HandleTypeDef * | hdac, |
uint32_t | Alignment, | ||
uint32_t | Data1, | ||
uint32_t | Data2 | ||
) |
Set the specified data holding register value for dual DAC channel.
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
Alignment | Specifies the data alignment for dual channel DAC. This parameter can be one of the following values: DAC_ALIGN_8B_R: 8bit right data alignment selected DAC_ALIGN_12B_L: 12bit left data alignment selected DAC_ALIGN_12B_R: 12bit right data alignment selected |
Data1 | Data for DAC Channel2 to be loaded in the selected data holding register. |
Data2 | Data for DAC Channel1 to be loaded in the selected data holding register. |
HAL | status |
Definition at line 231 of file stm32f4xx_hal_dac_ex.c.
References assert_param, DAC_ALIGN_8B_R, DAC_DHR12RD_ALIGNMENT, DAC_HandleTypeDef::Instance, IS_DAC_ALIGN, and IS_DAC_DATA.
void HAL_DACEx_ErrorCallbackCh2 | ( | DAC_HandleTypeDef * | hdac | ) |
Error DAC callback for Channel2.
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
None |
Definition at line 300 of file stm32f4xx_hal_dac_ex.c.
Referenced by DAC_DMAErrorCh2().
HAL_StatusTypeDef HAL_DACEx_NoiseWaveGenerate | ( | DAC_HandleTypeDef * | hdac, |
uint32_t | Channel, | ||
uint32_t | Amplitude | ||
) |
Enables or disables the selected DAC channel wave generation.
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
Channel | The selected DAC channel. This parameter can be one of the following values: DAC_CHANNEL_1 / DAC_CHANNEL_2 |
Amplitude | Unmask DAC channel LFSR for noise wave generation. This parameter can be one of the following values:
|
HAL | status |
Definition at line 191 of file stm32f4xx_hal_dac_ex.c.
References assert_param, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE, and DAC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_DACEx_TriangleWaveGenerate | ( | DAC_HandleTypeDef * | hdac, |
uint32_t | Channel, | ||
uint32_t | Amplitude | ||
) |
Enables or disables the selected DAC channel wave generation.
hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
Channel | The selected DAC channel. This parameter can be one of the following values: DAC_CHANNEL_1 / DAC_CHANNEL_2 |
Amplitude | Select max triangle amplitude. This parameter can be one of the following values:
|
HAL | status |
Definition at line 143 of file stm32f4xx_hal_dac_ex.c.
References assert_param, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, IS_DAC_LFSR_UNMASK_TRIANGLE_AMPLITUDE, and DAC_HandleTypeDef::State.