TI-RTOS Drivers  tidrivers_cc13xx_cc26xx_2_20_00_08
Macros
Collaboration diagram for Status Codes:

Macros

#define I2C_STATUS_SUCCESS   0
 Successful status code returned by I2C_control(). More...
 
#define I2C_STATUS_ERROR   -1
 Generic error status code returned by I2C_control(). More...
 
#define I2C_STATUS_UNDEFINEDCMD   -2
 An error status code returned by I2C_control() for undefined command codes. More...
 

Detailed Description

I2C_STATUS_* macros are general status codes returned by I2C_control()

I2CCC26XX_STATUS_* macros are command codes only defined in the I2CCC26XX.h driver implementation and need to:

Macro Definition Documentation

#define I2C_STATUS_SUCCESS   0

Successful status code returned by I2C_control().

I2C_control() returns I2C_STATUS_SUCCESS if the control code was executed successfully.

#define I2C_STATUS_ERROR   -1

Generic error status code returned by I2C_control().

I2C_control() returns I2C_STATUS_ERROR if the control code was not executed successfully.

#define I2C_STATUS_UNDEFINEDCMD   -2

An error status code returned by I2C_control() for undefined command codes.

I2C_control() returns I2C_STATUS_UNDEFINEDCMD if the control code is not recognized by the driver implementation.

Copyright 2016, Texas Instruments Incorporated