Interface: moteiv.tos.platform.msp430.dac.HPLDAC12

interface HPLDAC12

Interface to the DAC on the MSP430 platform

Author:
Joe Polastre <info@moteiv.com>

Commands
command void disableInterrupts()
command void enableInterrupts()
command dac12amp_t getAmplifier()
command bool getCalibration()
command dac12ctl_t getControl()
command uint16_t getData()
command bool getFormat()
command bool getInputRange()
command dac12load_t getLoadSelect()
command dac12ref_t getRef()
command bool getRes() Get the resolution of the DAC
command void group()
command bool isInterruptPending()
command void off()
command void on()
command void setAmplifier(dac12amp_t ampsetting)
command void setControl(dac12ctl_t control)
command void setData(uint16_t data)
command void setFormat(bool format)
command void setInputRange(bool range) Sets the input range of the DAC
command void setLoadSelect(dac12load_t loadSelect)
command void setRef(dac12ref_t refSelect)
command void setRes(bool res) Set the resolution of the DAC
command void startCalibration()
command void ungroup()

Commands - Details

disableInterrupts

command void disableInterrupts()

enableInterrupts

command void enableInterrupts()

getAmplifier

command dac12amp_t getAmplifier()

getCalibration

command bool getCalibration()

getControl

command dac12ctl_t getControl()

getData

command uint16_t getData()

getFormat

command bool getFormat()

getInputRange

command bool getInputRange()

getLoadSelect

command dac12load_t getLoadSelect()

getRef

command dac12ref_t getRef()

getRes

command bool getRes()

Get the resolution of the DAC

Returns:
FALSE for 12-bit, TRUE for 8-bit

group

command void group()

isInterruptPending

command bool isInterruptPending()

off

command void off()

on

command void on()

setAmplifier

command void setAmplifier(dac12amp_t ampsetting)

setControl

command void setControl(dac12ctl_t control)

setData

command void setData(uint16_t data)

setFormat

command void setFormat(bool format)

setInputRange

command void setInputRange(bool range)

Sets the input range of the DAC

Parameters:
range - FALSE for a full-scale output = 3x reference voltage TRUE for a full-scale output = 1x reference voltage

setLoadSelect

command void setLoadSelect(dac12load_t loadSelect)

setRef

command void setRef(dac12ref_t refSelect)

setRes

command void setRes(bool res)

Set the resolution of the DAC

Parameters:
res - FALSE for 12-bit, TRUE for 8-bit

startCalibration

command void startCalibration()

ungroup

command void ungroup()