Trait rustzx_core::host::IoExtender [−][src]
pub trait IoExtender {
fn write(&mut self, port: u16, data: u8);
fn read(&mut self, port: u16) -> u8;
fn extends_port(&self, port: u16) -> bool;
}
Expand description
Allows to extend base rustzx-core functionality by providing interface for user-defined IO ports handling
Required methods
fn extends_port(&self, port: u16) -> bool
fn extends_port(&self, port: u16) -> bool
Return true if io externder can process incomming read/write operation for a given port