pub struct Ccm { /* private fields */ }
Implementations§
Source§impl Ccm
impl Ccm
pub const fn new() -> Ccm
pub fn set_low_power_mode(&self)
pub fn is_enabled_iomuxc_snvs_clock(&self) -> bool
pub fn enable_iomuxc_snvs_clock(&self)
pub fn disable_iomuxc_snvs_clock(&self)
Sourcepub fn is_enabled_iomuxc_clock(&self) -> bool
pub fn is_enabled_iomuxc_clock(&self) -> bool
Iomuxc clock
pub fn enable_iomuxc_clock(&self)
pub fn disable_iomuxc_clock(&self)
Sourcepub fn is_enabled_gpio1_clock(&self) -> bool
pub fn is_enabled_gpio1_clock(&self) -> bool
GPIO1 clock
pub fn enable_gpio1_clock(&self)
pub fn disable_gpio1_clock(&self)
Sourcepub fn is_enabled_gpio2_clock(&self) -> bool
pub fn is_enabled_gpio2_clock(&self) -> bool
GPIO2 clock
pub fn enable_gpio2_clock(&self)
pub fn disable_gpio2_clock(&self)
Sourcepub fn is_enabled_gpio3_clock(&self) -> bool
pub fn is_enabled_gpio3_clock(&self) -> bool
GPIO3 clock
pub fn enable_gpio3_clock(&self)
pub fn disable_gpio3_clock(&self)
Sourcepub fn is_enabled_gpio4_clock(&self) -> bool
pub fn is_enabled_gpio4_clock(&self) -> bool
GPIO4 clock
pub fn enable_gpio4_clock(&self)
pub fn disable_gpio4_clock(&self)
Sourcepub fn is_enabled_gpio5_clock(&self) -> bool
pub fn is_enabled_gpio5_clock(&self) -> bool
GPIO5 clock
pub fn enable_gpio5_clock(&self)
pub fn disable_gpio5_clock(&self)
pub fn is_enabled_gpt1_clock(&self) -> bool
pub fn enable_gpt1_clock(&self)
pub fn disable_gpt1_clock(&self)
pub fn is_enabled_gpt2_clock(&self) -> bool
pub fn enable_gpt2_clock(&self)
pub fn disable_gpt2_clock(&self)
pub fn is_enabled_lpi2c1_clock(&self) -> bool
pub fn enable_lpi2c1_clock(&self)
pub fn disable_lpi2c1_clock(&self)
pub fn is_enabled_lpuart1_clock(&self) -> bool
pub fn enable_lpuart1_clock(&self)
pub fn disable_lpuart1_clock(&self)
pub fn is_enabled_lpuart2_clock(&self) -> bool
pub fn enable_lpuart2_clock(&self)
pub fn disable_lpuart2_clock(&self)
pub fn is_enabled_uart_clock_mux(&self) -> bool
Sourcepub fn set_uart_clock_sel(&self, selection: UartClockSelection)
pub fn set_uart_clock_sel(&self, selection: UartClockSelection)
Set the UART clock selection
Should only be called when all UART clock gates are disabled
Sourcepub fn uart_clock_sel(&self) -> UartClockSelection
pub fn uart_clock_sel(&self) -> UartClockSelection
Returns the UART clock selection
Sourcepub fn set_uart_clock_podf(&self, divider: u32)
pub fn set_uart_clock_podf(&self, divider: u32)
Set the UART clock divider
divider
is a value bound by [1, 2^6].
Sourcepub fn uart_clock_podf(&self) -> u32
pub fn uart_clock_podf(&self) -> u32
Returns the UART clock divider
The return is a value bound by [1, 2^6].
Sourcepub fn perclk_sel(&self) -> PerclkClockSel
pub fn perclk_sel(&self) -> PerclkClockSel
Returns the selection for the periodic clock
Sourcepub fn set_perclk_sel(&self, sel: PerclkClockSel)
pub fn set_perclk_sel(&self, sel: PerclkClockSel)
Set the periodic clock selection
Sourcepub fn set_perclk_divider(&self, divider: u8)
pub fn set_perclk_divider(&self, divider: u8)
Set the periodic clock selection and divider
This should only be called when all associated clock gates are disabled.
divider
will be clamped between 1 and 64.
Sourcepub fn perclk_divider(&self) -> u8
pub fn perclk_divider(&self) -> u8
Returns the periodic clock divider, guaranteed to be non-zero
Sourcepub fn set_arm_divider(&self, divider: u32)
pub fn set_arm_divider(&self, divider: u32)
Set the ARM clock root divider
The ARM clock divider is just after the PLL1 output.
Clamps divider
between [1, 8].
Sourcepub fn arm_divider(&self) -> u32
pub fn arm_divider(&self) -> u32
Returns the ARM clock root divider
Sourcepub fn set_peripheral_clock2_divider(&self, divider: u32)
pub fn set_peripheral_clock2_divider(&self, divider: u32)
Set the PERIPH_CLK2 divider
Clamps divider
between [1, 8].
Sourcepub fn peripheral_clock2_divider(&self) -> u32
pub fn peripheral_clock2_divider(&self) -> u32
Returns the PERIPH_CLK2 divider
Sourcepub fn set_ahb_divider(&self, divider: u32)
pub fn set_ahb_divider(&self, divider: u32)
Set the AHB clock divider
Clamps divider
between [1, 8].
Sourcepub fn ahb_divider(&self) -> u32
pub fn ahb_divider(&self) -> u32
Returns the AHB clock divider
Sourcepub fn set_ipg_divider(&self, divider: u32)
pub fn set_ipg_divider(&self, divider: u32)
Sets the IPG clock divider
Clamps divider
between [1, 4].
Sourcepub fn set_peripheral_clock_selection(
&self,
selection: PeripheralClockSelection,
)
pub fn set_peripheral_clock_selection( &self, selection: PeripheralClockSelection, )
Set the peripheral clock selection
Sourcepub fn peripheral_clock_selection(&self) -> PeripheralClockSelection
pub fn peripheral_clock_selection(&self) -> PeripheralClockSelection
Returns the peripheral clock selection
Sourcepub fn set_pre_peripheral_clock_selection(
&self,
selection: PrePeripheralClockSelection,
)
pub fn set_pre_peripheral_clock_selection( &self, selection: PrePeripheralClockSelection, )
Set the pre-peripheral clock selection
Sourcepub fn pre_peripheral_clock_selection(&self) -> PrePeripheralClockSelection
pub fn pre_peripheral_clock_selection(&self) -> PrePeripheralClockSelection
Returns the pre-peripheral clock selection
Sourcepub fn set_peripheral_clock2_selection(
&self,
selection: PeripheralClock2Selection,
)
pub fn set_peripheral_clock2_selection( &self, selection: PeripheralClock2Selection, )
Set the peripheral clock 2 selection
Sourcepub fn peripheral_clock2_selection(&self) -> PeripheralClock2Selection
pub fn peripheral_clock2_selection(&self) -> PeripheralClock2Selection
Returns the selection for peripheral clock 2
Sourcepub fn enable_dcdc_clock(&self)
pub fn enable_dcdc_clock(&self)
Enable the DCDC clock gate
Sourcepub fn disable_dcdc_clock(&self)
pub fn disable_dcdc_clock(&self)
Disable the DCDC clock gate
Sourcepub fn is_enabled_dcdc_clock(&self) -> bool
pub fn is_enabled_dcdc_clock(&self) -> bool
Indicates if the DCDC clock gate is enaled
Sourcepub fn enable_dma_clock(&self)
pub fn enable_dma_clock(&self)
Enable the DMA clock gate
Sourcepub fn disable_dma_clock(&self)
pub fn disable_dma_clock(&self)
Disable the DMA clock gate
Sourcepub fn is_enabled_dma_clock(&self) -> bool
pub fn is_enabled_dma_clock(&self) -> bool
Indicates if the DMA clock gate is enabled