NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
string I2CVersion ( byte  port,
byte  i2caddr 
)
inline

Read I2C device version.

Read standard I2C device version. The I2C device uses the specified address.

Parameters
portThe port to which the I2C device is attached. See the Input port constants group. You may use a constant or a variable. Constants should be used where possible to avoid blocking access to I2C devices on other ports by code running on other threads.
i2caddrThe I2C device address.
Returns
A string containing the device version.
Examples:
ex_i2cdeviceid.nxc, ex_i2cvendorid.nxc, and ex_i2cversion.nxc.