Attach a callback to be invoked when a setup packet is received. See usb_serial.rs for examples.
(callback: ConfigFn)
| 67 | /// Attach a callback to be invoked when a setup packet |
| 68 | /// is received. See usb_serial.rs for examples. |
| 69 | pub fn usb_attach_setup_callback(callback: ConfigFn) { |
| 70 | unsafe { |
| 71 | CONFIGURATION_CALLBACKS.push(callback); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | /// Attach a callback to be invoked every time an |
| 76 | /// interrupt is handled. |