pub enum RegOp {
Write {
addr: u8,
value: u8,
},
Update {
addr: u8,
mask: u8,
value: u8,
},
DelayMs(u16),
}Expand description
One step of a register sequence.
Variants§
Write
Write value to addr.
Update
Read addr, replace the bits under mask with value’s, write it back.
DelayMs(u16)
Wait this many milliseconds before the next step.
Trait Implementations§
impl Copy for RegOp
impl Eq for RegOp
impl StructuralPartialEq for RegOp
Auto Trait Implementations§
impl Freeze for RegOp
impl RefUnwindSafe for RegOp
impl Send for RegOp
impl Sync for RegOp
impl Unpin for RegOp
impl UnsafeUnpin for RegOp
impl UnwindSafe for RegOp
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