pub struct Registers { /* private fields */ }Expand description
The register window the kernel granted this driver. Copy it freely: it is a view of the one window, and every copy reaches the same registers.
Implementations§
Source§impl Registers
impl Registers
Sourcepub fn read16(&self, off: usize) -> u16
pub fn read16(&self, off: usize) -> u16
Read the 16-bit register at off, which must be 2-byte aligned.
Sourcepub fn read32(&self, off: usize) -> u32
pub fn read32(&self, off: usize) -> u32
Read the 32-bit register at off, which must be 4-byte aligned.
Sourcepub fn read64(&self, off: usize) -> u64
pub fn read64(&self, off: usize) -> u64
Read the 64-bit register at off, which must be 8-byte aligned.
Sourcepub fn write16(&self, off: usize, val: u16)
pub fn write16(&self, off: usize, val: u16)
Write the 16-bit register at off, which must be 2-byte aligned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registers
impl RefUnwindSafe for Registers
impl !Send for Registers
impl !Sync for Registers
impl Unpin for Registers
impl UnsafeUnpin for Registers
impl UnwindSafe for Registers
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