CMSIS-Driver Validation  Version 1.3.0
Driver Validation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
CAN Validation

CAN test cases. More...

Functions

void CAN_GetCapabilities (void)
 Test case: CAN_GetCapabilities. More...
 
void CAN_Initialization (void)
 Test case: CAN_Initialization. More...
 
void CAN_CheckInvalidInit (void)
 Test case: CAN_CheckInvalidInit. More...
 
void CAN_PowerControl (void)
 Test case: CAN_PowerControl. More...
 
void CAN_Loopback_CheckBitrate (void)
 Test case: CAN_Loopback_CheckBitrate. More...
 
void CAN_Loopback_CheckBitrateFD (void)
 Test case: CAN_Loopback_CheckBitrateFD. More...
 
void CAN_Loopback_Transfer (void)
 Test case: CAN_Loopback_Transfer. More...
 
void CAN_Loopback_TransferFD (void)
 Test case: CAN_Loopback_TransferFD. More...
 

Description

The CAN validation test checks the API interface compliance.

Function Documentation

void CAN_CheckInvalidInit ( void  )

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

  • Uninitialize
  • PowerControl with Power off
  • PowerControl with Power on
  • Set Mode
  • PowerControl with Power off
  • Uninitialize
void CAN_GetCapabilities ( void  )

The test case CAN_GetCapabilities verifies the function GetCapabilities.

void CAN_Initialization ( void  )

The test case CAN_Initialization verifies the CAN functions with the sequence:

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

The test case CAN_Loopback_CheckBitrate verifies different bitrates with the sequence:

  • Initialize
  • Power on
  • Change bitrate
  • Transfer and measure transfer time
  • Check received data against sent data
  • Power off
  • Uninitialize
void CAN_Loopback_CheckBitrateFD ( void  )

The test case CAN_Loopback_CheckBitrateFD verifies different bitrates with the sequence:

  • Initialize
  • Power on
  • Change bitrate
  • Transfer and measure transfer time
  • Check received data against sent data
  • Power off
  • Uninitialize
void CAN_Loopback_Transfer ( void  )

The test case CAN_Loopback_Transfer verifies the data transfers with the sequence:

  • Initialize
  • Power on
  • Set filter with standard ID
  • Transfer and check received data against sent data
  • Check filter with standard ID and remove it
  • Set filter with extended ID
  • Transfer and check received data against sent data
  • Check filter with extended ID and remove it
  • Power off
  • Uninitialize
void CAN_Loopback_TransferFD ( void  )

The test case CAN_Loopback_TransferFD verifies the data transfers with the sequence:

  • Initialize
  • Power on
  • Set filter with standard ID
  • Transfer and check received data against sent data
  • Check filter with standard ID and remove it
  • Set filter with extended ID
  • Transfer and check received data against sent data
  • Check filter with extended ID and remove it
  • Power off
  • Uninitialize
void CAN_PowerControl ( void  )

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

  • Initialize
  • Power on
  • Power low
  • Power off
  • Uninitialize