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

Base class for digital-to-analog converter devices using the MityDSP McBSP interface. More...

#include <core/DspDacBaseMcBsp.h>

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

List of all members.

Public Types

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

Public Member Functions

 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.
virtual void update (int anChannel, unsigned short anData)=0

Protected Attributes

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

Base class for digital-to-analog converter devices using the MityDSP McBSP interface.

See also:
tcDspDacBaseMcBsp Page

Member Enumeration Documentation

< DAC channel constant definitions

Enumerator:
eeDAC_A 
eeDAC_B 
eeDAC_C 
eeDAC_D 
eeDAC_E 
eeDAC_F 
eeDAC_G 
eeDAC_H 

Constructor & Destructor Documentation

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.

Parameters:
[in]apMcBspSerial McBSP object that the DAC is hooked to
[in]apLatchObject defining a latch interface for the chip select
[in]anCSIDID of the DAC chip select line on the latch interface
[in]anNumChannelsNumber of channels supported by the derived DAC
Returns:
None
See also:
DspDacBaseMcBsp.h
tcDspDacBaseMcBsp::~tcDspDacBaseMcBsp ( )
virtual

Destructor for tcDspDacBaseMcBsp class.

Returns:
None
See also:
DspDacBaseMcBsp.h

Member Function Documentation

virtual void MityDSP::tcDspDacBaseMcBsp::update ( int  anChannel,
unsigned short  anData 
)
pure virtual

Member Data Documentation

tcDspMcbsp* MityDSP::tcDspDacBaseMcBsp::mpMcBsp
protected

the serial interface mcbsp

tcDspOutputLatch* MityDSP::tcDspDacBaseMcBsp::mpOutputLatch
protected

accessor to chip selects

int MityDSP::tcDspDacBaseMcBsp::mnCS
protected

ID of chip select on latch.

int MityDSP::tcDspDacBaseMcBsp::mnNumChannels
protected

number of DAC channels available

unsigned short* MityDSP::tcDspDacBaseMcBsp::mnCurrentVals
protected

current DAC values


  
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.