diff options
Diffstat (limited to 'src/i2ccmds.h')
-rw-r--r-- | src/i2ccmds.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i2ccmds.h b/src/i2ccmds.h index 477cee02..ed110bd3 100644 --- a/src/i2ccmds.h +++ b/src/i2ccmds.h @@ -4,6 +4,15 @@ #include <inttypes.h> #include "board/gpio.h" // i2c_config +// I2C ERROR Codes +enum { + I2C_BUS_SUCCESS, + I2C_BUS_NACK, + I2C_BUS_TIMEOUT, + I2C_BUS_START_NACK, + I2C_BUS_START_READ_NACK, +}; + struct i2cdev_s { union { struct i2c_config i2c_hw; |