CMSIS-Driver Validation  
Driver Validation
Data Exchange

Functions

void SPI_Mode_Master_SS_Unused (void)
 Function: Function SPI_Mode_Master_SS_Unused. More...
 
void SPI_Mode_Master_SS_Sw_Ctrl (void)
 Function: Function SPI_Mode_Master_SS_Sw_Ctrl. More...
 
void SPI_Mode_Master_SS_Hw_Ctrl_Out (void)
 Function: Function SPI_Mode_Master_SS_Hw_Ctrl_Out. More...
 
void SPI_Mode_Master_SS_Hw_Mon_In (void)
 Function: Function SPI_Mode_Master_SS_Hw_Mon_In. More...
 
void SPI_Mode_Slave_SS_Hw_Mon (void)
 Function: Function SPI_Mode_Slave_SS_Hw_Mon. More...
 
void SPI_Mode_Slave_SS_Sw_Ctrl (void)
 Function: Function SPI_Mode_Slave_SS_Sw_Ctrl. More...
 
void SPI_Format_Clock_Pol0_Pha0 (void)
 Function: Function SPI_Format_Clock_Pol0_Pha0. More...
 
void SPI_Format_Clock_Pol0_Pha1 (void)
 Function: Function SPI_Format_Clock_Pol0_Pha1. More...
 
void SPI_Format_Clock_Pol1_Pha0 (void)
 Function: Function SPI_Format_Clock_Pol1_Pha0. More...
 
void SPI_Format_Clock_Pol1_Pha1 (void)
 Function: Function SPI_Format_Clock_Pol1_Pha1. More...
 
void SPI_Format_Frame_TI (void)
 Function: Function SPI_Format_Frame_TI. More...
 
void SPI_Format_Clock_Microwire (void)
 Function: Function SPI_Format_Clock_Microwire. More...
 
void SPI_Data_Bits_1 (void)
 Function: Function SPI_Data_Bits_1. More...
 
void SPI_Data_Bits_2 (void)
 Function: Function SPI_Data_Bits_2. More...
 
void SPI_Data_Bits_3 (void)
 Function: Function SPI_Data_Bits_3. More...
 
void SPI_Data_Bits_4 (void)
 Function: Function SPI_Data_Bits_4. More...
 
void SPI_Data_Bits_5 (void)
 Function: Function SPI_Data_Bits_5. More...
 
void SPI_Data_Bits_6 (void)
 Function: Function SPI_Data_Bits_6. More...
 
void SPI_Data_Bits_7 (void)
 Function: Function SPI_Data_Bits_7. More...
 
void SPI_Data_Bits_8 (void)
 Function: Function SPI_Data_Bits_8. More...
 
void SPI_Data_Bits_9 (void)
 Function: Function SPI_Data_Bits_9. More...
 
void SPI_Data_Bits_10 (void)
 Function: Function SPI_Data_Bits_10. More...
 
void SPI_Data_Bits_11 (void)
 Function: Function SPI_Data_Bits_11. More...
 
void SPI_Data_Bits_12 (void)
 Function: Function SPI_Data_Bits_12. More...
 
void SPI_Data_Bits_13 (void)
 Function: Function SPI_Data_Bits_13. More...
 
void SPI_Data_Bits_14 (void)
 Function: Function SPI_Data_Bits_14. More...
 
void SPI_Data_Bits_15 (void)
 Function: Function SPI_Data_Bits_15. More...
 
void SPI_Data_Bits_16 (void)
 Function: Function SPI_Data_Bits_16. More...
 
void SPI_Data_Bits_17 (void)
 Function: Function SPI_Data_Bits_17. More...
 
void SPI_Data_Bits_18 (void)
 Function: Function SPI_Data_Bits_18. More...
 
void SPI_Data_Bits_19 (void)
 Function: Function SPI_Data_Bits_19. More...
 
void SPI_Data_Bits_20 (void)
 Function: Function SPI_Data_Bits_20. More...
 
