diff --git a/include/sta/bus/i2c/i2c.hpp b/include/sta/bus/i2c/i2c.hpp index e9896fc..63d1442 100644 --- a/include/sta/bus/i2c/i2c.hpp +++ b/include/sta/bus/i2c/i2c.hpp @@ -9,6 +9,21 @@ namespace sta { + /** + * @brief Possible errors that can occur during transmission- + * + */ + enum I2CError + { + SUCCESS, + ACK_FAILURE, + NACK, + DATA_TOO_LONG, + TIMEOUT, + BUS_ERROR, + ARBITRATION_LOSS, + }; + /** * @brief Interface class for %I2C hardware. *