Skip to content

Failure Reason Codes

Reason codes that can be raised by the hardware abstraction libraries to the main application.

External EEPROM

Defined in externalEEPROM.h

EnumerationCodeReason
SUCCESS_NO_ERROR0Request was successful, no error was returned
DATA_TRANSMIT_BUFFER_ERROR1Data too long to fit in transmit buffer
ADDRESS_OFFLINE2Received NACK on transmit of address
TRANSMIT_NOT_ACKNOLWEDGED3Received NACK on transmit of data
OTHER_ERROR4Other error, raised by the I2C bus
TIMEOUT5Timeout
INVALID_HARDWARE_CONFIGURATION10Invalid hardware configuration in hardware.h
UNKNOWN_ERROR11Unknown/undocumented failure

Inputs

Defined in inputs.h

EnumerationCodeReason
SUCCESS_NO_ERROR0Request was successful, no error was returned
DATA_TRANSMIT_BUFFER_ERROR1Data too long to fit in transmit buffer
ADDRESS_OFFLINE2Received NACK on transmit of address
TRANSMIT_NOT_ACKNOLWEDGED3Received NACK on transmit of data
OTHER_ERROR4Other error, raised by the I2C bus
TIMEOUT5Timeout
INVALID_HARDWARE_CONFIGURATION10Invalid hardware configuration in hardware.h
UNKNOWN_ERROR11Unknown/undocumented failure

Outputs

Defined in outputs.h

EnumerationCodeReason
SUCCESS_NO_ERROR0Request was successful, no error was returned
DATA_TRANSMIT_BUFFER_ERROR1Data too long to fit in transmit buffer
ADDRESS_OFFLINE2Received NACK on transmit of address
TRANSMIT_NOT_ACKNOLWEDGED3Received NACK on transmit of data
OTHER_ERROR4Other error, raised by the I2C bus
TIMEOUT5Timeout
INVALID_HARDWARE_CONFIGURATION10Invalid hardware configuration in hardware.h
GENERIC_ERROR255Inherited from PCA9685 library, generic error
CHANNEL_OUT_OF_RANGE254Inherited from PCA9685 library, channel out of range
INVALID_MODE_REGISTER253Inherited from PCA9685 library, invalid mode register chosen
GENERIC_I2C_ERROR252Inherited from PCA9685 library, i2c communication error
UNKNOWN_ERROR11Unknown/undocumented failure

OLED

Defined in oled.h

EnumerationCodeReason
ADDRESS_OFFLINE2Device was not found on the bus
UNABLE_TO_START12The underlying hardware library returned a fault when attempting to begin communications

Temperature Sensor

Defined in temperature.h

EnumerationCodeReason
SUCCESS_NO_ERROR0Request was successful, no error was returned
DATA_TRANSMIT_BUFFER_ERROR1Data too long to fit in transmit buffer
ADDRESS_OFFLINE2Received NACK on transmit of address
TRANSMIT_NOT_ACKNOLWEDGED3Received NACK on transmit of data
OTHER_ERROR4Other error, raised by the I2C bus
TIMEOUT5Timeout
INVALID_HARDWARE_CONFIGURATION10Invalid hardware configuration in hardware.h
UNKNOWN_ERROR11Unknown/undocumented failure