NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
long I2CCheckStatus ( const byte  port)

Check I2C status.

This method checks the status of the I2C communication on the specified port.

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.
A status code indicating whether the write completed successfully or not. See CommLSCheckStatusType for possible result values. If the return value is NO_ERR then the last operation did not cause any errors. Avoid calls to I2CRead or I2CWrite while this function returns STAT_COMM_PENDING.
See Also
I2CStatus, I2CRead, I2CWrite, LowspeedStatus, LowspeedRead, LowspeedWrite, and LowspeedCheckStatus