CMSIS-Driver Validation  Version 2.0.0
Driver Validation
 All Files Functions Variables Typedefs Macros Groups Pages

Functions

void USART_GetCapabilities (void)
 Function: USART_GetCapabilities. More...
 
void USART_Initialization (void)
 Function: USART_Initialization. More...
 
void USART_CheckInvalidInit (void)
 Function: USART_CheckInvalidInit. More...
 
void USART_PowerControl (void)
 Function: USART_PowerControl. More...
 
void USART_Config_PolarityPhase (void)
 Function: USART_Config_PolarityPhase. More...
 
void USART_Config_DataBits (void)
 Function: USART_Config_DataBits. More...
 
void USART_Config_StopBits (void)
 Function: USART_Config_StopBits. More...
 
void USART_Config_Parity (void)
 Function: USART_Config_Parity. More...
 
void USART_Config_Baudrate (void)
 Function: USART_Config_Baudrate. More...
 
void USART_Loopback_CheckBaudrate (void)
 Function: USART_Loopback_CheckBaudrate. More...
 
void USART_Config_CommonParams (void)
 Function: USART_Config_CommonParams. More...
 
void USART_Send (void)
 Function: USART_Send. More...
 
void USART_AsynchronousReceive (void)
 Function: USART_AsynchronousReceive. More...
 
void USART_Loopback_Transfer (void)
 Function: USART_Loopback_Transfer. More...
 

Description

Function Documentation

void USART_GetCapabilities ( void  )

The test function USART_GetCapabilities verifies the function GetCapabilities.

void USART_Initialization ( void  )

The test function USART_Initialization verifies the USART functions with the sequence:

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

The test function USART_CheckInvalidInit verifies the driver behaviour when receiving an invalid initialization sequence:

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

The test function USART_PowerControl verifies the PowerControl function with the sequence:

  • Initialize with callback
  • Power on
  • Power low
  • Power off
  • Uninitialize
void USART_Config_PolarityPhase ( void  )

The test function USART_Config_PolarityPhase verifies the Control function with the sequence:

  • Initialize with callback
  • Power on
  • Set basic SPI bus configuration
  • Change polarity
  • Change phase
  • Change polarity and phase
  • Power off
  • Uninitialize
void USART_Config_DataBits ( void  )

The test function USART_Config_DataBits verifies the Control function with the sequence:

  • Initialize with callback
  • Power on
  • Data bits = 5
  • Data bits = 6
  • Data bits = 7
  • Data bits = 8
  • Data bits = 9
  • Power off
  • Uninitialize
void USART_Config_StopBits ( void  )

The test function USART_Config_StopBits verifies the Control function with the sequence:

  • Initialize with callback
  • Power on
  • Stop bits = 1
  • Stop bits = 2
  • Stop bits = 1.5
  • Stop bits = 0.5
  • Power off
  • Uninitialize
void USART_Config_Parity ( void  )

The test function USART_Config_Parity verifies the Control function with the sequence:

  • Initialize with callback
  • Power on
  • Sets parity bits: even parity
  • Sets parity bits: no parity
  • Sets parity bits: odd parity
  • Power off
  • Uninitialize
void USART_Config_Baudrate ( void  )

The test function USART_Config_Baudrate verifies the Control function and configures various baudrates with the sequence:

  • Initialize with callback
  • Power on
  • Change bus speed
  • Power off
  • Uninitialize
Note
This test needs to pass to be able to transfer data via the USART correctly. Usually, USART communication is set to a certain baudrate with a defined tolerance. If the driver is not able to set the baudrate correctly, data exchange will not be possible.
void USART_Loopback_CheckBaudrate ( void  )

The test function USART_Loopback_CheckBaudrate verifies the Control function, configures various baudrates, and measures the transfer time with this sequence:

  • Initialize with callback
  • Power on
  • Change baud rate with specific control parameter
  • Measure transfer time
  • Power off
  • Uninitialize
void USART_Config_CommonParams ( void  )

The test function USART_Config_CommonParams verifies the Control function with the sequence:

  • Initialize with callback
  • Power on
  • Configure USART bus
  • Set transmitter
  • Set receiver
  • Power off
  • Uninitialize
void USART_Send ( void  )

The test function USART_Send verifies the Send function with the sequence:

  • Initialize with callback
  • Power on
  • Send data using callback
  • Send data without callback
  • Power off
  • Uninitialize
void USART_AsynchronousReceive ( void  )

The test function USART_AsynchronousReceive verifies the Receive function with the sequence:

  • Initialize with callback
  • Power on
  • Send data using callback
  • Send data without callback
  • Power off
  • Uninitialize
void USART_Loopback_Transfer ( void  )

The test function USART_Loopback_Transfer verifies the Transfer function with the sequence:

  • Initialize with callback
  • Power on
  • Clear input buffer
  • Transfer data
  • Check received data against sent data
  • Power off
  • Uninitialize