Go to the source code of this file.
|
enum | err_t {
ERROR_NONE = 0x0,
ERROR_OPERATIONTIMEDOUT = 0x1,
ERROR_ADDRESSOUTOFRANGE = 0x2,
ERROR_BUFFEROVERFLOW,
ERROR_INVALIDPARAMETER = 0x4,
ERROR_DEVICENOTINITIALISED = 0x5,
ERROR_UNEXPECTEDVALUE,
ERROR_I2C_DEVICENOTFOUND,
ERROR_I2C_NOACK = 0x102,
ERROR_I2C_TIMEOUT,
ERROR_I2C_TRANSACTION = 0x104
} |
|
◆ err_t
GENERIC ERRORS 0x0000 .. 0x00FF
These error codes can be used anywhere in the system
Enumerator |
---|
ERROR_NONE | Indicates no error occurred
|
ERROR_OPERATIONTIMEDOUT | Operation timed out before completion
|
ERROR_ADDRESSOUTOFRANGE | The supplied address is out of range
|
ERROR_BUFFEROVERFLOW | The proposed action will cause a buffer overflow
|
ERROR_INVALIDPARAMETER | An invalid parameter value was provided
|
ERROR_DEVICENOTINITIALISED | Attempting to execute a function on an uninitialised peripheral
|
ERROR_UNEXPECTEDVALUE | An unexpected value was found inside a function
|
ERROR_I2C_DEVICENOTFOUND | Device didn't ACK after an I2C transfer
|
ERROR_I2C_NOACK | No ACK signal received during an I2C transfer
|
ERROR_I2C_TIMEOUT | Device timed out waiting for response (missing pullups?)
|
ERROR_I2C_TRANSACTION | Error during I2C read/write operation
|