Modules | Macros
I2CSlave_control command and status codes
Collaboration diagram for I2CSlave_control command and status codes:

Modules

 Status Codes
 
 Command Codes
 

Macros

#define I2CSLAVE_CMD_RESERVED   (32)
 
#define I2CSLAVE_STATUS_RESERVED   (-32)
 

Detailed Description

These I2CSlave macros are reservations for I2CSlave.h

Macro Definition Documentation

§ I2CSLAVE_CMD_RESERVED

#define I2CSLAVE_CMD_RESERVED   (32)

Common I2CSlave_control command code reservation offset. I2CSlave driver implementations should offset command codes with I2CSLAVE_CMD_RESERVED growing positively

Example implementation specific command codes:

#define I2CSLAVEXYZ_COMMAND0 I2CSLAVE_CMD_RESERVED + 0
#define I2CSLAVEXYZ_COMMAND1 I2CSLAVE_CMD_RESERVED + 1

§ I2CSLAVE_STATUS_RESERVED

#define I2CSLAVE_STATUS_RESERVED   (-32)

Common I2CSlave_control status code reservation offset. I2CSlave driver implementations should offset status codes with I2CSLAVE_STATUS_RESERVED growing negatively.

Example implementation specific status codes:

#define I2CSLAVEXYZ_STATUS_ERROR0 I2CSLAVE_STATUS_RESERVED - 0
#define I2CSLAVEXYZ_STATUS_ERROR1 I2CSLAVE_STATUS_RESERVED - 1
#define I2CSLAVEXYZ_STATUS_ERROR2 I2CSLAVE_STATUS_RESERVED - 2
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale