TI-RTOS Drivers  tidrivers_full_2_20_00_08
Modules | Macros
SDSPI_control command and status codes
Collaboration diagram for SDSPI_control command and status codes:

Modules

 Status Codes
 
 Command Codes
 

Macros

#define SDSPI_CMD_RESERVED   32
 
#define SDSPI_STATUS_RESERVED   -32
 

Detailed Description

These SDSPI macros are reservations for SDSPI.h

Macro Definition Documentation

#define SDSPI_CMD_RESERVED   32

Common SDSPI_control command code reservation offset. SDSPI driver implementations should offset command codes with SDSPI_CMD_RESERVED growing positively

Example implementation specific command codes:

1 #define SDSPIXYZ_CMD_COMMAND0 SDSPI_CMD_RESERVED + 0
2 #define SDSPIXYZ_CMD_COMMAND1 SDSPI_CMD_RESERVED + 1
#define SDSPI_STATUS_RESERVED   -32

Common SDSPI_control status code reservation offset. SDSPI driver implementations should offset status codes with SDSPI_STATUS_RESERVED growing negatively.

Example implementation specific status codes:

1 #define SDSPIXYZ_STATUS_ERROR0 SDSPI_STATUS_RESERVED - 0
2 #define SDSPIXYZ_STATUS_ERROR1 SDSPI_STATUS_RESERVED - 1
3 #define SDSPIXYZ_STATUS_ERROR2 SDSPI_STATUS_RESERVED - 2
Copyright 2016, Texas Instruments Incorporated