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

Get lowspeed bytes ready.

This method checks the number of bytes that are ready to be read on the specified port. If the last operation on this port was a successful LowspeedWrite call that requested response data from the device then the return value will be the number of bytes in the internal read buffer.

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.
Returns
The number of bytes available to be read from the internal I2C buffer. The maximum number of bytes that can be read is 16.
See Also
I2CCheckStatus, I2CRead, I2CWrite, I2CStatus, I2CBytesReady, LowspeedRead, LowspeedWrite, and LowspeedStatus
Examples:
ex_LowspeedBytesReady.nxc.