Struct x328_proto::master::io::Master
source · pub struct Master<IO>where
IO: Read + Write,{ /* private fields */ }
Expand description
X3.28 bus controller with IO using the std::io::{Read, Write}
traits.
Implementations§
source§impl<IO> Master<IO>where
IO: Read + Write,
impl<IO> Master<IO>where IO: Read + Write,
sourcepub fn write_parameter(
&mut self,
address: impl IntoAddress,
parameter: impl IntoParameter,
value: impl IntoValue
) -> Result<(), Error>
pub fn write_parameter( &mut self, address: impl IntoAddress, parameter: impl IntoParameter, value: impl IntoValue ) -> Result<(), Error>
Send a write command to the node.
sourcepub fn read_parameter(
&mut self,
address: impl IntoAddress,
parameter: impl IntoParameter
) -> Result<Value, Error>
pub fn read_parameter( &mut self, address: impl IntoAddress, parameter: impl IntoParameter ) -> Result<Value, Error>
Send a read command to the node
sourcepub fn read_parameter_again(
&mut self,
address: impl IntoAddress,
parameter: impl IntoParameter
) -> Result<Value, Error>
pub fn read_parameter_again( &mut self, address: impl IntoAddress, parameter: impl IntoParameter ) -> Result<Value, Error>
Read node register using the abbreviated command form for consecutive reads.
Trait Implementations§
Auto Trait Implementations§
impl<IO> RefUnwindSafe for Master<IO>where IO: RefUnwindSafe,
impl<IO> Send for Master<IO>where IO: Send,
impl<IO> Sync for Master<IO>where IO: Sync,
impl<IO> Unpin for Master<IO>where IO: Unpin,
impl<IO> UnwindSafe for Master<IO>where IO: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more