void SPI_Data_Bits_21 (void)
 Function: Function SPI_Data_Bits_21. More...
 
void SPI_Data_Bits_22 (void)
 Function: Function SPI_Data_Bits_22. More...
 
void SPI_Data_Bits_23 (void)
 Function: Function SPI_Data_Bits_23. More...
 
void SPI_Data_Bits_24 (void)
 Function: Function SPI_Data_Bits_24. More...
 
void SPI_Data_Bits_25 (void)
 Function: Function SPI_Data_Bits_25. More...
 
void SPI_Data_Bits_26 (void)
 Function: Function SPI_Data_Bits_26. More...
 
void SPI_Data_Bits_27 (void)
 Function: Function SPI_Data_Bits_27. More...
 
void SPI_Data_Bits_28 (void)
 Function: Function SPI_Data_Bits_28. More...
 
void SPI_Data_Bits_29 (void)
 Function: Function SPI_Data_Bits_29. More...
 
void SPI_Data_Bits_30 (void)
 Function: Function SPI_Data_Bits_30. More...
 
void SPI_Data_Bits_31 (void)
 Function: Function SPI_Data_Bits_31. More...
 
void SPI_Data_Bits_32 (void)
 Function: Function SPI_Data_Bits_32. More...
 
void SPI_Bit_Order_MSB_LSB (void)
 Function: Function SPI_Bit_Order_MSB_LSB. More...
 
void SPI_Bit_Order_LSB_MSB (void)
 Function: Function SPI_Bit_Order_LSB_MSB. More...
 
void SPI_Bus_Speed_Min (void)
 Function: Function SPI_Bus_Speed_Min. More...
 
void SPI_Bus_Speed_Max (void)
 Function: Function SPI_Bus_Speed_Max. More...
 
void SPI_Number_Of_Items (void)
 Function: Function SPI_Number_Of_Items. More...
 
void SPI_GetDataCount (void)
 Function: Function SPI_GetDataCount. More...
 
void SPI_Abort (void)
 Function: Function SPI_Abort. More...
 

Description

These tests verify API and operation of the SPI data exchange functions.

The data exchange tests verify the following driver functions (SPI Driver function documentation):

All of these tests execute a data exchange and check the result of this data exchange.

Data exchange test procedure when Test Mode SPI Server is selected:

Data exchange Abort test procedure when Test Mode SPI Server is selected:

Data exchange test procedure when Test Mode Loopback is selected:

Note
Limitations of Data Exchange tests if Test Mode Loopback is selected:
  • only Master mode with Slave Select not used can be tested
  • Receive function cannot be tested
  • format tests are not supported
  • only 8, 16, 24 and 32 data bit tests are supported
  • bit order tests are not supported

Function Documentation

◆ SPI_Mode_Master_SS_Unused()

void SPI_Mode_Master_SS_Unused ( void  )

The function SPI_Mode_Master_SS_Unused verifies data exchange:

  • in Master Mode with Slave Select line not used
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback Receive function is not checked

◆ SPI_Mode_Master_SS_Sw_Ctrl()

void SPI_Mode_Master_SS_Sw_Ctrl ( void  )

The function SPI_Mode_Master_SS_Sw_Ctrl verifies data exchange:

  • in Master Mode with Slave Select line Software controlled
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test is not executed

◆ SPI_Mode_Master_SS_Hw_Ctrl_Out()

void SPI_Mode_Master_SS_Hw_Ctrl_Out ( void  )

The function SPI_Mode_Master_SS_Hw_Ctrl_Out verifies data exchange:

  • in Master Mode with Slave Select line Hardware controlled Output
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Mode_Master_SS_Hw_Mon_In()

void SPI_Mode_Master_SS_Hw_Mon_In ( void  )

The function SPI_Mode_Master_SS_Hw_Mon_In verifies data exchange:

  • in Master Mode with Slave Select line Hardware monitored Input
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Mode_Slave_SS_Hw_Mon()

void SPI_Mode_Slave_SS_Hw_Mon ( void  )

