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.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.