MityDSP Documentation Index

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

Access to the SPI bus.

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 Fri Sep 23 16:33:48 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.