TI-RTOS Drivers  tidrivers_full_2_20_00_08
Modules | Macros
I2C_control command and status codes
Collaboration diagram for I2C_control command and status codes:

Modules

 Status Codes
 
 Command Codes
 

Macros

#define I2C_CMD_RESERVED   32
 
#define I2C_STATUS_RESERVED   -32
 

Detailed Description

These I2C macros are reservations for I2C.h

Macro Definition Documentation

#define I2C_CMD_RESERVED   32

Common I2C_control command code reservation offset. I2C driver implementations should offset command codes with I2C_CMD_RESERVED growing positively

Example implementation specific command codes:

1 #define I2CXYZ_CMD_COMMAND0 I2C_CMD_RESERVED + 0
2 #define I2CXYZ_CMD_COMMAND1 I2C_CMD_RESERVED + 1
#define I2C_STATUS_RESERVED   -32

Common I2C_control status code reservation offset. I2C driver implementations should offset status codes with I2C_STATUS_RESERVED growing negatively.

Example implementation specific status codes:

1 #define I2CXYZ_STATUS_ERROR0 I2C_STATUS_RESERVED - 0
2 #define I2CXYZ_STATUS_ERROR1 I2C_STATUS_RESERVED - 1
3 #define I2CXYZ_STATUS_ERROR2 I2C_STATUS_RESERVED - 2
Copyright 2016, Texas Instruments Incorporated