Added error codes

This commit is contained in:
dario 2024-05-01 13:23:44 +02:00
parent 7f5d918c96
commit 240787557d

View File

@ -9,6 +9,21 @@
namespace sta 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. * @brief Interface class for %I2C hardware.
* *