Struct kernel::drivers::serial::Serial [] [src]

pub struct Serial {
    pub data: PIO8,
    pub status: PIO8,
    pub irq: u8,
    pub escape: bool,
    pub cursor_control: bool,
}

Serial

Fields

data
status
irq
escape
cursor_control

Methods

impl Serial

fn new(port: u16, irq: u8) -> Box<Self>

Create new

Trait Implementations

impl KScheme for Serial

fn on_irq(&mut self, irq: u8)

fn on_poll(&mut self)

fn scheme(&self) -> &str

fn open(&mut self, url: &URL) -> Option<Box<Resource>>