Struct xhci::registers::doorbell::Register[][src]

#[repr(transparent)]pub struct Register(_);

The element of the Doorbell Array.

Implementations

impl Register[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 Doorbell Array.

Safety

Caller must ensure that the 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 Doorbell Array is not aligned correctly.

#[must_use]pub fn doorbell_target(self) -> u8[src]

Get a doorbell target.

pub fn set_doorbell_target(&mut self, target: u8)[src]

Set a doorbell target.

#[must_use]pub fn doorbell_stream_id(self) -> u16[src]

Get a Doorbell Stream ID.

pub fn set_doorbell_stream_id(&mut self, id: u16)[src]

Set a Doorbell Stream ID.

Trait Implementations

impl Clone for Register[src]

impl Copy for Register[src]

impl Debug for Register[src]

Auto Trait Implementations

impl Send for Register

impl Sync for Register

impl Unpin for Register

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.