31 #ifndef PIOS_USBHOOK_H
32 #define PIOS_USBHOOK_H
55 void (*
init)(uintptr_t context);
void PIOS_USBHOOK_CtrlTx(const uint8_t *buf, uint16_t len)
void PIOS_USBHOOK_CtrlRx(uint8_t *buf, uint16_t len)
void PIOS_USBHOOK_Deactivate(void)
struct pios_usb_ifops __attribute__
void(* init)(uintptr_t context)
void(* deinit)(uintptr_t context)
bool(* pios_usbhook_epcb)(uintptr_t context, uint8_t epnum, uint16_t len)
void(* ctrl_data_out)(uintptr_t context, const struct usb_setup_request *req)
void PIOS_USBHOOK_EndpointRx(uint8_t epnum, uint8_t *buf, uint16_t len)
void PIOS_USBHOOK_RegisterEpInCallback(uint8_t epnum, uint16_t max_len, pios_usbhook_epcb cb, uintptr_t context)
void PIOS_USBHOOK_RegisterConfig(uint8_t config_id, const uint8_t *desc, uint16_t desc_size)
void PIOS_USBHOOK_RegisterString(enum usb_string_desc string_id, const uint8_t *desc, uint16_t desc_size)
const uint8_t * descriptor
void PIOS_USBHOOK_RegisterDevice(const uint8_t *desc, uint16_t desc_size)
void PIOS_USBHOOK_Activate(void)
void PIOS_USBHOOK_EndpointTx(uint8_t epnum, const uint8_t *buf, uint16_t len)
void PIOS_USBHOOK_DeRegisterEpInCallback(uint8_t epnum)
void PIOS_USBHOOK_RegisterEpOutCallback(uint8_t epnum, uint16_t max_len, pios_usbhook_epcb cb, uintptr_t context)
void PIOS_USBHOOK_DeRegisterEpOutCallback(uint8_t epnum)
void PIOS_USBHOOK_RegisterIfOps(uint8_t ifnum, struct pios_usb_ifops *ifops, uintptr_t context)
bool(* setup)(uintptr_t context, struct usb_setup_request *req)