| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dac_001.h File Reference
`#include "sys_config.h"`
`#include "cmsis.h"`

Go to the source code of this file.

## Data Structures
struct | IP_DAC_001_T
| DAC register block structure. More...

## Macros
#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 & 0xffff))
#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))

## Enumerations
enum | IP_DAC_CURRENT_OPT_T { DAC_MAX_UPDATE_RATE_1MHz = 0, DAC_MAX_UPDATE_RATE_400kHz }
| Current option in DAC configuration option. More...

## Functions
void | IP_DAC_Init (IP_DAC_001_T *pDAC)
| Initial DAC configuration.
void | IP_DAC_UpdateValue (IP_DAC_001_T *pDAC, uint32_t dac_value)
| Update value to DAC buffer.
void | IP_DAC_SetBias (IP_DAC_001_T *pDAC, uint32_t bias)
| Set maximum update rate for DAC.
STATIC INLINE void | IP_DAC_ConfigDAConverterControl (IP_DAC_001_T *pDAC, uint32_t dacFlags)
| Enables the DMA operation and controls DMA timer.
void | IP_DAC_SetDMATimeOut (IP_DAC_001_T *pDAC, uint32_t time_out)
| Set reload value for interrupt/DMA counter.
IntStatus | IP_DAC_GetIntStatus (IP_DAC_001_T *pDAC)
| Get status for interrupt/DMA time out.