|
STM32F439xx HAL User Manual
|
IO operation functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_DAC_Start (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Enables DAC and starts conversion of channel. | |
| HAL_StatusTypeDef | HAL_DAC_Stop (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Disables DAC and stop conversion of channel. | |
| HAL_StatusTypeDef | HAL_DAC_Start_DMA (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t *pData, uint32_t Length, uint32_t Alignment) |
| Enables DAC and starts conversion of channel. | |
| HAL_StatusTypeDef | HAL_DAC_Stop_DMA (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Disables DAC and stop conversion of channel. | |
| uint32_t | HAL_DAC_GetValue (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Returns the last data output value of the selected DAC channel. | |
| void | HAL_DAC_IRQHandler (DAC_HandleTypeDef *hdac) |
| Handles DAC interrupt request. | |
| __weak void | HAL_DAC_ConvCpltCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Conversion complete callback in non blocking mode for Channel1. | |
| __weak void | HAL_DAC_ConvHalfCpltCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Conversion half DMA transfer callback in non blocking mode for Channel1. | |
| __weak void | HAL_DAC_ErrorCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Error DAC callback for Channel1. | |
| __weak void | HAL_DAC_DMAUnderrunCallbackCh1 (DAC_HandleTypeDef *hdac) |
| DMA underrun DAC callback for channel1. | |
IO operation functions.
==============================================================================
##### IO operation 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.
| __weak void HAL_DAC_ConvCpltCallbackCh1 | ( | DAC_HandleTypeDef * | hdac | ) |
Conversion complete callback in non blocking mode for Channel1.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 687 of file stm32f4xx_hal_dac.c.
Referenced by DAC_DMAConvCpltCh1().
| __weak void HAL_DAC_ConvHalfCpltCallbackCh1 | ( | DAC_HandleTypeDef * | hdac | ) |
Conversion half DMA transfer callback in non blocking mode for Channel1.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 702 of file stm32f4xx_hal_dac.c.
Referenced by DAC_DMAHalfConvCpltCh1().
| __weak void HAL_DAC_DMAUnderrunCallbackCh1 | ( | DAC_HandleTypeDef * | hdac | ) |
DMA underrun DAC callback for channel1.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 732 of file stm32f4xx_hal_dac.c.
Referenced by HAL_DAC_IRQHandler().
| __weak void HAL_DAC_ErrorCallbackCh1 | ( | DAC_HandleTypeDef * | hdac | ) |
Error DAC callback for Channel1.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 717 of file stm32f4xx_hal_dac.c.
Referenced by DAC_DMAErrorCh1().
| uint32_t HAL_DAC_GetValue | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel | ||
| ) |
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. |
| Channel | The selected DAC channel. This parameter can be one of the following values:
|
| The | selected DAC channel data output value. |
Definition at line 619 of file stm32f4xx_hal_dac.c.
References assert_param, DAC_CHANNEL_1, DAC_HandleTypeDef::Instance, and IS_DAC_CHANNEL.
| void HAL_DAC_IRQHandler | ( | DAC_HandleTypeDef * | hdac | ) |
Handles DAC interrupt request.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 641 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_CLEAR_FLAG, __HAL_DAC_GET_FLAG, DAC_FLAG_DMAUDR1, DAC_FLAG_DMAUDR2, DAC_HandleTypeDef::ErrorCode, HAL_DAC_DMAUnderrunCallbackCh1(), HAL_DAC_ERROR_DMAUNDERRUNCH1, HAL_DAC_ERROR_DMAUNDERRUNCH2, HAL_DAC_STATE_ERROR, HAL_DACEx_DMAUnderrunCallbackCh2(), DAC_HandleTypeDef::Instance, and DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DAC_Start | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel | ||
| ) |
Enables DAC and starts conversion of channel.
| 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:
|
| HAL | status |
Definition at line 359 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_ENABLE, assert_param, DAC_CHANNEL_1, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DAC_Start_DMA | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel, | ||
| uint32_t * | pData, | ||
| uint32_t | Length, | ||
| uint32_t | Alignment | ||
| ) |
Enables DAC and starts conversion of channel.
| 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:
|
| pData | The destination peripheral Buffer address. |
| Length | The length of data to be transferred from memory to DAC peripheral |
| Alignment | Specifies the data alignment for DAC channel. This parameter can be one of the following values:
|
| HAL | status |
Definition at line 450 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_ENABLE, __HAL_DAC_ENABLE_IT, assert_param, DAC_ALIGN_12B_L, DAC_ALIGN_12B_R, DAC_ALIGN_8B_R, DAC_CHANNEL_1, DAC_DMAConvCpltCh1(), DAC_DMAConvCpltCh2(), DAC_DMAErrorCh1(), DAC_DMAErrorCh2(), DAC_DMAHalfConvCpltCh1(), DAC_DMAHalfConvCpltCh2(), DAC_IT_DMAUDR1, DAC_IT_DMAUDR2, DAC_HandleTypeDef::DMA_Handle1, DAC_HandleTypeDef::DMA_Handle2, HAL_DAC_STATE_BUSY, HAL_DMA_Start_IT(), DAC_HandleTypeDef::Instance, IS_DAC_ALIGN, IS_DAC_CHANNEL, DAC_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.
| HAL_StatusTypeDef HAL_DAC_Stop | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel | ||
| ) |
Disables DAC and stop conversion of channel.
| 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:
|
| HAL | status |
Definition at line 418 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_DISABLE, assert_param, HAL_DAC_STATE_READY, IS_DAC_CHANNEL, and DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DAC_Stop_DMA | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel | ||
| ) |
Disables DAC and stop conversion of channel.
| 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:
|
| HAL | status |
Definition at line 569 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_DISABLE, assert_param, DAC_CHANNEL_1, DAC_HandleTypeDef::DMA_Handle1, DAC_HandleTypeDef::DMA_Handle2, HAL_DAC_STATE_ERROR, HAL_DAC_STATE_READY, HAL_DMA_Abort(), DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and DAC_HandleTypeDef::State.
1.7.6.1