Struct esp32c3_hal::pac::ledc::ch_conf0::W
pub struct W(_);
Expand description
Register CH%s_CONF0
writer
Implementations
impl W
impl W
pub fn timer_sel(
&mut self
) -> FieldWriterRaw<'_, u32, CH_CONF0_SPEC, u8, u8, Unsafe, 2, 0>
pub fn timer_sel(
&mut self
) -> FieldWriterRaw<'_, u32, CH_CONF0_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - reg_timer_sel_lsch0.
pub fn sig_out_en(
&mut self
) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 2>
pub fn sig_out_en(
&mut self
) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 2>
Bit 2 - reg_sig_out_en_lsch0.
pub fn idle_lv(&mut self) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 3>
pub fn idle_lv(&mut self) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 3>
Bit 3 - reg_idle_lv_lsch0.
pub fn para_up(&mut self) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 4>
pub fn para_up(&mut self) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 4>
Bit 4 - reg_para_up_lsch0.
pub fn ovf_num(
&mut self
) -> FieldWriterRaw<'_, u32, CH_CONF0_SPEC, u16, u16, Unsafe, 10, 5>
pub fn ovf_num(
&mut self
) -> FieldWriterRaw<'_, u32, CH_CONF0_SPEC, u16, u16, Unsafe, 10, 5>
Bits 5:14 - reg_ovf_num_lsch0.
pub fn ovf_cnt_en(
&mut self
) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 15>
pub fn ovf_cnt_en(
&mut self
) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 15>
Bit 15 - reg_ovf_cnt_en_lsch0.
pub fn ovf_cnt_reset(
&mut self
) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 16>
pub fn ovf_cnt_reset(
&mut self
) -> BitWriterRaw<'_, u32, CH_CONF0_SPEC, bool, BitM, 16>
Bit 16 - reg_ovf_cnt_reset_lsch0.
Methods from Deref<Target = W<CH_CONF0_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<CH_CONF0_SPEC>> for W
impl From<W<CH_CONF0_SPEC>> for W
fn from(writer: W<CH_CONF0_SPEC>) -> W
fn from(writer: W<CH_CONF0_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more