pub struct InstructionByte { /* private fields */ }Implementations§
Source§impl InstructionByte
impl InstructionByte
Sourcepub fn tp(&self) -> bool
pub fn tp(&self) -> bool
bit 4 - Read the tp field.
Load touch probe 2 with touch probe 1 value and touch probe 1 with AB counter value
Sourcepub fn act_0(&self) -> bool
pub fn act_0(&self) -> bool
bit 5 - Read the act_0 field.
Set actuator pin 0 to VDD if enabled, otherwise to GND
Sourcepub fn act_1(&self) -> bool
pub fn act_1(&self) -> bool
bit 6 - Read the act_1 field.
Set actuator pin 1 to VDD if enabled, otherwise to GND
Sourcepub fn set_ab_res_0(&mut self, value: bool)
pub fn set_ab_res_0(&mut self, value: bool)
bit 0 - Set the ab_res_0 field.
Reset counter 0
Sourcepub fn set_ab_res_1(&mut self, value: bool)
pub fn set_ab_res_1(&mut self, value: bool)
bit 1 - Set the ab_res_1 field.
Reset counter 1
Sourcepub fn set_ab_res_2(&mut self, value: bool)
pub fn set_ab_res_2(&mut self, value: bool)
bit 2 - Set the ab_res_2 field.
Reset counter 2
Sourcepub fn set_tp(&mut self, value: bool)
pub fn set_tp(&mut self, value: bool)
bit 4 - Set the tp field.
Load touch probe 2 with touch probe 1 value and touch probe 1 with AB counter value
Trait Implementations§
Source§impl BitAnd for InstructionByte
impl BitAnd for InstructionByte
Source§impl BitAndAssign for InstructionByte
impl BitAndAssign for InstructionByte
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for InstructionByte
impl BitOr for InstructionByte
Source§impl BitOrAssign for InstructionByte
impl BitOrAssign for InstructionByte
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for InstructionByte
impl BitXor for InstructionByte
Source§impl BitXorAssign for InstructionByte
impl BitXorAssign for InstructionByte
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for InstructionByte
impl Clone for InstructionByte
Source§fn clone(&self) -> InstructionByte
fn clone(&self) -> InstructionByte
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InstructionByte
Source§impl Debug for InstructionByte
impl Debug for InstructionByte
Source§impl Default for InstructionByte
impl Default for InstructionByte
impl Eq for InstructionByte
Source§impl Fieldset for InstructionByte
impl Fieldset for InstructionByte
Source§impl From<InstructionByte> for [u8; 1]
impl From<InstructionByte> for [u8; 1]
Source§fn from(val: InstructionByte) -> Self
fn from(val: InstructionByte) -> Self
Converts to this type from the input type.
Source§impl Not for InstructionByte
impl Not for InstructionByte
Source§impl PartialEq for InstructionByte
impl PartialEq for InstructionByte
impl StructuralPartialEq for InstructionByte
Auto Trait Implementations§
impl Freeze for InstructionByte
impl RefUnwindSafe for InstructionByte
impl Send for InstructionByte
impl Sync for InstructionByte
impl Unpin for InstructionByte
impl UnsafeUnpin for InstructionByte
impl UnwindSafe for InstructionByte
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