Trait Interface
Source pub trait Interface: DriverGeneric {
Show 17 methods
// Required methods
fn irq_handler(&mut self) -> Option<Box<dyn TIrqHandler>>;
fn take_tx(&mut self) -> Option<Box<dyn TSender>>;
fn take_rx(&mut self) -> Option<Box<dyn TReciever>>;
fn base(&self) -> usize;
fn set_base(&mut self, base: usize);
fn set_config(&mut self, config: &Config) -> Result<(), ConfigError>;
fn baudrate(&self) -> u32;
fn data_bits(&self) -> DataBits;
fn stop_bits(&self) -> StopBits;
fn parity(&self) -> Parity;
fn clock_freq(&self) -> u32;
fn enable_loopback(&mut self);
fn disable_loopback(&mut self);
fn is_loopback_enabled(&self) -> bool;
fn enable_interrupts(&mut self, mask: InterruptMask);
fn disable_interrupts(&mut self, mask: InterruptMask);
fn get_enabled_interrupts(&self) -> InterruptMask;
}
Base address of the serial port
Set base address of the serial port