The tcDspOutputLatch class provides an abstract digital latch interface for I/O controller classes (e.g., tcDspDac7616) that require access to FPGA specific registers. This class allows such interfaces to be abstracted from the controller implementation.
The code snippet below illustrates a typical use for the tcDspOutputLatch abstract interface. The MityDSP application here contains two I/O devices, an tcDspDac7616 4 channel Digital to Analog converter and a tcDspTlv254x 8 channel Analog to Digital converter. Both devices interface to separate McBSP interfaces, and have control lines (1 chip select each, and an addition LDAC line in the case of the tcDspDac7616 device) that are routed to the MityDSP FPGA and controlled via a simple register interface.
Here, the user creates an FPGA class (tcFPGA) which manages the application specific FPGA interfaces - including the chip select control lines. This class derives from the tcDspOutputLatch and provides appropriate interfaces to the CS lines such that (as shown in the main routine) the A/D and D/A converter objects have the necessary control...