pub trait CharDevice {
    // Required methods
    fn init(&self);
    fn read(&self) -> u8;
    fn write(&self, ch: u8);
    fn handle_irq(&self);
}

Required Methods§

source

fn init(&self)

source

fn read(&self) -> u8

source

fn write(&self, ch: u8)

source

fn handle_irq(&self)

Implementors§

source§

impl<const BASE_ADDR: usize> CharDevice for NS16550a<BASE_ADDR>