Struct uart_16550::MmioSerialPort
source · pub struct MmioSerialPort { /* private fields */ }
Expand description
A memory-mapped UART.
Implementations§
source§impl MmioSerialPort
impl MmioSerialPort
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 RefUnwindSafe for MmioSerialPort
impl Send for MmioSerialPort
impl Sync for MmioSerialPort
impl Unpin for MmioSerialPort
impl UnwindSafe for MmioSerialPort
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