Struct esp32c2_hal::pac::systimer::target0_conf::W
pub struct W(_);
Expand description
Register TARGET0_CONF
writer
Implementations§
§impl W
impl W
pub fn target0_period(
&mut self
) -> FieldWriterRaw<'_, u32, TARGET0_CONF_SPEC, u32, u32, Unsafe, 26, 0>
pub fn target0_period(
&mut self
) -> FieldWriterRaw<'_, u32, TARGET0_CONF_SPEC, u32, u32, Unsafe, 26, 0>
Bits 0:25 - target0 period
pub fn target0_period_mode(
&mut self
) -> BitWriterRaw<'_, u32, TARGET0_CONF_SPEC, bool, BitM, 30>
pub fn target0_period_mode(
&mut self
) -> BitWriterRaw<'_, u32, TARGET0_CONF_SPEC, bool, BitM, 30>
Bit 30 - Set target0 to period mode
pub fn target0_timer_unit_sel(
&mut self
) -> BitWriterRaw<'_, u32, TARGET0_CONF_SPEC, bool, BitM, 31>
pub fn target0_timer_unit_sel(
&mut self
) -> BitWriterRaw<'_, u32, TARGET0_CONF_SPEC, bool, BitM, 31>
Bit 31 - select which unit to compare
Methods from Deref<Target = W<TARGET0_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<TARGET0_CONF_SPEC>> for W
impl From<W<TARGET0_CONF_SPEC>> for W
§fn from(writer: W<TARGET0_CONF_SPEC>) -> W
fn from(writer: W<TARGET0_CONF_SPEC>) -> W
Converts to this type from the input type.