lib/iic/iic_error.h¶
I2C/IIC error codes used by the CFBD I2C abstraction. More...
Detailed Description¶
I2C/IIC error codes used by the CFBD I2C abstraction.
Small set of error code macros used across the I2C driver infrastructure. Error codes mirror common POSIX/Linux errno-style values to ease mapping to platform-level errors.
Source code¶
#pragma once
#define I2C_OK 0
#define I2C_ERR_TIMEOUT -110 /* -ETIMEDOUT */
#define I2C_ERR_NACK -121 /* -EPROTO (nack) */
#define I2C_ERR_BUSY -16 /* -EBUSY */
#define I2C_ERR_IO -5 /* -EIO */
#define I2C_ERR_INVAL -22 /* -EINVAL */
Updated on 2026-02-03 at 13:21:55 +0000