[][src]Type Definition esp32::pcnt::pcnt_u4_conf0_reg::R

type R = R<u32, PCNT_U4_CONF0_REG>;

Reader of register PCNT_U4_CONF0_REG

Methods

impl R[src]

pub fn pcnt_ch1_lctrl_mode_u4(&self) -> PCNT_CH1_LCTRL_MODE_U4_R[src]

Bits 30:31 - This register is used to control the mode of channel1's low control signal for unit4. 2'd0:increase when control signal is low 2'd1: decrease when control signal is high others:forbidden

pub fn pcnt_ch1_hctrl_mode_u4(&self) -> PCNT_CH1_HCTRL_MODE_U4_R[src]

Bits 28:29 - This register is used to control the mode of channel1's high control signal for unit4. 2'd0:increase when control signal is low 2'd1: decrease when control signal is high others:forbidden

pub fn pcnt_ch1_pos_mode_u4(&self) -> PCNT_CH1_POS_MODE_U4_R[src]

Bits 26:27 - This register is used to control the mode of channel1's input posedge signal for unit4. 2'd1: increase at the posedge of input signal 2'd2:decrease at the posedge of input signal others:forbidden

pub fn pcnt_ch1_neg_mode_u4(&self) -> PCNT_CH1_NEG_MODE_U4_R[src]

Bits 24:25 - This register is used to control the mode of channel1's input negedge signal for unit4. 2'd1: increase at the negedge of input signal 2'd2:decrease at the negedge of input signal others:forbidden

pub fn pcnt_ch0_lctrl_mode_u4(&self) -> PCNT_CH0_LCTRL_MODE_U4_R[src]

Bits 22:23 - This register is used to control the mode of channel0's low control signal for unit4. 2'd0:increase when control signal is low 2'd1: decrease when control signal is high others:forbidden

pub fn pcnt_ch0_hctrl_mode_u4(&self) -> PCNT_CH0_HCTRL_MODE_U4_R[src]

Bits 20:21 - This register is used to control the mode of channel0's high control signal for unit4. 2'd0:increase when control signal is low 2'd1: decrease when control signal is high others:forbidden

pub fn pcnt_ch0_pos_mode_u4(&self) -> PCNT_CH0_POS_MODE_U4_R[src]

Bits 18:19 - This register is used to control the mode of channel0's input posedge signal for unit4. 2'd1: increase at the posedge of input signal 2'd2:decrease at the posedge of input signal others:forbidden

pub fn pcnt_ch0_neg_mode_u4(&self) -> PCNT_CH0_NEG_MODE_U4_R[src]

Bits 16:17 - This register is used to control the mode of channel0's input negedge signal for unit4. 2'd1: increase at the negedge of input signal 2'd2:decrease at the negedge of input signal others:forbidden

pub fn pcnt_thr_thres1_en_u4(&self) -> PCNT_THR_THRES1_EN_U4_R[src]

Bit 15 - This is the enable bit for comparing unit4's count with thres1 value .

pub fn pcnt_thr_thres0_en_u4(&self) -> PCNT_THR_THRES0_EN_U4_R[src]

Bit 14 - This is the enable bit for comparing unit4's count with thres0 value.

pub fn pcnt_thr_l_lim_en_u4(&self) -> PCNT_THR_L_LIM_EN_U4_R[src]

Bit 13 - This is the enable bit for comparing unit4's count with thr_l_lim value.

pub fn pcnt_thr_h_lim_en_u4(&self) -> PCNT_THR_H_LIM_EN_U4_R[src]

Bit 12 - This is the enable bit for comparing unit4's count with thr_h_lim value.

pub fn pcnt_thr_zero_en_u4(&self) -> PCNT_THR_ZERO_EN_U4_R[src]

Bit 11 - This is the enable bit for comparing unit4's count with 0 value.

pub fn pcnt_filter_en_u4(&self) -> PCNT_FILTER_EN_U4_R[src]

Bit 10 - This is the enable bit for filtering input signals for unit4.

pub fn pcnt_filter_thres_u4(&self) -> PCNT_FILTER_THRES_U4_R[src]

Bits 0:9 - This register is used to filter pluse whose width is smaller than this value for unit4.