pub struct MmioPort { /* private fields */ }Implementations§
Source§impl MmioPort
impl MmioPort
Sourcepub const unsafe fn new(base: usize) -> Self
pub const unsafe fn new(base: usize) -> Self
Creates a new UART interface on the given memory mapped address.
This function is unsafe because the caller must ensure that the given base address really points to a serial port device.
Sourcepub fn init(&mut self)
pub fn init(&mut self)
Initializes the memory-mapped UART.
The default configuration of 38400/8-N-1 is used.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MmioPort
impl RefUnwindSafe for MmioPort
impl Send for MmioPort
impl Sync for MmioPort
impl Unpin for MmioPort
impl UnwindSafe for MmioPort
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