CMSIS-Driver  
Peripheral Interface for Middleware and Application Code
 
Loading...
Searching...
No Matches
SPI Status Error Codes

Negative values indicate errors (SPI has specific codes in addition to common Status Error Codes). More...

Macros

#define ARM_SPI_ERROR_MODE   (ARM_DRIVER_ERROR_SPECIFIC - 1)
 Specified Mode not supported.
 
#define ARM_SPI_ERROR_FRAME_FORMAT   (ARM_DRIVER_ERROR_SPECIFIC - 2)
 Specified Frame Format not supported.
 
#define ARM_SPI_ERROR_DATA_BITS   (ARM_DRIVER_ERROR_SPECIFIC - 3)
 Specified number of Data bits not supported.
 
#define ARM_SPI_ERROR_BIT_ORDER   (ARM_DRIVER_ERROR_SPECIFIC - 4)
 Specified Bit order not supported.
 
#define ARM_SPI_ERROR_SS_MODE   (ARM_DRIVER_ERROR_SPECIFIC - 5)
 Specified Slave Select Mode not supported.
 

Description

Negative values indicate errors (SPI has specific codes in addition to common Status Error Codes).

The SPI driver has additional status error codes that are listed below. Note that the SPI driver also returns the common Status Error Codes.

Macro Definition Documentation

◆ ARM_SPI_ERROR_MODE

#define ARM_SPI_ERROR_MODE   (ARM_DRIVER_ERROR_SPECIFIC - 1)

Specified Mode not supported.

The mode requested with the function ARM_SPI_Control is not supported by this driver.

◆ ARM_SPI_ERROR_FRAME_FORMAT

#define ARM_SPI_ERROR_FRAME_FORMAT   (ARM_DRIVER_ERROR_SPECIFIC - 2)

Specified Frame Format not supported.

The frame format requested with the function ARM_SPI_Control is not supported by this driver.

◆ ARM_SPI_ERROR_DATA_BITS

#define ARM_SPI_ERROR_DATA_BITS   (ARM_DRIVER_ERROR_SPECIFIC - 3)

Specified number of Data bits not supported.

The number of data bits requested with the function ARM_SPI_Control is not supported by this driver.

◆ ARM_SPI_ERROR_BIT_ORDER

#define ARM_SPI_ERROR_BIT_ORDER   (ARM_DRIVER_ERROR_SPECIFIC - 4)

Specified Bit order not supported.

The bit order requested with the function ARM_SPI_Control is not supported by this driver.

◆ ARM_SPI_ERROR_SS_MODE

#define ARM_SPI_ERROR_SS_MODE   (ARM_DRIVER_ERROR_SPECIFIC - 5)

Specified Slave Select Mode not supported.

The slave select mode requested with the function ARM_SPI_Control is not supported by this driver.