pub struct Status2 { /* private fields */ }Expand description
Status2: Status of counter 2
Returns the status of counter 2 plus several other status bits. See also Status0 and
Status1 for the other counters and more status bits.
Implementations§
Source§impl Status2
impl Status2
Sourcepub fn en_ssi(&self) -> bool
pub fn en_ssi(&self) -> bool
Read the en_ssi field of the register.
EnSSI: Status of the SSI pin. If closed, the SSI interface is not enabled and the status bit is 0. Otherwise, if SSI is enabled (SLI pin is open), the status bit returns 1.
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_2(&self) -> bool
pub fn zero_2(&self) -> bool
Read the zero_2 field of the register.
Zero of counter 1 reached: The counter has reached the zero value.
Sourcepub fn ab_err_2(&self) -> bool
pub fn ab_err_2(&self) -> bool
Read the ab_err_2 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_en_ssi(&mut self, value: bool)
pub fn set_en_ssi(&mut self, value: bool)
Write the en_ssi field of the register.
EnSSI: Status of the SSI pin. If closed, the SSI interface is not enabled and the status bit is 0. Otherwise, if SSI is enabled (SLI pin is open), the status bit returns 1.
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_2(&mut self, value: bool)
pub fn set_zero_2(&mut self, value: bool)
Write the zero_2 field of the register.
Zero of counter 1 reached: The counter has reached the zero value.
Sourcepub fn set_ovf_2(&mut self, value: bool)
pub fn set_ovf_2(&mut self, value: bool)
Write the ovf_2 field of the register.
Overflow of counter 1.
Sourcepub fn set_ab_err_2(&mut self, value: bool)
pub fn set_ab_err_2(&mut self, value: bool)
Write the ab_err_2 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 Status2
impl BitAndAssign for Status2
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOrAssign for Status2
impl BitOrAssign for Status2
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXorAssign for Status2
impl BitXorAssign for Status2
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read more