|
#define LowspeedStatus |
( |
_port, |
|
|
_bready, |
|
|
_result |
|
) |
__lowspeedStatus(_port, _bready, _result) |
Get lowspeed status.
This method checks the status of the I2C communication on the specified port. If the last operation on this port was a successful LowspeedWrite call that requested response data from the device then bytesready will be set to the number of bytes in the internal read buffer.
- Parameters:
-
| _port | The port to which the I2C device is attached. See the NBC 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. |
| _bready | The number of bytes available to be read from the internal I2C buffer. The maximum number of bytes that can be read is 16. |
| _result | A status code indicating whether the write completed successfully or not. See TCommLSCheckStatus for possible Result values. If the return value is NO_ERR then the last operation did not cause any errors. Avoid calls to LowspeedRead or LowspeedWrite while LowspeedStatus returns STAT_COMM_PENDING. |
- See also:
- LowspeedRead, LowspeedWrite, and LowspeedCheckStatus
|