Struct esp32c2_hal::pac::system::cpu_per_conf::W
pub struct W(_);
Expand description
Register CPU_PER_CONF
writer
Implementations§
§impl W
impl W
pub fn cpuperiod_sel(
&mut self
) -> FieldWriterRaw<'_, u32, CPU_PER_CONF_SPEC, u8, u8, Unsafe, 2, 0>
pub fn cpuperiod_sel(
&mut self
) -> FieldWriterRaw<'_, u32, CPU_PER_CONF_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - This field used to sel cpu clock frequent.
pub fn pll_freq_sel(
&mut self
) -> BitWriterRaw<'_, u32, CPU_PER_CONF_SPEC, bool, BitM, 2>
pub fn pll_freq_sel(
&mut self
) -> BitWriterRaw<'_, u32, CPU_PER_CONF_SPEC, bool, BitM, 2>
Bit 2 - This field used to sel pll frequent.
pub fn cpu_wait_mode_force_on(
&mut self
) -> BitWriterRaw<'_, u32, CPU_PER_CONF_SPEC, bool, BitM, 3>
pub fn cpu_wait_mode_force_on(
&mut self
) -> BitWriterRaw<'_, u32, CPU_PER_CONF_SPEC, bool, BitM, 3>
Bit 3 - Set 1 to force cpu_waiti_clk enable.
pub fn cpu_waiti_delay_num(
&mut self
) -> FieldWriterRaw<'_, u32, CPU_PER_CONF_SPEC, u8, u8, Unsafe, 4, 4>
pub fn cpu_waiti_delay_num(
&mut self
) -> FieldWriterRaw<'_, u32, CPU_PER_CONF_SPEC, u8, u8, Unsafe, 4, 4>
Bits 4:7 - This field used to set delay cycle when cpu enter waiti mode, after delay waiti_clk will close
Methods from Deref<Target = W<CPU_PER_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<CPU_PER_CONF_SPEC>> for W
impl From<W<CPU_PER_CONF_SPEC>> for W
§fn from(writer: W<CPU_PER_CONF_SPEC>) -> W
fn from(writer: W<CPU_PER_CONF_SPEC>) -> W
Converts to this type from the input type.