pub struct Status0 { /* private fields */ }Expand description
Status0: Status of counter 0
Returns the status of counter 0 plus several other status bits. See also Status1 and
Status2 for the other counters and more status bits.
Implementations§
Source§impl Status0
impl Status0
Sourcepub fn tp_val(&self) -> bool
pub fn tp_val(&self) -> bool
Read the tp_val field of the register.
Touch probe registers TP1/TP2 loaded or new values loaded.
Sourcepub fn ovf_ref(&self) -> bool
pub fn ovf_ref(&self) -> bool
Read the ovf_ref field of the register.
Overflow of the reference counter. There were too many edges detected between two index pulses. The value of the UPD and REF registers is not valid.
Sourcepub fn upd_val(&self) -> bool
pub fn upd_val(&self) -> bool
Read the upd_val field of the register.
UPD value: Every time that the UPD register is loaded, the status bit UpDval is set to 1 until the status bit UPD or the register UPD is read out.
Sourcepub fn r_val(&self) -> bool
pub fn r_val(&self) -> bool
Read the r_val field of the register.
Status bit that indicates that the reference value was loaded in the REF register after the “Zero codification” process. After power-on, this bit remains at 0 until the second different index pulse.
Sourcepub fn p_dwn(&self) -> bool
pub fn p_dwn(&self) -> bool
Read the p_dwn field of the register.
Power down: If VDD reaches the power off supply level, the iC-MD is reset and the RAM initialized to the default value. This status bit indicates that this initialization has taken place.
Sourcepub fn zero_0(&self) -> bool
pub fn zero_0(&self) -> bool
Read the zero_0 field of the register.
Zero of counter 0 reached: The counter has reached the zero value.
Sourcepub fn ab_err_0(&self) -> bool
pub fn ab_err_0(&self) -> bool
Read the ab_err_0 field of the register.
AB input decodification error for counter 0. It occurs if the counting frequency is too high or if two incrmeental edges are too close together.
Sourcepub fn set_tp_val(&mut self, value: bool)
pub fn set_tp_val(&mut self, value: bool)
Write the tp_val field of the register.
Touch probe registers TP1/TP2 loaded or new values loaded.
Sourcepub fn set_ovf_ref(&mut self, value: bool)
pub fn set_ovf_ref(&mut self, value: bool)
Write the ovf_ref field of the register.
Overflow of the reference counter. There were too many edges detected between two index pulses. The value of the UPD and REF registers is not valid.
Sourcepub fn set_upd_val(&mut self, value: bool)
pub fn set_upd_val(&mut self, value: bool)
Write the upd_val field of the register.
UPD value: Every time that the UPD register is loaded, the status bit UpDval is set to 1 until the status bit UPD or the register UPD is read out.
Sourcepub fn set_r_val(&mut self, value: bool)
pub fn set_r_val(&mut self, value: bool)
Write the r_val field of the register.
Status bit that indicates that the reference value was loaded in the REF register after the “Zero codification” process. After power-on, this bit remains at 0 until the second different index pulse.
Sourcepub fn set_p_dwn(&mut self, value: bool)
pub fn set_p_dwn(&mut self, value: bool)
Write the p_dwn field of the register.
Power down: If VDD reaches the power off supply level, the iC-MD is reset and the RAM initialized to the default value. This status bit indicates that this initialization has taken place.
Sourcepub fn set_zero_0(&mut self, value: bool)
pub fn set_zero_0(&mut self, value: bool)
Write the zero_0 field of the register.
Zero of counter 0 reached: The counter has reached the zero value.
Sourcepub fn set_ovf_0(&mut self, value: bool)
pub fn set_ovf_0(&mut self, value: bool)
Write the ovf_0 field of the register.
Overflow of counter 0.
Sourcepub fn set_ab_err_0(&mut self, value: bool)
pub fn set_ab_err_0(&mut self, value: bool)
Write the ab_err_0 field of the register.
AB input decodification error for counter 0. It occurs if the counting frequency is too high or if two incrmeental edges are too close together.
Trait Implementations§
Source§impl BitAndAssign for Status0
impl BitAndAssign for Status0
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOrAssign for Status0
impl BitOrAssign for Status0
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXorAssign for Status0
impl BitXorAssign for Status0
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read more