usbh_hub.h 563 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2022, sakumisu
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef USBH_HUB_H
  7. #define USBH_HUB_H
  8. #include "usb_hub.h"
  9. struct usbh_hub;
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. int usbh_hub_set_feature(struct usbh_hub *hub, uint8_t port, uint8_t feature);
  14. int usbh_hub_clear_feature(struct usbh_hub *hub, uint8_t port, uint8_t feature);
  15. void usbh_hub_thread_wakeup(struct usbh_hub *hub);
  16. int usbh_hub_initialize(struct usbh_bus *bus);
  17. int usbh_hub_deinitialize(struct usbh_bus *bus);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* USBH_HUB_H */