error.h File Reference

This files contains the macros for commonly used error code in StarterWare. These error codes are not specific to any module. More...

Macros

Invalid definitions

Definitions of different invalid identifiers.

#define INVALID_ID   (UINT32_MAX)
 Invalid ID.
 
#define INVALID_INST_NUM   (UINT32_MAX)
 Invalid instance number.
 
#define INVALID_INFO   (UINT32_MAX)
 Invalid information.
 
Status codes

Defines codes for different types of success and failures

#define S_PASS   (0)
 Successful completion of the functionality.
 
#define E_FAIL   (-1)
 Generic failure code.
 
#define E_INVALID_PARAM   (-2)
 Invalid parameter.
 
#define E_INVALID_OPERATION   (-3)
 Invalid operation.
 
#define E_INVALID_INDEX   (-4)
 Invalid index.
 
#define E_INTR_NOT_SUPP   (-5)
 Interrupt number not supported.
 
#define E_INST_NOT_SUPP   (-6)
 Instance number not supported.
 
#define E_INVALID_ADDR   (-7)
 Invalid address.
 
#define E_INVALID_PROFILE   (-8)
 Invalid profile.
 
#define E_INVALID_CHIP_SEL   (-9)
 Invalid Chip Select.
 
#define E_NOT_INITIALIZED   (-10)
 Initialization not done.
 
#define E_MODE_NOT_SUPP   (-11)
 Mode Not Supported.
 
#define E_TIMEOUT   (-12)
 Time Out condition.
 
#define E_I2C_NAK_ERR   (-13)
 No Acknowledgement from I2C device.
 
#define E_INVALID_MODULE_ID   (-14)
 Invalid Module Id.
 
#define E_BUF_OVERRUN   (-15)
 Buffer Over Run.
 

Detailed Description

This files contains the macros for commonly used error code in StarterWare. These error codes are not specific to any module.


Copyright 2016, Texas Instruments Incorporated