Struct esp32s3_hal::pac::timg0::tconfig::W
pub struct W(_);
Expand description
Register T%sCONFIG
writer
Implementations
impl W
impl W
pub fn use_xtal(&mut self) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 9>
pub fn use_xtal(&mut self) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 9>
Bit 9 - 1: Use XTAL_CLK as the source clock of timer group. 0: Use APB_CLK as the source clock of timer group.
pub fn alarm_en(
&mut self
) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 10>
pub fn alarm_en(
&mut self
) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 10>
Bit 10 - When set, the alarm is enabled. This bit is automatically cleared once an alarm occurs.
pub fn divider(
&mut self
) -> FieldWriterRaw<'_, u32, TCONFIG_SPEC, u16, u16, Unsafe, 16, 13>
pub fn divider(
&mut self
) -> FieldWriterRaw<'_, u32, TCONFIG_SPEC, u16, u16, Unsafe, 16, 13>
Bits 13:28 - Timer %s clock (T%s_clk) prescaler value.
pub fn autoreload(
&mut self
) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 29>
pub fn autoreload(
&mut self
) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 29>
Bit 29 - When set, timer %s auto-reload at alarm is enabled.
pub fn increase(
&mut self
) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 30>
pub fn increase(
&mut self
) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 30>
Bit 30 - When set, the timer %s time-base counter will increment every clock tick. When cleared, the timer %s time-base counter will decrement.
pub fn en(&mut self) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 31>
pub fn en(&mut self) -> BitWriterRaw<'_, u32, TCONFIG_SPEC, bool, BitM, 31>
Bit 31 - When set, the timer %s time-base counter is enabled.
Methods from Deref<Target = W<TCONFIG_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<TCONFIG_SPEC>> for W
impl From<W<TCONFIG_SPEC>> for W
fn from(writer: W<TCONFIG_SPEC>) -> W
fn from(writer: W<TCONFIG_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