Struct esp32::pcnt::u_conf0::W

source ·
pub struct W(_);
Expand description

Register U%s_CONF0 writer

Implementations§

source§

impl W

source

pub fn filter_thres(&mut self) -> FILTER_THRES_W<'_, 0>

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

source

pub fn filter_en(&mut self) -> FILTER_EN_W<'_, 10>

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

source

pub fn thr_zero_en(&mut self) -> THR_ZERO_EN_W<'_, 11>

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

source

pub fn thr_h_lim_en(&mut self) -> THR_H_LIM_EN_W<'_, 12>

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

source

pub fn thr_l_lim_en(&mut self) -> THR_L_LIM_EN_W<'_, 13>

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

source

pub fn thr_thres0_en(&mut self) -> THR_THRES0_EN_W<'_, 14>

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

source

pub fn thr_thres1_en(&mut self) -> THR_THRES1_EN_W<'_, 15>

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

source

pub fn ch0_neg_mode(&mut self) -> CH0_NEG_MODE_W<'_, 16>

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

source

pub fn ch0_pos_mode(&mut self) -> CH0_POS_MODE_W<'_, 18>

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

source

pub fn ch0_hctrl_mode(&mut self) -> CH0_HCTRL_MODE_W<'_, 20>

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

source

pub fn ch0_lctrl_mode(&mut self) -> CH0_LCTRL_MODE_W<'_, 22>

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

source

pub fn ch1_neg_mode(&mut self) -> CH1_NEG_MODE_W<'_, 24>

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

source

pub fn ch1_pos_mode(&mut self) -> CH1_POS_MODE_W<'_, 26>

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

source

pub fn ch1_hctrl_mode(&mut self) -> CH1_HCTRL_MODE_W<'_, 28>

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

source

pub fn ch1_lctrl_mode(&mut self) -> CH1_LCTRL_MODE_W<'_, 30>

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

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<U_CONF0_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<U_CONF0_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<U_CONF0_SPEC>> for W

source§

fn from(writer: W<U_CONF0_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.