Macros

Macros

#define SDSPI_STATUS_SUCCESS   (0)
 Successful status code returned by SDSPI_control(). More...
 
#define SDSPI_STATUS_ERROR   (-1)
 Generic error status code returned by SDSPI_control(). More...
 
#define SDSPI_STATUS_UNDEFINEDCMD   (-2)
 An error status code returned by SDSPI_control() for undefined command codes. More...
 

Detailed Description

SDSPI_STATUS_* macros are general status codes returned by SDSPI_control()

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

Macro Definition Documentation

§ SDSPI_STATUS_SUCCESS

#define SDSPI_STATUS_SUCCESS   (0)

Successful status code returned by SDSPI_control().

SDSPI_control() returns SDSPI_STATUS_SUCCESS if the control code was executed successfully.

§ SDSPI_STATUS_ERROR

#define SDSPI_STATUS_ERROR   (-1)

Generic error status code returned by SDSPI_control().

SDSPI_control() returns SDSPI_STATUS_ERROR if the control code was not executed successfully.

§ SDSPI_STATUS_UNDEFINEDCMD

#define SDSPI_STATUS_UNDEFINEDCMD   (-2)

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

SDSPI_control() returns SDSPI_STATUS_UNDEFINEDCMD if the control code is not recognized by the driver implementation.

Copyright 2017, Texas Instruments Incorporated