The function SPI_Mode_Slave_SS_Hw_Mon verifies data exchange:

  • in Slave Mode with Slave Select line Hardware monitored
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Mode_Slave_SS_Sw_Ctrl()

void SPI_Mode_Slave_SS_Sw_Ctrl ( void  )

The function SPI_Mode_Slave_SS_Sw_Ctrl verifies data exchange:

  • in Slave Mode with Slave Select line Software controlled
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Format_Clock_Pol0_Pha0()

void SPI_Format_Clock_Pol0_Pha0 ( void  )

The function SPI_Format_Clock_Pol0_Pha0 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with clock format: polarity 0 / phase 0
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Format_Clock_Pol0_Pha1()

void SPI_Format_Clock_Pol0_Pha1 ( void  )

The function SPI_Format_Clock_Pol0_Pha1 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with clock format: polarity 0 / phase 1
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Format_Clock_Pol1_Pha0()

void SPI_Format_Clock_Pol1_Pha0 ( void  )

The function SPI_Format_Clock_Pol1_Pha0 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with clock format: polarity 1 / phase 0
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Format_Clock_Pol1_Pha1()

void SPI_Format_Clock_Pol1_Pha1 ( void  )

The function SPI_Format_Clock_Pol1_Pha1 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with clock format: polarity 1 / phase 1
  • with default data bits
  • with default bit order
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Format_Frame_TI()

void SPI_Format_Frame_TI ( void  )

The function SPI_Format_Frame_TI verifies data exchange:

  • in Master Mode with Slave Select line Hardware controlled Output
  • with Texas Instruments frame format
  • with default data bits
  • with bit order from MSB to LSB
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Format_Clock_Microwire()

void SPI_Format_Clock_Microwire ( void  )

The function SPI_Format_Clock_Microwire verifies data exchange:

  • in Master Mode with Slave Select line Hardware controlled Output
  • with National Semiconductor Microwire frame format
  • with default data bits
  • with bit order from MSB to LSB
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test not executed

◆ SPI_Data_Bits_1()

void SPI_Data_Bits_1 ( void  )

The function SPI_Data_Bits_1 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 1 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_2()

void SPI_Data_Bits_2 ( void  )

The function SPI_Data_Bits_2 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 2 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_3()

void SPI_Data_Bits_3 ( void  )

The function SPI_Data_Bits_3 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 3 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_4()

void SPI_Data_Bits_4 ( void  )

The function SPI_Data_Bits_4 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 4 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_5()

void SPI_Data_Bits_5 ( void  )

The function SPI_Data_Bits_5 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 5 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_6()

void SPI_Data_Bits_6 ( void  )

The function SPI_Data_Bits_6 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 6 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_7()

void SPI_Data_Bits_7 ( void  )

The function SPI_Data_Bits_7 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 7 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_8()

void SPI_Data_Bits_8 ( void  )

The function SPI_Data_Bits_8 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 8 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_9()

void SPI_Data_Bits_9 ( void  )

The function SPI_Data_Bits_9 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 9 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_10()

void SPI_Data_Bits_10 ( void  )

The function SPI_Data_Bits_10 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 10 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_11()

void SPI_Data_Bits_11 ( void  )

The function SPI_Data_Bits_11 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 11 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_12()

void SPI_Data_Bits_12 ( void  )

The function SPI_Data_Bits_12 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 12 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_13()

void SPI_Data_Bits_13 ( void  )

The function SPI_Data_Bits_13 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 13 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_14()

void SPI_Data_Bits_14 ( void  )

The function SPI_Data_Bits_14 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 14 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_15()

void SPI_Data_Bits_15 ( void  )

The function SPI_Data_Bits_15 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 15 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_16()

void SPI_Data_Bits_16 ( void  )

The function SPI_Data_Bits_16 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 16 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_17()

void SPI_Data_Bits_17 ( void  )

The function SPI_Data_Bits_17 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 17 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_18()

void SPI_Data_Bits_18 ( void  )

The function SPI_Data_Bits_18 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 18 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_19()

