PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
dac.h File Reference
#include "pdl.h"
Include dependency graph for dac.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stc_dac_config
 DAC configuration. More...
 

Macros

#define stc_dacn_t   FM4_DAC_TypeDef
 
#define DAC0   (*(( stc_dacn_t *) FM4_DAC_BASE))
 

Typedefs

typedef struct stc_dac_config stc_dac_config_t
 DAC configuration. More...
 

Functions

en_result_t Dac_Init (FM4_DAC_TypeDef *pstcDac, stc_dac_config_t *pstcConfig)
 DAC Initialization. More...
 
en_result_t Dac_DeInit (FM4_DAC_TypeDef *pstcDac)
 DAC De-Initialization. More...
 
en_result_t Dac_SetValue0 (FM4_DAC_TypeDef *pstcDac, uint16_t u16DacValue)
 Set DAC0 12-bit value. More...
 
en_result_t Dac_SetValue1 (FM4_DAC_TypeDef *pstcDac, uint16_t u16DacValue)
 Set DAC1 12-bit value. More...
 
en_result_t Dac_Enable0 (FM4_DAC_TypeDef *pstcDac)
 Enable DAC0. More...
 
en_result_t Dac_Enable1 (FM4_DAC_TypeDef *pstcDac)
 Enable DAC1. More...
 
en_result_t Dac_Disable0 (FM4_DAC_TypeDef *pstcDac)
 Disable DAC0. More...
 
en_result_t Dac_Disable1 (FM4_DAC_TypeDef *pstcDac)
 Disable DAC1. More...
 

Detailed Description

Headerfile for DAC functions

History:

  • 2013-03-22 1.0 MWi First version.

Definition in file dac.h.