CMSIS-Driver  Version 2.04
Peripheral Interface for Middleware and Application Code
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 comon Status Error Codes.

Macro Definition Documentation

#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.

#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.

#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.

#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.

#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.