void SPI_Data_Bits_19 ( void  )

The function SPI_Data_Bits_19 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 19 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_20()

void SPI_Data_Bits_20 ( void  )

The function SPI_Data_Bits_20 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 20 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_21()

void SPI_Data_Bits_21 ( void  )

The function SPI_Data_Bits_21 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 21 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_22()

void SPI_Data_Bits_22 ( void  )

The function SPI_Data_Bits_22 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 22 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_23()

void SPI_Data_Bits_23 ( void  )

The function SPI_Data_Bits_23 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 23 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_24()

void SPI_Data_Bits_24 ( void  )

The function SPI_Data_Bits_24 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 24 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_25()

void SPI_Data_Bits_25 ( void  )

The function SPI_Data_Bits_25 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 25 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_26()

void SPI_Data_Bits_26 ( void  )

The function SPI_Data_Bits_26 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 26 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_27()

void SPI_Data_Bits_27 ( void  )

The function SPI_Data_Bits_27 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 27 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_28()

void SPI_Data_Bits_28 ( void  )

The function SPI_Data_Bits_28 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 28 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_29()

void SPI_Data_Bits_29 ( void  )

The function SPI_Data_Bits_29 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 29 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_30()

void SPI_Data_Bits_30 ( void  )

The function SPI_Data_Bits_30 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 30 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_31()

void SPI_Data_Bits_31 ( void  )

The function SPI_Data_Bits_31 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 31 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Data_Bits_32()

void SPI_Data_Bits_32 ( void  )

The function SPI_Data_Bits_32 verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with 32 data bits per frame
  • with default bit order
  • at default bus speed
  • for default number of data items

◆ SPI_Bit_Order_MSB_LSB()

void SPI_Bit_Order_MSB_LSB ( void  )

The function SPI_Bit_Order_MSB_LSB verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with default data bits
  • with bit order from MSB to LSB
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test is not executed

◆ SPI_Bit_Order_LSB_MSB()

void SPI_Bit_Order_LSB_MSB ( void  )

The function SPI_Bit_Order_LSB_MSB verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with default data bits
  • with bit order from LSB to MSB
  • at default bus speed
  • for default number of data items
Note
In Test Mode Loopback this test is not executed

◆ SPI_Bus_Speed_Min()

void SPI_Bus_Speed_Min ( void  )

The function SPI_Bus_Speed_Min verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at minimum bus speed (define SPI_CFG_MIN_BUS_SPEED in DV_SPI_Config.h)
  • for default number of data items

This test function checks the following requirements:

  • measured bus speed is not 25% lower, or higher than requested
  • bus speed value returned by the driver is not negative
  • bus speed value returned by the driver is not higher then requested
  • bus speed value returned by the driver is not lower then 75% of requested

◆ SPI_Bus_Speed_Max()

void SPI_Bus_Speed_Max ( void  )

The function SPI_Bus_Speed_Max verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at maximum bus speed (define SPI_CFG_MAX_BUS_SPEED in DV_SPI_Config.h)
  • for default number of data items

This test function checks the following requirements:

  • measured bus speed is not 25% lower, or higher than requested
  • bus speed value returned by the driver is not negative
  • bus speed value returned by the driver is not higher then requested
  • bus speed value returned by the driver is not lower then 75% of requested

◆ SPI_Number_Of_Items()

void SPI_Number_Of_Items ( void  )

The function SPI_Number_Of_Items verifies data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed
  • for different number of items (defines SPI_CFG_NUM1 .. SPI_CFG_NUM5 in DV_SPI_Config.h)

◆ SPI_GetDataCount()

void SPI_GetDataCount ( void  )

The function SPI_GetDataCount verifies GetDataCount function (count changing) during data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed

◆ SPI_Abort()

void SPI_Abort ( void  )

The function SPI_Abort verifies Abort function abort of data exchange:

  • in Master Mode with default Slave Select mode
  • with default clock / frame format
  • with default data bits
  • with default bit order
  • at default bus speed