Type Definition flipperzero_sys::usbd_evt_callback

source ·
pub type usbd_evt_callback = Option<unsafe extern "C" fn(dev: *mut usbd_device, event: u8, ep: u8)>;
Expand description

Generic USB device event callback for events and endpoints processing

Arguments

  • dev - [Direction: In] pointer to USB device
  • event - [USB_EVENTS] “USB event”
  • ep - active endpoint number

Notes

  • endpoints with same indexes i.e. 0x01 and 0x81 shares same callback.