Mbed OS Reference
|
Macros | |
#define | I2C_EVENT_ERROR (1 << 1) |
Indicates that an unspecified error has occurred in the transfer. More... | |
#define | I2C_EVENT_ERROR_NO_SLAVE (1 << 2) |
Indicates that the slave did not respond to the address byte of the transfer. More... | |
#define | I2C_EVENT_TRANSFER_COMPLETE (1 << 3) |
Indicates that the transfer completed successfully. More... | |
#define | I2C_EVENT_TRANSFER_EARLY_NACK (1 << 4) |
Indicates that a NACK was received after the address byte, but before the requested number of bytes could be transferred. More... | |
#define | I2C_EVENT_ALL (I2C_EVENT_ERROR | I2C_EVENT_TRANSFER_COMPLETE | I2C_EVENT_ERROR_NO_SLAVE | I2C_EVENT_TRANSFER_EARLY_NACK) |
Use this macro to request all possible I2C events. More... | |
#define I2C_EVENT_ERROR (1 << 1) |
#define I2C_EVENT_ERROR_NO_SLAVE (1 << 2) |
#define I2C_EVENT_TRANSFER_COMPLETE (1 << 3) |
#define I2C_EVENT_TRANSFER_EARLY_NACK (1 << 4) |
Indicates that a NACK was received after the address byte, but before the requested number of bytes could be transferred.
Note: Not every manufacturer HAL is able to make a distinction between this flag and I2C_EVENT_ERROR_NO_SLAVE. On a NACK, you might conceivably get one or both of these flags.
#define I2C_EVENT_ALL (I2C_EVENT_ERROR | I2C_EVENT_TRANSFER_COMPLETE | I2C_EVENT_ERROR_NO_SLAVE | I2C_EVENT_TRANSFER_EARLY_NACK) |