Struct tis_100::io::IoBusView
[−]
[src]
pub struct IoBusView<'a> { /* fields omitted */ }
Provides access to the IoBus
for a single node. This ensures that nodes are only able to read
and write on ports that they are connected to.
Methods
impl<'a> IoBusView<'a>
[src]
fn read(&mut self, port: Port) -> Option<isize>
Receive data on a given port.
fn write(&mut self, port: Port, value: isize)
Send data on a given port.
fn is_blocked(&self) -> bool
Check if an output port has been read.