Skip to main content

Module control

Module control 

Source
Expand description

Control transfer state machine.

ControlPipe manages EP0 state without being generic over the bus type. It takes &B only for the actual hardware I/O operations (read / write), keeping the state machine logic bus-agnostic.

ControlIn and ControlOut are short-lived handles passed to UsbClass callbacks so classes can accept or reject a control transfer ergonomically.

Re-exports§

pub use request::Feature;
pub use request::Recipient;
pub use request::Request;
pub use request::RequestType;
pub use request::StandardRequest;

Modules§

request
USB SETUP packet parser.

Structs§

ControlIn
Handle for a pending control IN transfer.
ControlOut
Handle for a pending control OUT transfer.
ControlPipe
EP0 control transfer state machine + staging buffer.

Constants§

CONTROL_BUF_SIZE
Maximum size of the EP0 control transfer staging buffer.