usbh_xbox.h 698 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2024, Till Harbaum
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef USBH_XBOX_H
  7. #define USBH_XBOX_H
  8. struct usbh_xbox {
  9. struct usbh_hubport *hport;
  10. struct usb_endpoint_descriptor *intin; /* INTR IN endpoint */
  11. struct usb_endpoint_descriptor *intout; /* INTR OUT endpoint */
  12. struct usbh_urb intin_urb; /* INTR IN urb */
  13. struct usbh_urb intout_urb; /* INTR OUT urb */
  14. uint8_t intf; /* interface number */
  15. uint8_t minor;
  16. };
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. void usbh_xbox_run(struct usbh_xbox *xbox_class);
  21. void usbh_xbox_stop(struct usbh_xbox *xbox_class);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* USBH_XBOX_H */