Struct esp32c3_hal::pac::ledc::timer_conf::W
pub struct W(_);
Expand description
Register TIMER%s_CONF
writer
Implementations
impl W
impl W
pub fn duty_res(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER_CONF_SPEC, u8, u8, Unsafe, 4, 0>
pub fn duty_res(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER_CONF_SPEC, u8, u8, Unsafe, 4, 0>
Bits 0:3 - reg_lstimer0_duty_res.
pub fn clk_div(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER_CONF_SPEC, u32, u32, Unsafe, 18, 4>
pub fn clk_div(
&mut self
) -> FieldWriterRaw<'_, u32, TIMER_CONF_SPEC, u32, u32, Unsafe, 18, 4>
Bits 4:21 - reg_clk_div_lstimer0.
pub fn pause(
&mut self
) -> BitWriterRaw<'_, u32, TIMER_CONF_SPEC, bool, BitM, 22>
pub fn pause(
&mut self
) -> BitWriterRaw<'_, u32, TIMER_CONF_SPEC, bool, BitM, 22>
Bit 22 - reg_lstimer0_pause.
pub fn rst(&mut self) -> BitWriterRaw<'_, u32, TIMER_CONF_SPEC, bool, BitM, 23>
pub fn rst(&mut self) -> BitWriterRaw<'_, u32, TIMER_CONF_SPEC, bool, BitM, 23>
Bit 23 - reg_lstimer0_rst.
pub fn tick_sel(
&mut self
) -> BitWriterRaw<'_, u32, TIMER_CONF_SPEC, bool, BitM, 24>
pub fn tick_sel(
&mut self
) -> BitWriterRaw<'_, u32, TIMER_CONF_SPEC, bool, BitM, 24>
Bit 24 - reg_tick_sel_lstimer0.
pub fn para_up(
&mut self
) -> BitWriterRaw<'_, u32, TIMER_CONF_SPEC, bool, BitM, 25>
pub fn para_up(
&mut self
) -> BitWriterRaw<'_, u32, TIMER_CONF_SPEC, bool, BitM, 25>
Bit 25 - reg_lstimer0_para_up.
Methods from Deref<Target = W<TIMER_CONF_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<TIMER_CONF_SPEC>> for W
impl From<W<TIMER_CONF_SPEC>> for W
fn from(writer: W<TIMER_CONF_SPEC>) -> W
fn from(writer: W<TIMER_CONF_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