The tcDspI2c2 class is used to provide a consistent method to access devices via an instance of the MityDSP I2C (version 2) bus. Although tcDspI2c2 may be used directly by applications, it is usually used by higher-level classes to provide access to a specific device.
An instance of the tcDspI2c2 class is created by specifying the firmware base address of the core and the interrupt level used. This core supports specifying a level of gnAutoLevel, which automatically installs a vectored interrupt.
This is a simple example of tcDspI2cs creation and usage: