pub struct Device {
pub port: u8,
pub hub_address: u8,
pub depth: u8,
pub endpoint: ControlEndpoint,
pub descriptor: DeviceDescriptor,
}bcm2712 only.Expand description
A downstream device found and addressed by enumerate, handed to
its per-device callback. Everything needed to talk to the device
further (read its configuration, configure it, poll its endpoints) is
here, plus where on the bus it was found.
Fields§
§port: u8The hub downstream port (1-based) the device is on.
hub_address: u8Address of the hub whose Self::port this is — the root hub
for a device plugged straight into the board, or a downstream
hub’s own address for one found behind it. With Self::port
it names the device’s position on the bus, which survives a
reboot in a way the assigned address doesn’t.
depth: u8How many hubs below the root hub the device sits: 0 on one of
the root hub’s own ports, 1 behind a hub plugged into one of
those, and so on — up to four, the deepest USB allows.
endpoint: ControlEndpointThe device’s addressed endpoint 0 — address, speed, endpoint-0 max packet size, and split target all filled in.
descriptor: DeviceDescriptorThe device’s parsed device descriptor.