|
STM32L4xx_HAL_Driver
1.14.0
|
IO operation functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_DAC_Start (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Enables DAC and starts conversion of channel. More... | |
| HAL_StatusTypeDef | HAL_DAC_Stop (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Disables DAC and stop conversion of channel. More... | |
| 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. More... | |
| HAL_StatusTypeDef | HAL_DAC_Stop_DMA (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Disables DAC and stop conversion of channel. More... | |
| void | HAL_DAC_IRQHandler (DAC_HandleTypeDef *hdac) |
| Handles DAC interrupt request This function uses the interruption of DMA underrun. More... | |
| 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. More... | |
| void | HAL_DAC_ConvCpltCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Conversion complete callback in non-blocking mode for Channel1. More... | |
| void | HAL_DAC_ConvHalfCpltCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Conversion half DMA transfer callback in non-blocking mode for Channel1. More... | |
| void | HAL_DAC_ErrorCallbackCh1 (DAC_HandleTypeDef *hdac) |
| Error DAC callback for Channel1. More... | |
| void | HAL_DAC_DMAUnderrunCallbackCh1 (DAC_HandleTypeDef *hdac) |
| DMA underrun DAC callback for channel1. More... | |
| HAL_StatusTypeDef | HAL_DAC_RegisterCallback (DAC_HandleTypeDef *hdac, HAL_DAC_CallbackIDTypeDef CallbackID, pDAC_CallbackTypeDef pCallback) |
| Register a User DAC Callback To be used instead of the weak (surcharged) predefined callback. More... | |
| HAL_StatusTypeDef | HAL_DAC_UnRegisterCallback (DAC_HandleTypeDef *hdac, HAL_DAC_CallbackIDTypeDef CallbackID) |
| Unregister a User DAC Callback DAC Callback is redirected to the weak (surcharged) predefined callback. More... | |
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 1067 of file stm32l4xx_hal_dac.c.
| __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 1083 of file stm32l4xx_hal_dac.c.
| __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 1115 of file stm32l4xx_hal_dac.c.
| __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 1099 of file stm32l4xx_hal_dac.c.
| void HAL_DAC_IRQHandler | ( | DAC_HandleTypeDef * | hdac | ) |
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 959 of file stm32l4xx_hal_dac.c.
| HAL_StatusTypeDef HAL_DAC_RegisterCallback | ( | DAC_HandleTypeDef * | hdac, |
| HAL_DAC_CallbackIDTypeDef | CallbackID, | ||
| pDAC_CallbackTypeDef | pCallback | ||
| ) |
Register a User DAC Callback To be used instead of the weak (surcharged) predefined callback.
| hdac | DAC handle |
| CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
| pCallback | pointer to the Callback function |
| status |
Definition at line 1457 of file stm32l4xx_hal_dac.c.
| 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.
| 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 1035 of file stm32l4xx_hal_dac.c.
| 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 541 of file stm32l4xx_hal_dac.c.
| 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 |
| 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 661 of file stm32l4xx_hal_dac.c.
| 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 629 of file stm32l4xx_hal_dac.c.
| 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 885 of file stm32l4xx_hal_dac.c.
| HAL_StatusTypeDef HAL_DAC_UnRegisterCallback | ( | DAC_HandleTypeDef * | hdac, |
| HAL_DAC_CallbackIDTypeDef | CallbackID | ||
| ) |
Unregister a User DAC Callback DAC Callback is redirected to the weak (surcharged) predefined callback.
| hdac | DAC handle |
| CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
| status |
Definition at line 1564 of file stm32l4xx_hal_dac.c.