CMSIS-Driver Validation  Version 1.2.0
Driver Validation
 All Files Functions Variables Typedefs Macros Groups Pages
USB Device Validation

USB Device test cases. More...

Content

 USB Compliance Tests
 

Functions

void USBD_GetCapabilities (void)
 Test case: USBD_GetCapabilities. More...
 
void USBD_Initialization (void)
 Test case: USBD_Initialization. More...
 
void USBD_CheckInvalidInit (void)
 Test case: USBD_CheckInvalidInit. More...
 
void USBD_PowerControl (void)
 Test case: USBD_PowerControl. More...
 

Description

The USB Device validation test checks the API interface compliance only. The section USB Compliance Tests explains how to run the USB compliance tests. These tests check USB devices for conformance to the USB Device Framework which is required in order to gain USB certification.

Function Documentation

void USBD_CheckInvalidInit ( void  )

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

  • Uninitialize
  • PowerControl with Power off
  • PowerControl with Power on
  • PowerControl with Power off
  • Uninitialize
void USBD_GetCapabilities ( void  )

The test case USBD_GetCapabilities verifies the function GetCapabilities.

void USBD_Initialization ( void  )

The test case USBD_Initialization verifies the USBD functions with the sequence:

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

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

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