|
STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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, const 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. | |
| void | HAL_DAC_IRQHandler (DAC_HandleTypeDef *hdac) |
| Handles DAC interrupt request This function uses the interruption of DMA underrun. | |
| HAL_StatusTypeDef | HAL_DAC_SetValue (DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data) |
| Set the specified data holding register value for DAC channel. | |
| void | HAL_DAC_ConvCpltCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Conversion complete callback in non-blocking mode for Channel1. | |
| void | HAL_DAC_ConvHalfCpltCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Conversion half DMA transfer callback in non-blocking mode for Channel1. | |
| void | HAL_DAC_ErrorCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Error DAC callback for Channel1. | |
| 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.| HAL_StatusTypeDef HAL_DAC_Start | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel ) |
#include <stm32f4xx_hal_dac.h>
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 435 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_ENABLE, __HAL_LOCK, __HAL_UNLOCK, assert_param, DAC_CHANNEL_1, DAC_TRIGGER_SOFTWARE, HAL_DAC_STATE_BUSY, HAL_DAC_STATE_READY, HAL_ERROR, HAL_OK, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DAC_Stop | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel ) |
#include <stm32f4xx_hal_dac.h>
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 496 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_DISABLE, assert_param, HAL_DAC_STATE_READY, HAL_ERROR, HAL_OK, IS_DAC_CHANNEL, and DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DAC_Start_DMA | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel, | ||
| const uint32_t * | pData, | ||
| uint32_t | Length, | ||
| uint32_t | Alignment ) |
#include <stm32f4xx_hal_dac.h>
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 source 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 534 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_ENABLE, __HAL_DAC_ENABLE_IT, __HAL_LOCK, __HAL_UNLOCK, assert_param, DAC_ALIGN_12B_L, DAC_ALIGN_12B_R, DAC_CHANNEL_1, DAC_DMAConvCpltCh1(), DAC_DMAErrorCh1(), DAC_DMAHalfConvCpltCh1(), DAC_IT_DMAUDR1, DAC_HandleTypeDef::DMA_Handle1, DAC_HandleTypeDef::DMA_Handle2, DAC_HandleTypeDef::ErrorCode, HAL_DAC_ERROR_DMA, HAL_DAC_STATE_BUSY, HAL_DMA_Start_IT(), HAL_ERROR, HAL_OK, 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_DMA | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel ) |
#include <stm32f4xx_hal_dac.h>
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 666 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_DISABLE, __HAL_DAC_DISABLE_IT, assert_param, DAC_CHANNEL_1, DAC_IT_DMAUDR1, DAC_HandleTypeDef::DMA_Handle1, DAC_HandleTypeDef::DMA_Handle2, HAL_DAC_STATE_READY, HAL_DMA_Abort(), HAL_ERROR, HAL_OK, DAC_HandleTypeDef::Instance, IS_DAC_CHANNEL, and DAC_HandleTypeDef::State.
| void HAL_DAC_IRQHandler | ( | DAC_HandleTypeDef * | hdac | ) |
#include <stm32f4xx_hal_dac.h>
Handles DAC interrupt request This function uses the interruption of DMA underrun.
| hdac | pointer to a DAC_HandleTypeDef structure that contains the configuration information for the specified DAC. |
| None |
Definition at line 720 of file stm32f4xx_hal_dac.c.
References __HAL_DAC_CLEAR_FLAG, __HAL_DAC_DISABLE_IT, DAC_FLAG_DMAUDR1, DAC_IT_DMAUDR1, DAC_HandleTypeDef::ErrorCode, HAL_DAC_DMAUnderrunCallbackCh1(), HAL_DAC_ERROR_DMAUNDERRUNCH1, HAL_DAC_STATE_ERROR, DAC_HandleTypeDef::Instance, and DAC_HandleTypeDef::State.
| HAL_StatusTypeDef HAL_DAC_SetValue | ( | DAC_HandleTypeDef * | hdac, |
| uint32_t | Channel, | ||
| uint32_t | Alignment, | ||
| uint32_t | Data ) |
#include <stm32f4xx_hal_dac.h>
Set the specified data holding register value for 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:
|
| Alignment | Specifies the data alignment. This parameter can be one of the following values:
|
| Data | Data to be loaded in the selected data holding register. |
| HAL | status |
Definition at line 796 of file stm32f4xx_hal_dac.c.
References assert_param, DAC_CHANNEL_1, DAC_DHR12R1_ALIGNMENT, HAL_ERROR, HAL_OK, DAC_HandleTypeDef::Instance, IS_DAC_ALIGN, IS_DAC_CHANNEL, and IS_DAC_DATA.
| __weak void HAL_DAC_ConvCpltCallbackCh1 | ( | DAC_HandleTypeDef * | hdac | ) |
#include <stm32f4xx_hal_dac.h>
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 836 of file stm32f4xx_hal_dac.c.
References UNUSED.
Referenced by DAC_DMAConvCpltCh1(), and HAL_DAC_Init().
| __weak void HAL_DAC_ConvHalfCpltCallbackCh1 | ( | DAC_HandleTypeDef * | hdac | ) |
#include <stm32f4xx_hal_dac.h>
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 852 of file stm32f4xx_hal_dac.c.
References UNUSED.
Referenced by DAC_DMAHalfConvCpltCh1(), and HAL_DAC_Init().
| __weak void HAL_DAC_ErrorCallbackCh1 | ( | DAC_HandleTypeDef * | hdac | ) |
#include <stm32f4xx_hal_dac.h>
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 868 of file stm32f4xx_hal_dac.c.
References UNUSED.
Referenced by DAC_DMAErrorCh1(), and HAL_DAC_Init().
| __weak void HAL_DAC_DMAUnderrunCallbackCh1 | ( | DAC_HandleTypeDef * | hdac | ) |
#include <stm32f4xx_hal_dac.h>
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 884 of file stm32f4xx_hal_dac.c.
References UNUSED.
Referenced by HAL_DAC_Init(), and HAL_DAC_IRQHandler().