rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board

Digital-To-Analog Converter driver. More...

Functions

void rflpc_dac_init (uint8_t clock_divider)
 Initializes the Digital To Analog Converter. More...
 
static void rflpc_dac_write (uint16_t value)
 Set the value of DAC register. More...
 

Detailed Description

Digital-To-Analog Converter driver.

Function Documentation

void rflpc_dac_init ( uint8_t  clock_divider)

Initializes the Digital To Analog Converter.

Parameters
clock_dividerThe divider applied to CPU clock.
Note
The DAC is only connected on pin P0.26, thus the init cannot change the pin. On the MBED it corresponds to the DIP18 pin
static void rflpc_dac_write ( uint16_t  value)
inlinestatic

Set the value of DAC register.

Parameters
valueA 10-bits value to be converted.

Definition at line 53 of file dac.h.

References RFLPC_SET_BITS_VAL.