Showing changes from revision #1 to #2:
Added | Removed | Changed
int HAL_IICMonitorTransfer(int bus)
Entry | |
---|---|
bus | Bus number to operate on |
Exit | |
---|---|
- | Return code |
This is an internal call for OS use only and should not be used by user software.
Will be called on every interrupt, and should return the status of the transfer currently in progress. If no transfer is in progress, the call should return COMPLETED.
If the transfer is still in progress, INPROGRESS is returned.
If the slave failed to acknowledge (either the address or any later transmitted byte), NOACK is returned.
If we have been addressed as a slave, the call returns SLAVE. More details to be confirmed.
BUSY is not a valid response.
This will only be called in response to an IIC interrupt, with interrupts disabled. The interrupt shall be cleared by this call.
Unknown return codes will be ignored.