CMSIS-Driver Validation  Version 1.0
Driver Validation
 All Files Functions Variables Macros Groups Pages
SPI Validation

SPI test cases. More...

Functions

void SPI_GetCapabilities (void)
 Test case: SPI_GetCapabilities.
 
void SPI_Initialization (void)
 Test case: SPI_Initialization.
 
void SPI_CheckInvalidInit (void)
 Test case: SPI_CheckInvalidInit.
 
void SPI_PowerControl (void)
 Test case: SPI_PowerControl.
 
void SPI_Config_PolarityPhase (void)
 Test case: SPI_Config_PolarityPhase.
 
void SPI_Config_DataBits (void)
 Test case: SPI_Config_DataBits.
 
void SPI_Config_BitOrder (void)
 Test case: SPI_Config_BitOrder.
 
void SPI_Config_SSMode (void)
 Test case: SPI_Config_SSMode.
 
void SPI_Config_CommonParams (void)
 Test case: SPI_Config_CommonParams.
 
void SPI_Config_BusSpeed (void)
 Test case: SPI_Config_BusSpeed.
 
void SPI_Send (void)
 Test case: SPI_Send.
 
void SPI_Receive (void)
 Test case: SPI_Receive.
 
void SPI_Loopback_CheckBusSpeed (void)
 Test case: SPI_Loopback_CheckBusSpeed.
 
void SPI_Loopback_Transfer (void)
 Test case: SPI_Loopback_Transfer.
 

Description

The SPI validation test performs the following checks:

Loopback Communication Setup

To perform loopback communication tests, it is required to connect the SPI's MISO signal to the MOSI signal (refer to the schematics of your target hardware for detailed pinout information).

Function Documentation

void SPI_CheckInvalidInit ( void  )

The test case SPI_CheckInvalidInit verifies the driver behaviour when receiving an invalid initialization sequence:

  • Uninitialize
  • PowerControl with Power off
  • PowerControl with Power on
  • Control
void SPI_Config_BitOrder ( void  )

The test case SPI_Config_BitOrder verifies the Control function with the sequence:

  • Bit order LSB_MSB
  • Bit order MSB_LSB
void SPI_Config_BusSpeed ( void  )

The test case SPI_Config_BusSpeed verifies the Control function and tests bus speeds with the sequence:

  • Change bus speed with specific control parameter
  • Read bus speed
  • Change bus speed with general control parameter
  • Read bus speed
void SPI_Config_CommonParams ( void  )

The test case SPI_Config_CommonParams verifies the Control function with the sequence:

  • Configure SPI bus
void SPI_Config_DataBits ( void  )

The test case SPI_Config_DataBits verifies the Control function with the sequence:

  • Data bits = 8
  • Data bits = 16
void SPI_Config_PolarityPhase ( void  )

The test case SPI_Config_PolarityPhase verifies the Control function with the sequence:

  • Set basic SPI bus configuration
  • Change polarity
  • Change phase
  • Change polarity and phase
void SPI_Config_SSMode ( void  )

The test case SPI_Config_SSMode verifies the Control function with the sequence:

  • SS Mode MASTER_HW_OUTPUT
  • SS Mode MASTER_HW_INPUT
  • SS Mode MASTER_SW
void SPI_GetCapabilities ( void  )

The test case SPI_GetCapabilities verifies the function GetCapabilities.

void SPI_Initialization ( void  )

The test case SPI_Initialization verifies the SPI functions with the sequence:

  • Initialize without callback
  • Uninitialize
  • Initialize with callback
void SPI_Loopback_CheckBusSpeed ( void  )

The test case SPI_Loopback_CheckBusSpeed verifies the function Control with the sequence:

  • Change bus speed with specific control parameter
  • Read bus speed
void SPI_Loopback_Transfer ( void  )

The test case SPI_Loopback_Transfer verifies the function Transfer.

void SPI_PowerControl ( void  )

The test case SPI_PowerControl verifies the PowerControl function with the sequence:

  • Power on
  • Power low
  • Power off
  • Power on
void SPI_Receive ( void  )

The test case SPI_Receive verifies the function Receive with the sequence:

  • Receive using callback
  • Receive without callback
void SPI_Send ( void  )

The test case SPI_Send verifies the function Send with the sequence:

  • Send using callback
  • Send without callback