[][src]Trait msr::SyncIoSystem

pub trait SyncIoSystem {
    fn read(&mut self, id: &str) -> Result<Value>;
fn read_output(&mut self, id: &str) -> Result<Option<Value>>;
fn write(&mut self, id: &str, value: &Value) -> Result<()>; }

An I/O system with synchronous fieldbus access

Required methods

fn read(&mut self, id: &str) -> Result<Value>

Read the current state of an input.

fn read_output(&mut self, id: &str) -> Result<Option<Value>>

Read the current state of an output if possible.

fn write(&mut self, id: &str, value: &Value) -> Result<()>

Write a value to the specified output.

Loading content...

Implementors

impl SyncIoSystem for IoState[src]

Loading content...