13 void (*deinit)(usbd_device* dev);
14 void (*wakeup)(usbd_device* dev);
15 void (*suspend)(usbd_device* dev);
17 struct usb_device_descriptor* dev_descr;
19 void* str_manuf_descr;
21 void* str_serial_descr;
34 FuriHalUsbStateEventReset,
35 FuriHalUsbStateEventWakeup,
36 FuriHalUsbStateEventSuspend,
37 FuriHalUsbStateEventDescriptorRequest,
38} FuriHalUsbStateEvent;
40typedef void (*FuriHalUsbStateCallback)(FuriHalUsbStateEvent state,
void* context);
44void furi_hal_usb_init(
void);
62void furi_hal_usb_lock(
void);
66void furi_hal_usb_unlock(
void);
72bool furi_hal_usb_is_locked(
void);
76void furi_hal_usb_disable(
void);
80void furi_hal_usb_enable(
void);
84void furi_hal_usb_set_state_callback(FuriHalUsbStateCallback cb,
void* ctx);
88void furi_hal_usb_reinit(
void);
Definition furi_hal_usb.h:11