27 #ifndef LPC17XX_DAC_H_
28 #define LPC17XX_DAC_H_
48 #define DAC_VALUE(n) ((uint32_t)((n&0x3FF)<<6))
53 #define DAC_BIAS_EN ((uint32_t)(1<<16))
55 #define DAC_CCNT_VALUE(n) ((uint32_t)(n&0xffff))
58 #define DAC_DBLBUF_ENA ((uint32_t)(1<<1))
60 #define DAC_CNT_ENA ((uint32_t)(1<<2))
62 #define DAC_DMA_ENA ((uint32_t)(1<<3))
64 #define DAC_DACCTRL_MASK ((uint32_t)(0x0F))
67 #define PARAM_DACx(n) (((uint32_t *)n)==((uint32_t *)LPC_DAC))
70 #define PARAM_DAC_CURRENT_OPT(OPTION) ((OPTION == DAC_MAX_CURRENT_700uA)\
71 ||(OPTION == DAC_MAX_CURRENT_350uA))