Class used to provide interfacing to a TI TLV5610 8-channel digital- to-analog converter via the MityDSP McBSP. More...
#include <core/DspDacTlv5610.h>
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. | |
Static Public Attributes | |
static const int | gnNumDacChannels = 8 |
Class used to provide interfacing to a TI TLV5610 8-channel digital- to-analog converter via the MityDSP McBSP.
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.
[in] | apMcbsp | Serial McBsp Object that the DAC is hooked to |
[in] | apLatch | Object defining a latch interface for the required chip select and LDAC strobes. |
[in] | anCS | ID of the DAC chip select line on the latch interface |
tcDspDacTlv5610::~tcDspDacTlv5610 | ( | ) |
Default destructor.
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.
[in] | anChannel | DAC channel to write. |
[in] | anData | The value to set the DAC channel to. |
Implements MityDSP::tcDspDacBaseMcBsp.
const int MityDSP::tcDspDacTlv5610::gnNumDacChannels = 8 [static] |