Instances of this class handle access to an Analog Devices AD420 digital-to-current loop converter via the generic SPI interface for the MityDSP.
More...
#include <core/DspDacAd420.h>
List of all members.
Public Member Functions |
| tcDspDacAd420 (tcDspSpi *apSpi, tcDspOutputLatch *apLatch=NULL, unsigned int anLatchID=0) |
| This constructor is used to open an interface to an AD420 via the provided SPI interface.
|
| ~tcDspDacAd420 () |
| Default destructor.
|
bool | update (unsigned short anData) |
| Updates the AD420 with the provided 16-bit data.
|
Detailed Description
Instances of this class handle access to an Analog Devices AD420 digital-to-current loop converter via the generic SPI interface for the MityDSP.
- See also:
- tcDspDacAd420 Page
Constructor & Destructor Documentation
This constructor is used to open an interface to an AD420 via the provided SPI interface.
- Parameters:
-
[in] | apSpi | - Pointer to the SPI interface for the DAC8534. |
[in] | apLatch | - Pointer to an output latch (default:NULL) |
[in] | anLatchID | - ID of the latch to use for this device, if any |
- Returns:
- None.
- See also:
- DspDacAd420.h
tcDspDacAd420::~tcDspDacAd420 |
( |
| ) |
|
Member Function Documentation
bool tcDspDacAd420::update |
( |
unsigned short |
anData | ) |
|
Updates the AD420 with the provided 16-bit data.
The data is loaded to the DAC output immediately.
- Parameters:
-
[in] | anData | - 16-bit data to load to specified DAC channel. |
- Returns:
- None.
- See also:
- DspDacAd420.h
Member Data Documentation
Access to latch selector.
unsigned int MityDSP::tcDspDacAd420::mnLatchID |
|
protected |
ID of latch to use (if any)
unsigned short MityDSP::tcDspDacAd420::mnLastData |
|
protected |
Last data written to DAC.