#[repr(transparent)]pub struct ClockCtrlN2(pub u32);Expand description
Clock Control.
Tuple Fields§
§0: u32Implementations§
Source§impl ClockCtrlN2
impl ClockCtrlN2
Sourcepub const fn clkin_ena_fm_usbh_lpt(&self) -> bool
pub const fn clkin_ena_fm_usbh_lpt(&self) -> bool
Enables the clk_in clock for the Frequency Measurement, USB HS and LPTMR0/1 modules. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn set_clkin_ena_fm_usbh_lpt(&mut self, val: bool)
pub const fn set_clkin_ena_fm_usbh_lpt(&mut self, val: bool)
Enables the clk_in clock for the Frequency Measurement, USB HS and LPTMR0/1 modules. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn fro1mhz_ena(&self) -> bool
pub const fn fro1mhz_ena(&self) -> bool
Enables the FRO_1MHz clock for RTC module and for UTICK. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn set_fro1mhz_ena(&mut self, val: bool)
pub const fn set_fro1mhz_ena(&mut self, val: bool)
Enables the FRO_1MHz clock for RTC module and for UTICK. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn fro12mhz_ena(&self) -> bool
pub const fn fro12mhz_ena(&self) -> bool
Enables the FRO_12MHz clock for the Flash, LPTMR0/1, and Frequency Measurement modules. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn set_fro12mhz_ena(&mut self, val: bool)
pub const fn set_fro12mhz_ena(&mut self, val: bool)
Enables the FRO_12MHz clock for the Flash, LPTMR0/1, and Frequency Measurement modules. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn fro_hf_ena(&self) -> bool
pub const fn fro_hf_ena(&self) -> bool
Enables FRO HF clock for the Frequency Measure module. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn set_fro_hf_ena(&mut self, val: bool)
pub const fn set_fro_hf_ena(&mut self, val: bool)
Enables FRO HF clock for the Frequency Measure module. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn clkin_ena(&self) -> bool
pub const fn clkin_ena(&self) -> bool
Enables clk_in clock for MICFIL, CAN0/1, I3C0/1, SAI0/1, clkout. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn set_clkin_ena(&mut self, val: bool)
pub const fn set_clkin_ena(&mut self, val: bool)
Enables clk_in clock for MICFIL, CAN0/1, I3C0/1, SAI0/1, clkout. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn fro1mhz_clk_ena(&self) -> bool
pub const fn fro1mhz_clk_ena(&self) -> bool
Enables FRO_1MHz clock for clock muxing in clock gen. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Sourcepub const fn set_fro1mhz_clk_ena(&mut self, val: bool)
pub const fn set_fro1mhz_clk_ena(&mut self, val: bool)
Enables FRO_1MHz clock for clock muxing in clock gen. Raw bit values: false (0) = Disable: Clock is not enabled.; true (1) = Enable: Clock is enabled.
Trait Implementations§
Source§impl Clone for ClockCtrlN2
impl Clone for ClockCtrlN2
Source§fn clone(&self) -> ClockCtrlN2
fn clone(&self) -> ClockCtrlN2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more