2021-10-27 03:50:21 -04:00
|
|
|
/*
|
2021-11-17 13:07:53 -05:00
|
|
|
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
2021-10-27 03:50:21 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
|
|
|
2021-11-17 13:07:53 -05:00
|
|
|
/**
|
|
|
|
* @brief Initialize the internal USB PHY and USB Controller for USB Host testing
|
|
|
|
*/
|
|
|
|
void test_usb_init_phy(void);
|
|
|
|
|
|
|
|
/**
|
2022-10-06 17:16:54 -04:00
|
|
|
* @brief Deinitialize the internal USB PHY and USB Controller after USB Host testing
|
2021-11-17 13:07:53 -05:00
|
|
|
*/
|
|
|
|
void test_usb_deinit_phy(void);
|
|
|
|
|
2021-10-27 03:50:21 -04: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 13:07:53 -05:00
|
|
|
void test_usb_set_phy_state(bool connected, TickType_t delay_ticks);
|