2004-10-14 23:10:23 +02:00
|
|
|
#ifndef DEVICE_SMBUS_DEF_H
|
|
|
|
#define DEVICE_SMBUS_DEF_H
|
|
|
|
|
2017-08-01 17:09:35 +02:00
|
|
|
#include <types.h>
|
|
|
|
|
2004-10-14 23:10:23 +02:00
|
|
|
/* Error results are negative success is >= 0 */
|
2017-08-01 17:09:35 +02:00
|
|
|
#define SMBUS_ERROR CB_ERR
|
|
|
|
#define SMBUS_WAIT_UNTIL_READY_TIMEOUT CB_I2C_BUSY
|
|
|
|
#define SMBUS_WAIT_UNTIL_DONE_TIMEOUT CB_I2C_TIMEOUT
|
|
|
|
#define SMBUS_WAIT_UNTIL_ACTIVE_TIMEOUT CB_I2C_NO_DEVICE
|
2004-10-14 23:10:23 +02:00
|
|
|
|
|
|
|
#endif /* DEVICE_SMBUS_DEF_H */
|