Struct esp32s3_hal::pac::pcnt::u_status::R
pub struct R(_);
Expand description
Register U%s_STATUS
reader
Implementations§
§impl R
impl R
pub fn cnt_thr_zero_mode_u(&self) -> FieldReaderRaw<u8, u8>
pub fn cnt_thr_zero_mode_u(&self) -> FieldReaderRaw<u8, u8>
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.
pub fn cnt_thr_thres1_lat_u(&self) -> BitReaderRaw<bool>
pub fn cnt_thr_thres1_lat_u(&self) -> BitReaderRaw<bool>
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
pub fn cnt_thr_thres0_lat_u(&self) -> BitReaderRaw<bool>
pub fn cnt_thr_thres0_lat_u(&self) -> BitReaderRaw<bool>
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
pub fn cnt_thr_l_lim_lat_u(&self) -> BitReaderRaw<bool>
pub fn cnt_thr_l_lim_lat_u(&self) -> BitReaderRaw<bool>
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
pub fn cnt_thr_h_lim_lat_u(&self) -> BitReaderRaw<bool>
pub fn cnt_thr_h_lim_lat_u(&self) -> BitReaderRaw<bool>
Bit 5 - The latched value of high limit event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to thr_h_lim and high limit event is valid. 0: others
pub fn cnt_thr_zero_lat_u(&self) -> BitReaderRaw<bool>
pub fn cnt_thr_zero_lat_u(&self) -> BitReaderRaw<bool>
Bit 6 - The latched value of zero threshold event of PCNT_U%s when threshold event interrupt is valid. 1: the current pulse counter equals to 0 and zero threshold event is valid. 0: others
Methods from Deref<Target = R<U_STATUS_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.