Jon Buckman / AD5668
Embed: (wiki syntax)

« Back to documentation index

AD5668 Class Reference

AD5668 Class Reference

AD5668 Digital to Analog Converter from Analog Devices. More...

#include <ad5668.h>

Public Member Functions

 AD5668 (PinName mosi, PinName miso, PinName sck, PinName csn)
 Constructor.
void AD5668_PowerMode (unsigned char pwrMode, unsigned char channel)
 Set power mode for each channnel.
void AD5668_Reset (void)
 Reset the device.
void AD5668_WriteInput (uint8_t channel, uint16_t data)
 Write a data word to a channel.
void AD5668_UpdateDAC (uint8_t channel, uint16_t data)
 Latch a data word to a channel.
void AD5668_WriteInputUpdateAll (uint8_t channel, uint16_t data)
 Write a data word to a channel and latch all channels.
void AD5668_WriteInputUpdate (uint8_t channel, uint16_t data)
 Write a data word to a channel and latch the same channel.
void AD5668_InternalReference (uint8_t val)
 Set the internal voltage reference on or off.
void AD5668_ClearCode (uint8_t val)
 Set the internal voltage reference on or off.

Detailed Description

AD5668 Digital to Analog Converter from Analog Devices.

Definition at line 121 of file ad5668.h.


Constructor & Destructor Documentation

AD5668 ( PinName  mosi,
PinName  miso,
PinName  sck,
PinName  csn 
)

Constructor.

Includes.

Parameters:
mosimbed pin to use for MOSI line of SPI interface.
misombed pin to use for MISO line of SPI interface.
sckmbed pin to use for SCK line of SPI interface.
csnmbed pin to use for not chip select line of SPI interface.

Defines Methods

Definition at line 48 of file ad5668.cpp.


Member Function Documentation

void AD5668_ClearCode ( uint8_t  val )

Set the internal voltage reference on or off.

Parameters:
valclear mode of the device.

Definition at line 114 of file ad5668.cpp.

void AD5668_InternalReference ( uint8_t  val )

Set the internal voltage reference on or off.

Parameters:
valset internal voltage reference.

Definition at line 109 of file ad5668.cpp.

void AD5668_PowerMode ( unsigned char  pwrMode,
unsigned char  channel 
)

Set power mode for each channnel.

Parameters:
pwrModepower mode of the device.
channelthe channel or channels that are being configured.

Definition at line 66 of file ad5668.cpp.

void AD5668_Reset ( void   )

Reset the device.

Parameters:
none.

Definition at line 84 of file ad5668.cpp.

void AD5668_UpdateDAC ( uint8_t  channel,
uint16_t  data 
)

Latch a data word to a channel.

Parameters:
channelthe channel or channels that are being configured.
datathe DAC data word.

Definition at line 94 of file ad5668.cpp.

void AD5668_WriteInput ( uint8_t  channel,
uint16_t  data 
)

Write a data word to a channel.

Parameters:
channelthe channel or channels that are being configured.
datathe DAC data word.

Definition at line 89 of file ad5668.cpp.

void AD5668_WriteInputUpdate ( uint8_t  channel,
uint16_t  data 
)

Write a data word to a channel and latch the same channel.

Parameters:
channelthe channel or channels that are being configured.
datathe DAC data word.

Definition at line 104 of file ad5668.cpp.

void AD5668_WriteInputUpdateAll ( uint8_t  channel,
uint16_t  data 
)

Write a data word to a channel and latch all channels.

Parameters:
channelthe channel or channels that are being configured.
datathe DAC data word.

Definition at line 99 of file ad5668.cpp.