The tcDspDac8534 class is used to provide access to a TI DAC8534 digital-to-analog converter via the MityDSP generic SPI interface. An instance of the tcDspSpi class, and the address of the device on the bus are provided in the constructor.
Up to 4 devices may be placed on the same SPI. Therefore, serializing access to each device, and management of the SPI FIFO, must be provided at a higher (application) level.
The TI DAC8534 supports 4 output channels. These outputs are written individually. By default, the data written is loaded immediately. However options exist to suppress loading the data to the DAC at the time it is written. Similarly, a command exists to write data to the specified channel, and then load all DAC channels simultaneously.
This is a simple example of tcDspDac8534 creation and usage: