pub struct Ebyte<S, Aux, M0, M1, D, M>where
S: Read<u8> + Write<u8>,
Aux: InputPin,
M0: OutputPin,
M1: OutputPin,
D: DelayMs<u32>,{ /* private fields */ }Implementations
sourceimpl<S, Aux, M0, M1, D> Ebyte<S, Aux, M0, M1, D, Normal>where
S: Read<u8> + Write<u8>,
Aux: InputPin,
M0: OutputPin,
M1: OutputPin,
D: DelayMs<u32>,
impl<S, Aux, M0, M1, D> Ebyte<S, Aux, M0, M1, D, Normal>where
S: Read<u8> + Write<u8>,
Aux: InputPin,
M0: OutputPin,
M1: OutputPin,
D: DelayMs<u32>,
pub fn new(serial: S, aux: Aux, m0: M0, m1: M1, delay: D) -> Result<Self, Error>
sourcepub fn write_buffer(&mut self, buffer: &[u8]) -> Result<(), Error>
pub fn write_buffer(&mut self, buffer: &[u8]) -> Result<(), Error>
Write entire buffer to serial port
sourcepub fn read_buffer(&mut self, buffer: &mut [u8]) -> Result<(), Error>
pub fn read_buffer(&mut self, buffer: &mut [u8]) -> Result<(), Error>
Read entire buffer from serial port
pub fn model_data(&mut self) -> Result<ModelData, Error>
pub fn parameters(&mut self) -> Result<Parameters, Error>
pub fn set_parameters(
&mut self,
params: &Parameters,
mode: Persistence
) -> Result<(), Error>
pub fn reset(&mut self) -> Result<(), Error>
pub fn release(self) -> (S, Aux, M0, M1, D)
Trait Implementations
sourceimpl<S, Aux, M0, M1, D> Read<u8> for Ebyte<S, Aux, M0, M1, D, Normal>where
S: Read<u8> + Write<u8>,
Aux: InputPin,
M0: OutputPin,
M1: OutputPin,
D: DelayMs<u32>,
impl<S, Aux, M0, M1, D> Read<u8> for Ebyte<S, Aux, M0, M1, D, Normal>where
S: Read<u8> + Write<u8>,
Aux: InputPin,
M0: OutputPin,
M1: OutputPin,
D: DelayMs<u32>,
Auto Trait Implementations
impl<S, Aux, M0, M1, D, M> RefUnwindSafe for Ebyte<S, Aux, M0, M1, D, M>where
Aux: RefUnwindSafe,
D: RefUnwindSafe,
M: RefUnwindSafe,
M0: RefUnwindSafe,
M1: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, Aux, M0, M1, D, M> Send for Ebyte<S, Aux, M0, M1, D, M>where
Aux: Send,
D: Send,
M: Send,
M0: Send,
M1: Send,
S: Send,
impl<S, Aux, M0, M1, D, M> Sync for Ebyte<S, Aux, M0, M1, D, M>where
Aux: Sync,
D: Sync,
M: Sync,
M0: Sync,
M1: Sync,
S: Sync,
impl<S, Aux, M0, M1, D, M> Unpin for Ebyte<S, Aux, M0, M1, D, M>where
Aux: Unpin,
D: Unpin,
M: Unpin,
M0: Unpin,
M1: Unpin,
S: Unpin,
impl<S, Aux, M0, M1, D, M> UnwindSafe for Ebyte<S, Aux, M0, M1, D, M>where
Aux: UnwindSafe,
D: UnwindSafe,
M: UnwindSafe,
M0: UnwindSafe,
M1: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more