Introduction
The tcDspDacTlv5610 class is used to set up and send data to a TI TLV5610 8-channel D-to-A converter. The converter is accessed via a McBSP interface.
- See also:
- MityDSP::tcDspDacTlv5610 Class Reference
-
MityDSP::tcDspDacBaseMcBsp McBSP DAC Base Class Reference
Example
This is a simple example of tcDspDacTlv5610 creation and usage:
{
class tcLatch : public tcDspOutputLatch
{
...
public:
typedef enum
{
...
eeDAC_CS,
...
} teOutputs;
int SetOuput(unsigned int ID, unsigned int Value);
...
}
int main (int argc, char *argv[])
{
tcLatch Latch;
tcDspMcbsp MCBSP(0x018C0000,
tcDspDacTlv5610 DAC(&MCBSP, &Latch, tcLatch::eeDAC_CS);
...
DAC.update(tcDspDacTlv5610::eeDAC_A, 2048);
}
}