mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-28 21:17:33 +00:00
Added error codes
This commit is contained in:
@@ -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.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user