31#define USB_LANG_CODE { 0x04, 0x09 }
36#define USB_MANUFACTURER_STRING "vllabs"
41#define USB_PRODUCT_STRING "\'whiskers\'"
70 char manu_string[32 + 1];
71 char prod_string[32 + 1];
72 char serial_string[32 + 1];
105void usb_setup_msc(
char vendor_string[8],
char product_string[16], _DISK_INFO *di);
Shared structs, error codes, and functions for all HAL files.
Struct holding callback functions for internal USB events.
Definition usb.h:88
void(* unmounted_cb)(void)
Definition usb.h:90
void(* unsuspend_cb)(void)
Definition usb.h:92
void(* mounted_cb)(void)
Definition usb.h:89
void(* suspend_cb)(bool)
Definition usb.h:91
USB Modifiers.
Definition usb.h:67
void usb_remote_wakeup_host()
If the host allows us, this function will wake it up.
void usb_initialize_defaults(w_usb_cbs *cbs)
Starts the internal USB stack with default values.
void usb_setup_msc(char vendor_string[8], char product_string[16], _DISK_INFO *di)
Sets up the MSC Class USB interface.
void usb_keyboard_send_report(const uint8_t rep[8])
Sends a standard HID keyboard report.
void usb_loop()
For TinyUSB based systems, this refreshes tud_task(). This must be called at least once every millise...
void usb_initialize_custom(w_usb_cbs *cbs, w_usb_mods *mods)
Starts the internal USB stack with custom descriptors.