diff options
| author | rppicomidi <[email protected]> | 2022-08-25 15:08:00 -0700 |
|---|---|---|
| committer | atoktoto <[email protected]> | 2022-11-13 14:29:16 +0100 |
| commit | 70eefcb849542f386a1349da7a4944d2d02dcd40 (patch) | |
| tree | 7c317a2c78f79b98fb57deeb51b99f8bd14b4aea /src/host/usbh.h | |
| parent | 2ddd74fada9b2f272923fce9c3b1926a6e9f5c80 (diff) | |
Add hooks to allow cloning an attached USB device descriptor
Diffstat (limited to 'src/host/usbh.h')
| -rw-r--r-- | src/host/usbh.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h index 560a1ea23..7355c83ee 100644 --- a/src/host/usbh.h +++ b/src/host/usbh.h @@ -78,7 +78,11 @@ enum // APPLICATION CALLBACK //--------------------------------------------------------------------+ -//TU_ATTR_WEAK uint8_t tuh_attach_cb (tusb_desc_device_t const *desc_device); +// Give the application an opportunity to grab the device descriptor +TU_ATTR_WEAK void tuh_desc_device_cb(uint8_t daddr, const tusb_desc_device_t *desc_device); + +// Give the application an opportunity to grab the configuration descriptor +TU_ATTR_WEAK void tuh_desc_config_cb(uint8_t daddr, const tusb_desc_configuration_t *desc_config); // Invoked when device is mounted (configured) TU_ATTR_WEAK void tuh_mount_cb (uint8_t daddr); |
