Struct esp32_hal::pac::pwm0::carrier2_cfg::W
pub struct W(_);
Expand description
Register CARRIER2_CFG
writer
Implementations§
§impl W
impl W
pub fn carrier2_en(
&mut self
) -> BitWriterRaw<'_, u32, CARRIER2_CFG_SPEC, bool, BitM, 0>
pub fn carrier2_en(
&mut self
) -> BitWriterRaw<'_, u32, CARRIER2_CFG_SPEC, bool, BitM, 0>
Bit 0
pub fn carrier2_prescale(
&mut self
) -> FieldWriterRaw<'_, u32, CARRIER2_CFG_SPEC, u8, u8, Unsafe, 4, 1>
pub fn carrier2_prescale(
&mut self
) -> FieldWriterRaw<'_, u32, CARRIER2_CFG_SPEC, u8, u8, Unsafe, 4, 1>
Bits 1:4
pub fn carrier2_duty(
&mut self
) -> FieldWriterRaw<'_, u32, CARRIER2_CFG_SPEC, u8, u8, Unsafe, 3, 5>
pub fn carrier2_duty(
&mut self
) -> FieldWriterRaw<'_, u32, CARRIER2_CFG_SPEC, u8, u8, Unsafe, 3, 5>
Bits 5:7
pub fn carrier2_oshtwth(
&mut self
) -> FieldWriterRaw<'_, u32, CARRIER2_CFG_SPEC, u8, u8, Unsafe, 4, 8>
pub fn carrier2_oshtwth(
&mut self
) -> FieldWriterRaw<'_, u32, CARRIER2_CFG_SPEC, u8, u8, Unsafe, 4, 8>
Bits 8:11
pub fn carrier2_out_invert(
&mut self
) -> BitWriterRaw<'_, u32, CARRIER2_CFG_SPEC, bool, BitM, 12>
pub fn carrier2_out_invert(
&mut self
) -> BitWriterRaw<'_, u32, CARRIER2_CFG_SPEC, bool, BitM, 12>
Bit 12
pub fn carrier2_in_invert(
&mut self
) -> BitWriterRaw<'_, u32, CARRIER2_CFG_SPEC, bool, BitM, 13>
pub fn carrier2_in_invert(
&mut self
) -> BitWriterRaw<'_, u32, CARRIER2_CFG_SPEC, bool, BitM, 13>
Bit 13
Methods from Deref<Target = W<CARRIER2_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<CARRIER2_CFG_SPEC>> for W
impl From<W<CARRIER2_CFG_SPEC>> for W
§fn from(writer: W<CARRIER2_CFG_SPEC>) -> W
fn from(writer: W<CARRIER2_CFG_SPEC>) -> W
Converts to this type from the input type.