Struct esp32_hal::pac::pwm0::cap_ch2_cfg::W
pub struct W(_);
Expand description
Register CAP_CH2_CFG
writer
Implementations§
§impl W
impl W
pub fn cap2_en(
&mut self
) -> BitWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, bool, BitM, 0>
pub fn cap2_en(
&mut self
) -> BitWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, bool, BitM, 0>
Bit 0
pub fn cap2_mode(
&mut self
) -> FieldWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, u8, u8, Unsafe, 2, 1>
pub fn cap2_mode(
&mut self
) -> FieldWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, u8, u8, Unsafe, 2, 1>
Bits 1:2
pub fn cap2_prescale(
&mut self
) -> FieldWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, u8, u8, Unsafe, 8, 3>
pub fn cap2_prescale(
&mut self
) -> FieldWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, u8, u8, Unsafe, 8, 3>
Bits 3:10
pub fn cap2_in_invert(
&mut self
) -> BitWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, bool, BitM, 11>
pub fn cap2_in_invert(
&mut self
) -> BitWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, bool, BitM, 11>
Bit 11
pub fn cap2_sw(
&mut self
) -> BitWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, bool, BitM, 12>
pub fn cap2_sw(
&mut self
) -> BitWriterRaw<'_, u32, CAP_CH2_CFG_SPEC, bool, BitM, 12>
Bit 12
Methods from Deref<Target = W<CAP_CH2_CFG_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.
Trait Implementations§
§impl From<W<CAP_CH2_CFG_SPEC>> for W
impl From<W<CAP_CH2_CFG_SPEC>> for W
§fn from(writer: W<CAP_CH2_CFG_SPEC>) -> W
fn from(writer: W<CAP_CH2_CFG_SPEC>) -> W
Converts to this type from the input type.