The tcDspAdc56x5 class may be used to provide access to the MityDSP AD56x5 interface core. The AD56x5 interface core marries the MityDSP to an Analog Devices 56x5 series high speed 12 bit digital to analog converter.
This is a simple example of tcDspAd56x5 creation and usage:
{ tcDspAd56x5* mpDAC; // Create the I2C core used for the interface tcDspI2c *mp56x5I2c = new tcDspI2c((void*)I2C_BASE); // Create the Ad56x5 core. mpDAC = new tcDspAd56x5(mp56x5I2c, 0x13); // Set internal voltage reference on mpDAC->set_vref_internal(true); // Write a value to channel 0 of the DAC mpDAC->update(0, 0xFFF, tcDspAd56x5::eeLoadSingle); ... }