These SPI macros are reservations for SPI.h
§ SPI_CMD_RESERVED
#define SPI_CMD_RESERVED (32) |
Common SPI_control() command code reservation offset. SPI driver implementations should offset command codes with SPI_CMD_RESERVED growing positively
Example implementation specific command codes:
#define SPIXYZ_CMD_COMMAND0 SPI_CMD_RESERVED + 0
#define SPIXYZ_CMD_COMMAND1 SPI_CMD_RESERVED + 1
§ SPI_STATUS_RESERVED
#define SPI_STATUS_RESERVED (-32) |
Common SPI_control status code reservation offset. SPI driver implementations should offset status codes with SPI_STATUS_RESERVED growing negatively.
Example implementation specific status codes:
#define SPIXYZ_STATUS_ERROR0 SPI_STATUS_RESERVED - 0
#define SPIXYZ_STATUS_ERROR1 SPI_STATUS_RESERVED - 1
#define SPIXYZ_STATUS_ERROR2 SPI_STATUS_RESERVED - 2