[][src]Struct kernel::uart::Uart

pub struct Uart {
    base_address: usize,
}

UART driver

Fields

base_address: usize

UART MMIO base address

Implementations

impl Uart[src]

pub const fn new(base_address: usize) -> Self[src]

pub fn init(&mut self)[src]

Initialize UART driver

pub fn put(&mut self, c: u8)[src]

Put a character into UART

pub fn get(&mut self) -> Option<u8>[src]

Get a character from UART