[−][src]Struct uart_16550::SerialPort
An interface to a serial port that allows sending out individual bytes.
Implementations
impl SerialPort
[src]
pub unsafe fn new(base: u16) -> SerialPort
[src]
Creates a new serial port interface on the given I/O port.
This function is unsafe because the caller must ensure that the given base address really points to a serial port device.
pub fn init(&mut self)
[src]
Initializes the serial port.
The default configuration of 38400/8-N-1 is used.
pub fn send(&mut self, data: u8)
[src]
Sends a byte on the serial port.
pub fn receive(&mut self) -> u8
[src]
Receives a byte on the serial port.
Trait Implementations
impl Write for SerialPort
[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,
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.
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>,