MityDSP Documentation Index
Public Member Functions | Static Public Attributes
MityDSP::tcDspDacTlv5610 Class Reference

Class used to provide interfacing to a TI TLV5610 8-channel digital- to-analog converter via the MityDSP McBSP. More...

#include <core/DspDacTlv5610.h>

Inheritance diagram for MityDSP::tcDspDacTlv5610:
MityDSP::tcDspDacBaseMcBsp

List of all members.

Public Member Functions

 tcDspDacTlv5610 (tcDspMcbsp *apMcBsp, tcDspOutputLatch *apLatch=NULL, int anCSID=0)
 This routine is used to initialize a TLV5610 Digital To Analog converter over a specified McBSP interface.
 ~tcDspDacTlv5610 ()
 Default destructor.
void update (int anChannel, unsigned short anData)
 This routine receives new data for a specified channel and writes the 16-bit data to the ADC.
- Public Member Functions inherited from MityDSP::tcDspDacBaseMcBsp
 tcDspDacBaseMcBsp (tcDspMcbsp *apMcBsp, tcDspOutputLatch *apLatch, int anCSID, int anNumChannels)
 This constructor is used to create an instance of the DAC base class for use with the MityDSP McBSP interface.
virtual ~tcDspDacBaseMcBsp ()
 Destructor for tcDspDacBaseMcBsp class.

Static Public Attributes

static const int gnNumDacChannels = 8

Additional Inherited Members

- Public Types inherited from MityDSP::tcDspDacBaseMcBsp
enum  teDacChannels {
  eeDAC_A = 0, eeDAC_B = 1, eeDAC_C = 2, eeDAC_D = 3,
  eeDAC_E = 4, eeDAC_F = 5, eeDAC_G = 6, eeDAC_H = 7
}
 < DAC channel constant definitions More...
- Protected Attributes inherited from MityDSP::tcDspDacBaseMcBsp
tcDspMcbspmpMcBsp
 the serial interface mcbsp
tcDspOutputLatchmpOutputLatch
 accessor to chip selects
int mnCS
 ID of chip select on latch.
int mnNumChannels
 number of DAC channels available
unsigned short * mnCurrentVals
 current DAC values

Detailed Description

Class used to provide interfacing to a TI TLV5610 8-channel digital- to-analog converter via the MityDSP McBSP.

See also:
tcDspDacTlv5610 Page

Constructor & Destructor Documentation

tcDspDacTlv5610::tcDspDacTlv5610 ( tcDspMcbsp apMcbsp,
tcDspOutputLatch apLatch = NULL,
int  anCS = 0 
)

This routine is used to initialize a TLV5610 Digital To Analog converter over a specified McBSP interface.

Parameters:
[in]apMcbspSerial McBsp Object that the DAC is hooked to
[in]apLatchObject defining a latch interface for the required chip select and LDAC strobes.
[in]anCSID of the DAC chip select line on the latch interface
Returns:
None.
See also:
DspDacTlv5610.h
tcDspDacTlv5610::~tcDspDacTlv5610 ( )

Default destructor.


Member Function Documentation

void tcDspDacTlv5610::update ( int  anChannel,
unsigned short  anData 
)
virtual

This routine receives new data for a specified channel and writes the 16-bit data to the ADC.

Parameters:
[in]anChannelDAC channel to write.
[in]anDataThe value to set the DAC channel to.
Returns:
None.
See also:
DspDacTlv5610.h

Implements MityDSP::tcDspDacBaseMcBsp.


Member Data Documentation

const int MityDSP::tcDspDacTlv5610::gnNumDacChannels = 8
static

  
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.