pub enum Step {
Write(Register, u8),
Read(Register),
}Expand description
A step in reading the part number.
Reading it takes two transfers in order, so the sequence is carried as data: a driver walks it, and a test walks it without a bus.
Variants§
Write(Register, u8)
Write a value to a register.
Read(Register)
Read a register, which is the answer when it is the last step.
Trait Implementations§
impl Copy for Step
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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