pub struct R(_);Expand description
Register U%s_STATUS reader
Implementations§
source§impl R
impl R
sourcepub fn zero_mode(&self) -> ZERO_MODE_R
pub fn zero_mode(&self) -> ZERO_MODE_R
Bits 0:1 - The pulse counter status of PCNT_U%s corresponding to 0. 0: pulse counter decreases from positive to 0. 1: pulse counter increases from negative to 0. 2: pulse counter is negative. 3: pulse counter is positive.
sourcepub fn thres1(&self) -> THRES1_R
pub fn thres1(&self) -> THRES1_R
Bit 2 - The latched value of thres1 event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to thres1 and thres1 event is valid. 0: others.
sourcepub fn thres0(&self) -> THRES0_R
pub fn thres0(&self) -> THRES0_R
Bit 3 - The latched value of thres0 event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to thres0 and thres0 event is valid. 0: others.
sourcepub fn l_lim(&self) -> L_LIM_R
pub fn l_lim(&self) -> L_LIM_R
Bit 4 - The latched value of low limit event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to thr_l_lim and low limit event is valid. 0: others.