Struct teensy4_bsp::usb::PollStatus [−][src]
pub struct PollStatus { /* fields omitted */ }
This is supported on crate feature
usb-logging
only.Expand description
The status of a poll
call
use teensy4_bsp as bsp;
let status = unsafe { bsp::usb::poll() };
if status.cdc_rx_complete() {
// Received USB serial data from host
}
Implementations
Indicates if a CDC RX transfer was completed (true) or not completed (false) in this poll
In this context, “rx” means “USB host to USB device.”
Check this flag to understand if your Reader
might have data.
Indicates if a CDC TX transfer was completed (true) or not completed (false) in this poll
In this context, “tx” means “USB device to USB host.”
Check this flag to understand if your Writer
or
USB logger has scheduled a transfer.