Struct xhci::registers::doorbell::Register [−][src]
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]
mmio_base: usize,
capability: &Capability<M2>,
mapper: M1
) -> Array<Self, M1> where
M1: Mapper,
M2: Mapper + Clone,
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]
fn clone(&self) -> Register
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Register
[src]
impl Debug for Register
[src]
Auto Trait Implementations
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>,