test_usb_common.h 704 B

1234567891011121314151617181920212223242526
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <stdbool.h>
  7. #include "freertos/FreeRTOS.h"
  8. /**
  9. * @brief Initialize the internal USB PHY and USB Controller for USB Host testing
  10. */
  11. void test_usb_init_phy(void);
  12. /**
  13. * @brief Deinitalize the internal USB PHY and USB Controller after USB Host testing
  14. */
  15. void test_usb_deinit_phy(void);
  16. /**
  17. * @brief For the USB PHY into the connected or disconnected state
  18. *
  19. * @param connected For into connected state if true, disconnected if false
  20. * @param delay_ticks Delay in ticks before forcing state
  21. */
  22. void test_usb_set_phy_state(bool connected, TickType_t delay_ticks);