MityDSP Documentation Index
Public Member Functions | Protected Attributes
MityDSP::tcDspDacAd420 Class Reference

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.

Protected Attributes

tcDspSpimpSpi
 Access to the SPI bus.
tcDspOutputLatchmpLatch
 Access to latch selector.
unsigned int mnLatchID
 ID of latch to use (if any)
unsigned short mnLastData
 Last data written to DAC.

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

tcDspDacAd420::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.

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 ( )

Default destructor.

Returns:
None.
See also:
DspDacAd420.h

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

tcDspSpi* MityDSP::tcDspDacAd420::mpSpi
protected

Access to the SPI bus.

tcDspOutputLatch* MityDSP::tcDspDacAd420::mpLatch
protected

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.


  
Generated on Mon Apr 22 2013 11:33:03 for MityDSP Core by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.