|
STM32L4xx_HAL_Driver
1.14.0
|
Header file of DAC HAL module. More...
Go to the source code of this file.
Data Structures | |
| struct | endif |
| ADC handle Structure definition. More... | |
| struct | DAC_SampleAndHoldConfTypeDef |
| DAC Configuration sample and hold Channel structure definition. More... | |
| struct | DAC_ChannelConfTypeDef |
| DAC Configuration regular Channel structure definition. More... | |
Typedefs | |
| typedef struct __DAC_HandleTypeDef else typedef struct endif | DAC_HandleTypeDef |
| DAC handle Structure definition. More... | |
| typedef void(* | pDAC_CallbackTypeDef) (DAC_HandleTypeDef *hdac) |
| HAL DAC Callback pointer definition. More... | |
Enumerations | |
| enum | HAL_DAC_CallbackIDTypeDef { HAL_DAC_CH1_COMPLETE_CB_ID = 0x00U, HAL_DAC_CH1_HALF_COMPLETE_CB_ID = 0x01U, HAL_DAC_CH1_ERROR_ID = 0x02U, HAL_DAC_CH1_UNDERRUN_CB_ID = 0x03U, HAL_DAC_CH2_COMPLETE_CB_ID = 0x04U, HAL_DAC_CH2_HALF_COMPLETE_CB_ID = 0x05U, HAL_DAC_CH2_ERROR_ID = 0x06U, HAL_DAC_CH2_UNDERRUN_CB_ID = 0x07U, HAL_DAC_MSPINIT_CB_ID = 0x08U, HAL_DAC_MSPDEINIT_CB_ID = 0x09U, HAL_DAC_ALL_CB_ID = 0x0AU } |
| HAL DAC Callback ID enumeration definition. More... | |
Functions | |
| HAL_StatusTypeDef | HAL_DAC_Init (DAC_HandleTypeDef *hdac) |
| Initialize the DAC peripheral according to the specified parameters in the DAC_InitStruct and initialize the associated handle. More... | |
| HAL_StatusTypeDef | HAL_DAC_DeInit (DAC_HandleTypeDef *hdac) |
| Deinitialize the DAC peripheral registers to their default reset values. More... | |
| void | HAL_DAC_MspInit (DAC_HandleTypeDef *hdac) |
| Initialize the DAC MSP. More... | |
| void | HAL_DAC_MspDeInit (DAC_HandleTypeDef *hdac) |
| DeInitialize the DAC MSP. More... | |
| 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... | |
| uint32_t | HAL_DAC_GetValue (DAC_HandleTypeDef *hdac, uint32_t Channel) |
| Returns the last data output value of the selected DAC channel. More... | |
| HAL_StatusTypeDef | HAL_DAC_ConfigChannel (DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel) |
| Configures the selected DAC channel. More... | |
| HAL_DAC_StateTypeDef | HAL_DAC_GetState (DAC_HandleTypeDef *hdac) |
| return the DAC handle state More... | |
| uint32_t | HAL_DAC_GetError (DAC_HandleTypeDef *hdac) |
| Return the DAC error code. More... | |
| void | DAC_DMAConvCpltCh1 (DMA_HandleTypeDef *hdma) |
| DMA conversion complete callback. More... | |
| void | DAC_DMAErrorCh1 (DMA_HandleTypeDef *hdma) |
| DMA error callback. More... | |
| void | DAC_DMAHalfConvCpltCh1 (DMA_HandleTypeDef *hdma) |
| DMA half transfer complete callback. More... | |
Variables | |
| C | |
Header file of DAC HAL module.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32l4xx_hal_dac.h.
| struct DAC_SampleAndHoldConfTypeDef |
DAC Configuration sample and hold Channel structure definition.
Definition at line 100 of file stm32l4xx_hal_dac.h.
| struct DAC_ChannelConfTypeDef |
DAC Configuration regular Channel structure definition.
Definition at line 118 of file stm32l4xx_hal_dac.h.
| Data Fields | ||
|---|---|---|
| uint32_t | DAC_ConnectOnChipPeripheral |
Specifies whether the DAC output is connected or not to on chip peripheral . This parameter can be a value of DAC ConnectOnChipPeripheral |
| uint32_t | DAC_HighFrequency |
Specifies the frequency interface mode This parameter can be a value of DAC high frequency interface mode |
| uint32_t | DAC_OutputBuffer |
Specifies whether the DAC channel output buffer is enabled or disabled. This parameter can be a value of DAC output buffer |
| uint32_t | DAC_SampleAndHold |
Specifies whether the DAC mode. This parameter can be a value of DAC power mode |
| DAC_SampleAndHoldConfTypeDef | DAC_SampleAndHoldConfig |
Sample and Hold settings |
| uint32_t | DAC_Trigger |
Specifies the external trigger for the selected DAC channel. This parameter can be a value of DAC trigger selection |
| uint32_t | DAC_TrimmingValue |
Specifies the offset trimming value i.e. when DAC_SampleAndHold is DAC_TRIMMING_USER. This parameter must be a number between Min_Data = 1 and Max_Data = 31 |
| uint32_t | DAC_UserTrimming |
Specifies the trimming mode This parameter must be a value of DAC User Trimming DAC_UserTrimming is either factory or user trimming |
| typedef struct __DAC_HandleTypeDef else typedef struct endif DAC_HandleTypeDef |
DAC handle Structure definition.
| typedef void(* pDAC_CallbackTypeDef) (DAC_HandleTypeDef *hdac) |
HAL DAC Callback pointer definition.
Definition at line 171 of file stm32l4xx_hal_dac.h.
HAL DAC Callback ID enumeration definition.
Definition at line 153 of file stm32l4xx_hal_dac.h.
| C |