MCPcopy Create free account
hub / github.com/SharpCoder/teensycore / usb_attach_setup_callback

Function usb_attach_setup_callback

src/phys/usb.rs:69–73  ·  view source on GitHub ↗

Attach a callback to be invoked when a setup packet is received. See usb_serial.rs for examples.

(callback: ConfigFn)

Source from the content-addressed store, hash-verified

67/// Attach a callback to be invoked when a setup packet
68/// is received. See usb_serial.rs for examples.
69pub 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.

Callers 1

usb_serial_initFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected