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 bool getRes()
command void setData(uint16_t data)
command void setInputRange(bool range)
command void setRef(dac12ref_t refSelect)
command void setRes(bool res)
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()
- 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)
- 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)
- Parameters:
-
res
- FALSE for 12-bit, TRUE for 8-bit
startCalibration
command void startCalibration()
ungroup
command void ungroup()