Struct xhci::registers::operational::PortRegisterSet[][src]

#[repr(C)]pub struct PortRegisterSet {
    pub portsc: PortStatusAndControlRegister,
    pub portpmsc: PortPowerManagementStatusAndControlRegister,
    pub portli: PortLinkInfoRegister,
    pub porthlpmc: PortHardwareLpmControlRegister,
}

Port Register Set

Fields

portsc: PortStatusAndControlRegister

Port Status and Control Register

portpmsc: PortPowerManagementStatusAndControlRegister

Port PM Status and Control Register

portli: PortLinkInfoRegister

Port Link Info Register

porthlpmc: PortHardwareLpmControlRegister

Port Hardware LPM Control Register

Implementations

impl PortRegisterSet[src]

pub unsafe fn new<M1, M2>(
    mmio_base: usize,
    capability: &Capability<M2>,
    mapper: M1
) -> Array<Self, M1> where
    M1: Mapper,
    M2: Mapper + Clone
[src]

Creates a new accessor to the array of the Port Register Set.

Safety

Caller must ensure that only one accessor is created, otherwise it may cause undefined behavior such as data race.

Panics

This method panics if the base address of the Port Register Sets is not aligned correctly.

Trait Implementations

impl Clone for PortRegisterSet[src]

impl Copy for PortRegisterSet[src]

impl Debug for PortRegisterSet[src]

Auto Trait Implementations

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.