Module xhci::extended_capabilities [−][src]
The xHCI Extended Capabilities
The mutable reference of this struct implements IntoIterator
and it iterates over the xHCI Extended Capabilities.
Examples
let mut r = unsafe { xhci::Registers::new(MMIO_BASE, mapper.clone()) }; let mut l = unsafe { extended_capabilities::List::new(MMIO_BASE, r.capability.hccparams1.read(), mapper) }; match l { Some(mut l) => { for e in &mut l { match e { Ok(e) => match e { ExtendedCapability::UsbLegacySupportCapability(u) => {} _ => {} }, Err(e) => { // Currently this crate does not support this Extended Capability. } } } } None => { // The xHC does not support the xHCI Extended Capability. } }
Re-exports
pub use usb_legacy_support_capability::UsbLegacySupportCapability; |
Modules
usb_legacy_support_capability | USB Legacy Support Capability |
Structs
IterMut | An iterator over the xHCI Extended Capability. |
List | A struct to access xHCI Extended Capabilities. |
NotSupportedId | A struct representing that the Extended Capability with the ID is not supported by this crate. |
Enums
ExtendedCapability | The xHCI Extended Capability. |