test_usb_common.h 460 B

12345678910111213141516
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2021 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 For the USB PHY into the connected or disconnected state
  10. *
  11. * @param connected For into connected state if true, disconnected if false
  12. * @param delay_ticks Delay in ticks before forcing state
  13. */
  14. void test_usb_force_conn_state(bool connected, TickType_t delay_ticks);