STM32F4xx_HAL_Driver
1.8.3
|
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_ChannelConfTypeDef |
DAC Configuration regular Channel structure definition. More... | |
Typedefs | |
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. | |
Enumerations | |
enum | HAL_DAC_StateTypeDef { HAL_DAC_STATE_RESET = 0x00U , HAL_DAC_STATE_READY = 0x01U , HAL_DAC_STATE_BUSY = 0x02U , HAL_DAC_STATE_TIMEOUT = 0x03U , HAL_DAC_STATE_ERROR = 0x04U } |
HAL State structures definition. More... | |
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, const 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 (overridden) 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 (overridden) predefined callback. More... | |
uint32_t | HAL_DAC_GetValue (const 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, const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel) |
Configures the selected DAC channel. More... | |
HAL_DAC_StateTypeDef | HAL_DAC_GetState (const DAC_HandleTypeDef *hdac) |
return the DAC handle state More... | |
uint32_t | HAL_DAC_GetError (const 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... | |
Header file of DAC HAL module.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32f4xx_hal_dac.h.