From 6603c2b445fbcf90b45c07f302cb993b4908a601 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 28 Jul 2010 17:22:31 +0000 Subject: [PATCH] Add data nack error. git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4088 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/i2c.h | 1 + 1 file changed, 1 insertion(+) diff --git a/bertos/drv/i2c.h b/bertos/drv/i2c.h index 8d44daac..bfbf8ba0 100644 --- a/bertos/drv/i2c.h +++ b/bertos/drv/i2c.h @@ -137,6 +137,7 @@ bool i2c_recv(void *_buf, size_t count); * I2C error flags */ #define I2C_OK 0 ///< I2C no errors flag +#define I2C_DATA_NACK BV(4) ///< I2C generic error #define I2C_ERR BV(3) ///< I2C generic error #define I2C_ARB_LOST BV(2) ///< I2C arbitration lost error #define I2C_START_TIMEOUT BV(0) ///< I2C timeout error on start -- 2.25.1