These SPI macros are reservations for SPI.h
#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:
1 #define SPIXYZ_CMD_COMMAND0 SPI_CMD_RESERVED + 0
2 #define SPIXYZ_CMD_COMMAND1 SPI_CMD_RESERVED + 1
#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:
1 #define SPIXYZ_STATUS_ERROR0 SPI_STATUS_RESERVED - 0
2 #define SPIXYZ_STATUS_ERROR1 SPI_STATUS_RESERVED - 1
3 #define SPIXYZ_STATUS_ERROR2 SPI_STATUS_RESERVED - 2