Function teensy4_bsp::usb::split[][src]

pub fn split(inst: Instance) -> Result<(Poller, Reader, Writer), Error>
This is supported on crate feature usb-logging only.
Expand description

Splits the USB stack into reading and writing halves, and returns both halves

The inst argument must be the imxrt_ral’s USB1 instance. An incorrect instance results in a Error::WrongInstance error.

See the module-level documentation for an example.