pub trait P50XBinary {
fn xpower_off(&mut self) -> Result<()>;
fn xpower_on(&mut self) -> Result<()>;
fn xhalt(&mut self) -> Result<()>;
fn xso_set(&mut self, special_option: u16, value: u8) -> Result<()>;
fn xso_get(&mut self, special_option: u16) -> Result<u8>;
fn xversion(&mut self) -> Result<Vec<u8>>;
fn xp50xch(&mut self, extended_character: u8) -> Result<()>;
fn xstatus(&mut self) -> Result<DeviceStatus>;
fn xnop(&mut self) -> Result<()>;
fn xlok(
&mut self,
address: u16,
speed: i8,
options: XLokOptions
) -> Result<()>;
fn xlok_status(&mut self, address: u16) -> Result<XLokStatus>;
fn xlok_config(&mut self, address: u16) -> Result<XLokConfig>;
fn xlok_dispatch(&mut self, address: u16) -> Result<Option<u8>>;
fn xfunc(&mut self, address: u16, functions: [bool; 8]) -> Result<()>;
fn xfunc_status(&mut self, address: u16) -> Result<[bool; 8]>;
fn xfuncx(&mut self, address: u16, functions: [bool; 8]) -> Result<()>;
fn xfuncx_status(&mut self, address: u16) -> Result<[bool; 8]>;
}
Loading content...
Loading content...