Struct esp32s3_hal::pac::pcnt::ctrl::W
pub struct W(_);
Expand description
Register CTRL
writer
Implementations§
§impl W
impl W
pub fn pulse_cnt_rst_u0(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 0>
pub fn pulse_cnt_rst_u0(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 0>
Bit 0 - Set this bit to clear unit 0’s counter.
pub fn cnt_pause_u0(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 1>
pub fn cnt_pause_u0(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 1>
Bit 1 - Set this bit to freeze unit 0’s counter.
pub fn pulse_cnt_rst_u1(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 2>
pub fn pulse_cnt_rst_u1(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 2>
Bit 2 - Set this bit to clear unit 1’s counter.
pub fn cnt_pause_u1(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 3>
pub fn cnt_pause_u1(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 3>
Bit 3 - Set this bit to freeze unit 1’s counter.
pub fn pulse_cnt_rst_u2(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 4>
pub fn pulse_cnt_rst_u2(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 4>
Bit 4 - Set this bit to clear unit 2’s counter.
pub fn cnt_pause_u2(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 5>
pub fn cnt_pause_u2(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 5>
Bit 5 - Set this bit to freeze unit 2’s counter.
pub fn pulse_cnt_rst_u3(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 6>
pub fn pulse_cnt_rst_u3(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 6>
Bit 6 - Set this bit to clear unit 3’s counter.
pub fn cnt_pause_u3(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 7>
pub fn cnt_pause_u3(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 7>
Bit 7 - Set this bit to freeze unit 3’s counter.
Methods from Deref<Target = W<CTRL_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.