Macros
Collaboration diagram for Status Codes:

Macros

#define I2CSLAVE_STATUS_SUCCESS   (0)
 Successful status code returned by I2CSlave_control(). More...
 
#define I2CSLAVE_STATUS_ERROR   (-1)
 Generic error status code returned by I2CSlave_control(). More...
 
#define I2CSLAVE_STATUS_UNDEFINEDCMD   (-2)
 An error status code returned by I2CSlave_control() for undefined command codes. More...
 

Detailed Description

I2CSLAVE_STATUS_SUCCESS_* macros are general status codes returned by I2CSlave_control()

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

Macro Definition Documentation

§ I2CSLAVE_STATUS_SUCCESS

#define I2CSLAVE_STATUS_SUCCESS   (0)

Successful status code returned by I2CSlave_control().

I2CSlave_control() returns I2CSLAVE_STATUS_SUCCESS if the control code was executed successfully.

§ I2CSLAVE_STATUS_ERROR

#define I2CSLAVE_STATUS_ERROR   (-1)

Generic error status code returned by I2CSlave_control().

I2CSlave_control() returns I2CSLAVE_STATUS_ERROR if the control code was not executed successfully.

§ I2CSLAVE_STATUS_UNDEFINEDCMD

#define I2CSLAVE_STATUS_UNDEFINEDCMD   (-2)

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

I2CSlave_control() returns I2CSLAVE_STATUS_UNDEFINEDCMD if the control code is not recognized by the driver implementation.

© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale