pub struct InstructionByte { /* private fields */ }Expand description
Instruction byte (write only)
Allows writing of the instruction bytes. When one of these bits is set to 1, the
corresponding instruction is executed and the bit set back to zero, except in the
case of Act0 and Act1, which remain set to the written value.
Implementations§
Source§impl InstructionByte
impl InstructionByte
Sourcepub fn tp(&self) -> bool
pub fn tp(&self) -> bool
Read the tp field of the register.
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
Read the act_0 field of the register.
Set actuator pin 0 to VDD if enabled, otherwise to GND
Sourcepub fn act_1(&self) -> bool
pub fn act_1(&self) -> bool
Read the act_1 field of the register.
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)
Write the ab_res_0 field of the register.
Reset counter 0
Sourcepub fn set_ab_res_1(&mut self, value: bool)
pub fn set_ab_res_1(&mut self, value: bool)
Write the ab_res_1 field of the register.
Reset counter 1
Sourcepub fn set_ab_res_2(&mut self, value: bool)
pub fn set_ab_res_2(&mut self, value: bool)
Write the ab_res_2 field of the register.
Reset counter 2
Sourcepub fn set_zc_en(&mut self, value: bool)
pub fn set_zc_en(&mut self, value: bool)
Write the zc_en field of the register.
Enable zero codification
Sourcepub fn set_tp(&mut self, value: bool)
pub fn set_tp(&mut self, value: bool)
Write the tp field of the register.
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)
&= 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)
|= 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)
^= operation. Read moreSource§impl Clone for InstructionByte
impl Clone for InstructionByte
Source§fn clone(&self) -> InstructionByte
fn clone(&self) -> InstructionByte
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more