2021-10-27 07:50:21 +00:00
|
|
|
/*
|
2021-11-17 18:07:53 +00:00
|
|
|
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
2021-10-27 07:50:21 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
|
2021-11-17 18:07:53 +00:00
|
|
|
/**
|
|
|
|
* @brief Initialize the internal USB PHY and USB Controller for USB Host testing
|
|
|
|
*/
|
|
|
|
void test_usb_init_phy(void);
|
|
|
|
|
|
|
|
/**
|
2022-12-13 13:21:22 +00:00
|
|
|
* @brief Deinitialize the internal USB PHY and USB Controller after USB Host testing
|
2021-11-17 18:07:53 +00:00
|
|
|
*/
|
|
|
|
void test_usb_deinit_phy(void);
|
|
|
|
|
2021-10-27 07:50:21 +00:00
|
|
|
/**
|
|
|
|
* @brief For the USB PHY into the connected or disconnected state
|
|
|
|
*
|
|
|
|
* @param connected For into connected state if true, disconnected if false
|
|
|
|
* @param delay_ticks Delay in ticks before forcing state
|
|
|
|
*/
|
2021-11-17 18:07:53 +00:00
|
|
|
void test_usb_set_phy_state(bool connected, TickType_t delay_ticks);
|