[−][src]Struct xhci::registers::capability::Capability
Host Controller Capability Registers
Fields
caplength: Single<CapabilityRegistersLength, M>
Capability Registers Length
hcsparams1: Single<StructuralParameters1, M>
Structural Parameters 1
hcsparams2: Single<StructuralParameters2, M>
Structural Parameters 2
hccparams1: Single<CapabilityParameters1, M>
Capability Parameters 1
dboff: Single<DoorbellOffset, M>
Doorbell Offset
rtsoff: Single<RuntimeRegisterSpaceOffset, M>
Runtime Register Space Offset
Implementations
impl<M> Capability<M> where
M: Mapper + Clone,
[src]
M: Mapper + Clone,
pub unsafe fn new(mmio_base: usize, mapper: &M) -> Result<Self, Error> where
M: Mapper,
[src]
M: Mapper,
Creates a new accessor to the Host Controller Capability Registers.
Safety
The caller must ensure that the Host Controller Capability Registers are accessed only through this struct.
Errors
This method may return an accessor::Error::NotAligned
error if mmio_base
is not aligned
properly.
Auto Trait Implementations
impl<M> Send for Capability<M> where
M: Send,
[src]
M: Send,
impl<M> Sync for Capability<M> where
M: Sync,
[src]
M: Sync,
impl<M> Unpin for Capability<M> where
M: Unpin,
[src]
M: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,