NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

lpc17xx_dac.h File Reference

lpc17xx_dac.h File Reference

: Contains all macro definitions and function prototypes support for DAC firmware library on LPC17xx More...

Go to the source code of this file.

Data Structures

struct  DAC_CONVERTER_CFG_Type
 Configuration for DA converter control register. More...

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

  • Maximum current is 700 uA
  • Value to AOUT is 0.

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

Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Definition in file lpc17xx_dac.h.