Struct xhci::registers::capability::Capability[][src]

pub struct Capability<M> where
    M: Mapper + Clone
{ pub caplength: Single<CapabilityRegistersLength, M>, pub hcsparams1: Single<StructuralParameters1, M>, pub hcsparams2: Single<StructuralParameters2, M>, pub hccparams1: Single<CapabilityParameters1, M>, pub dboff: Single<DoorbellOffset, M>, pub rtsoff: Single<RuntimeRegisterSpaceOffset, M>, }

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]

pub unsafe fn new(mmio_base: usize, mapper: &M) -> Self where
    M: Mapper
[src]

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.

Panics

This method panics if mmio_base is not aligned correctly.

Auto Trait Implementations

impl<M> Send for Capability<M> where
    M: Send
[src]

impl<M> Sync for Capability<M> where
    M: Sync
[src]

impl<M> Unpin for Capability<M> where
    M: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.