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 9 struct usbh_xbox { 10 struct usbh_hubport *hport; 11 struct usb_endpoint_descriptor *intin; /* INTR IN endpoint */ 12 struct usb_endpoint_descriptor *intout; /* INTR OUT endpoint */ 13 struct usbh_urb intin_urb; /* INTR IN urb */ 14 struct usbh_urb intout_urb; /* INTR OUT urb */ 15 16 uint8_t intf; /* interface number */ 17 uint8_t minor; 18 }; 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 void usbh_xbox_run(struct usbh_xbox *xbox_class); 25 void usbh_xbox_stop(struct usbh_xbox *xbox_class); 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 #endif /* USBH_XBOX_H */ 32