Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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:
-
mosi mbed pin to use for MOSI line of SPI interface. miso mbed pin to use for MISO line of SPI interface. sck mbed pin to use for SCK line of SPI interface. csn mbed 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:
-
val clear 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:
-
val set 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:
-
pwrMode power mode of the device. channel the channel or channels that are being configured.
Definition at line 66 of file ad5668.cpp.
void AD5668_Reset | ( | void | ) |
void AD5668_UpdateDAC | ( | uint8_t | channel, |
uint16_t | data | ||
) |
Latch a data word to a channel.
- Parameters:
-
channel the channel or channels that are being configured. data the 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:
-
channel the channel or channels that are being configured. data the 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:
-
channel the channel or channels that are being configured. data the 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:
-
channel the channel or channels that are being configured. data the DAC data word.
Definition at line 99 of file ad5668.cpp.
Generated on Wed Jul 20 2022 09:43:23 by
