pub unsafe extern "C" fn MSS_USBH_test_mode(test_case: u8)Expand description
The MSS_USBH_test_mode() function can be used to initiate one of the compliance test modes in the MSS USB. This function is useful only for compliance test procedures. The MSS USB goes into the specified test mode once this function is executed. A hard reset is required to resume normal operations.
@param test_case The test_case parameter indicates the compliance test that need to be executed.The compliance tests could be one of the following: Test-J (USB_TEST_MODE_SELECTOR_TEST_J), Test-K (USB_TEST_MODE_SELECTOR_TEST_K), SE0-NAK (USB_TEST_MODE_SELECTOR_TEST_SE0NAK), Test-Packet (USB_TEST_MODE_SELECTOR_TEST_PACKET)
@return This function does not return any value.
Example: @code case ‘1’: MSS_USBH_test_mode(USB_TEST_MODE_SELECTOR_TEST_PACKET); MSS_UART_polled_tx_string(&g_mss_uart1, (uint8_t *)“\n\n\r Test-Packet started…”); break;
case ‘2’: MSS_USBH_test_mode(USB_TEST_MODE_SELECTOR_TEST_J); MSS_UART_polled_tx_string(&g_mss_uart1, (uint8_t *)“\n\n\r Test-J started…”); break;
case ‘3’: MSS_USBH_test_mode(USB_TEST_MODE_SELECTOR_TEST_K); MSS_UART_polled_tx_string(&g_mss_uart1, (uint8_t *)“\n\n\r Test-K started…”); break;
case ‘4’: MSS_USBH_test_mode(USB_TEST_MODE_SELECTOR_TEST_SE0NAK); MSS_UART_polled_tx_string(&g_mss_uart1, (uint8_t *)“\n\n\r Test-SE0-NAK started…”); break;
case ‘5’: MSS_USBH_test_mode(USB_TEST_MODE_SELECTOR_TEST_FORCE_ENA); MSS_UART_polled_tx_string(&g_mss_uart1, (uint8_t *)“\n\n\r Test-Force-Host started…”); break;
default: invalid_selection_menu(); break; @endcode