pub struct Status1 { /* private fields */ }Expand description
Status1: Status of counter 1
Returns the status of counter 1 plus several other status bits. See also Status0 and
Status2 for the other counters and more status bits.
Implementations§
Source§impl Status1
impl Status1
Sourcepub fn tps(&self) -> bool
pub fn tps(&self) -> bool
Read the tps field of the register.
TPS signal: Status of the signal on input pin TPI.
Sourcepub fn com_col(&self) -> bool
pub fn com_col(&self) -> bool
Read the com_col field of the register.
Communication collision took place.
Sourcepub fn ext_warn(&self) -> bool
pub fn ext_warn(&self) -> bool
Read the ext_warn field of the register.
ExtWarn: Status bit that indicates if the NWARN pin was either pulled-down from
outside or set to 0 from inside (an internal masked error has occured).
Sourcepub fn ext_err(&self) -> bool
pub fn ext_err(&self) -> bool
Read the ext_err field of the register.
ExtErr: Status bit that indicates if the NERR pin was either pulled-down from
outside or set to 0 from inside (an internal masked error has occured).
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_1(&self) -> bool
pub fn zero_1(&self) -> bool
Read the zero_1 field of the register.
Zero of counter 1 reached: The counter has reached the zero value.
Sourcepub fn ab_err_1(&self) -> bool
pub fn ab_err_1(&self) -> bool
Read the ab_err_1 field of the register.
AB input decodification error for counter 1. It occurs if the counting frequency is too high or if two incrmeental edges are too close together.
Sourcepub fn set_tps(&mut self, value: bool)
pub fn set_tps(&mut self, value: bool)
Write the tps field of the register.
TPS signal: Status of the signal on input pin TPI.
Sourcepub fn set_com_col(&mut self, value: bool)
pub fn set_com_col(&mut self, value: bool)
Write the com_col field of the register.
Communication collision took place.
Sourcepub fn set_ext_warn(&mut self, value: bool)
pub fn set_ext_warn(&mut self, value: bool)
Write the ext_warn field of the register.
ExtWarn: Status bit that indicates if the NWARN pin was either pulled-down from
outside or set to 0 from inside (an internal masked error has occured).
Sourcepub fn set_ext_err(&mut self, value: bool)
pub fn set_ext_err(&mut self, value: bool)
Write the ext_err field of the register.
ExtErr: Status bit that indicates if the NERR pin was either pulled-down from
outside or set to 0 from inside (an internal masked error has occured).
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_1(&mut self, value: bool)
pub fn set_zero_1(&mut self, value: bool)
Write the zero_1 field of the register.
Zero of counter 1 reached: The counter has reached the zero value.
Sourcepub fn set_ovf_1(&mut self, value: bool)
pub fn set_ovf_1(&mut self, value: bool)
Write the ovf_1 field of the register.
Overflow of counter 1.
Sourcepub fn set_ab_err_1(&mut self, value: bool)
pub fn set_ab_err_1(&mut self, value: bool)
Write the ab_err_1 field of the register.
AB input decodification error for counter 1. It occurs if the counting frequency is too high or if two incrmeental edges are too close together.
Trait Implementations§
Source§impl BitAndAssign for Status1
impl BitAndAssign for Status1
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOrAssign for Status1
impl BitOrAssign for Status1
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXorAssign for Status1
impl BitXorAssign for Status1
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read more