#[repr(transparent)]pub struct Register(_);
Expand description
The element of the Doorbell Array.
Implementations§
source§impl Register
impl Register
sourcepub unsafe fn new<M1, M2>(
mmio_base: usize,
capability: &Capability<M2>,
mapper: M1
) -> ReadWrite<Self, M1>where
M1: Mapper,
M2: Mapper + Clone,
pub unsafe fn new<M1, M2>( mmio_base: usize, capability: &Capability<M2>, mapper: M1 ) -> ReadWrite<Self, M1>where M1: Mapper, M2: Mapper + Clone,
sourcepub fn doorbell_target(self) -> u8
pub fn doorbell_target(self) -> u8
Returns the value of the Doorbell Target field.
sourcepub fn set_doorbell_target(&mut self, value: u8) -> &mut Self
pub fn set_doorbell_target(&mut self, value: u8) -> &mut Self
Sets the value of the Doorbell Target field.
sourcepub fn doorbell_stream_id(self) -> u16
pub fn doorbell_stream_id(self) -> u16
Returns the value of the Doorbell Stream ID field.
sourcepub fn set_doorbell_stream_id(&mut self, value: u16) -> &mut Self
pub fn set_doorbell_stream_id(&mut self, value: u16) -> &mut Self
Sets the value of the Doorbell Stream ID field.
Trait Implementations§
impl Copy for Register
Auto Trait Implementations§
impl RefUnwindSafe for Register
impl Send for Register
impl Sync for Register
impl Unpin for Register
impl UnwindSafe for Register
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more