C:/nxpdrv/LPC1700CMSIS/Drivers/include/lpc17xx_dac.h File Reference
: Contains all macro definitions and function prototypes support for DAC firmware library on LPC17xx More...
#include "LPC17xx.h"
#include "lpc_types.h"
Go to the source code of this file.
Data Structures | |
| struct | DAC_CONVERTER_CFG_Type |
| Configuration for DA converter control register. More... | |
Defines | |
| #define | PARAM_DAC_CURRENT_OPT(OPTION) |
| #define | DAC_VALUE(n) ((uint32_t)((n&0x3FF)<<6)) |
| #define | DAC_BIAS_EN ((uint32_t)(1<<16)) |
| #define | DAC_CCNT_VALUE(n) ((uint32_t)(n&0xff)) |
| #define | DAC_DBLBUF_ENA ((uint32_t)(1<<1)) |
| #define | DAC_CNT_ENA ((uint32_t)(1<<2)) |
| #define | DAC_DMA_ENA ((uint32_t)(1<<3)) |
| #define | DAC_DACCTRL_MASK ((uint32_t)(0x0F)) |
| #define | PARAM_DACx(n) (((uint32_t *)n)==((uint32_t *)LPC_DAC)) |
Enumerations | |
| enum | DAC_CURRENT_OPT { DAC_MAX_CURRENT_700uA = 0, DAC_MAX_CURRENT_350uA } |
| Current option in ADC confuration option. More... | |
Functions | |
| void | DAC_Init (LPC_DAC_TypeDef *DACx) |
Initial ADC configuration
| |
| void | DAC_UpdateValue (LPC_DAC_TypeDef *DACx, uint32_t dac_value) |
| Update value to DAC. | |
| void | DAC_SetBias (LPC_DAC_TypeDef *DACx, uint32_t bias) |
| Set Maximum current for DAC. | |
| void | DAC_ConfigDAConverterControl (LPC_DAC_TypeDef *DACx, DAC_CONVERTER_CFG_Type *DAC_ConverterConfigStruct) |
| To enable the DMA operation and control DMA timer. | |
| void | DAC_SetDMATimeOut (LPC_DAC_TypeDef *DACx, uint32_t time_out) |
| Set reload value for interrupt/DMA counter. | |
Detailed Description
: Contains all macro definitions and function prototypes support for DAC firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 3. April. 2009
- Author:
- : HieuNguyen
Definition in file lpc17xx_dac.h.
Generated on Mon Feb 8 10:01:38 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by
1.5.9