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