Base class for digital-to-analog converter devices using the MityDSP McBSP interface. More...
#include <core/DspDacBaseMcBsp.h>
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 | |
tcDspMcbsp * | mpMcBsp |
the serial interface mcbsp | |
tcDspOutputLatch * | mpOutputLatch |
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 |
Base class for digital-to-analog converter devices using the MityDSP McBSP interface.
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.
[in] | apMcBsp | Serial McBSP object that the DAC is hooked to |
[in] | apLatch | Object defining a latch interface for the chip select |
[in] | anCSID | ID of the DAC chip select line on the latch interface |
[in] | anNumChannels | Number of channels supported by the derived DAC |
tcDspDacBaseMcBsp::~tcDspDacBaseMcBsp | ( | ) | [virtual] |
virtual void MityDSP::tcDspDacBaseMcBsp::update | ( | int | anChannel, | |
unsigned short | anData | |||
) | [pure virtual] |
Implemented in MityDSP::tcDspDac7616, and MityDSP::tcDspDacTlv5610.
tcDspMcbsp* MityDSP::tcDspDacBaseMcBsp::mpMcBsp [protected] |
the serial interface mcbsp
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