pub struct ClockGate(pub u64);Expand description
Bit field mapping clock enable bits.
Tuple Fields§
§0: u64Implementations§
Source§impl ClockGate
impl ClockGate
Sourcepub fn sys_accessctrl(&self) -> bool
pub fn sys_accessctrl(&self) -> bool
Clock gate the hardware access control registers
Sourcepub fn sys_bootram(&self) -> bool
pub fn sys_bootram(&self) -> bool
Clock gate the Boot RAM
Sourcepub fn sys_busctrl(&self) -> bool
pub fn sys_busctrl(&self) -> bool
Clock gate the memory bus controller.
Sourcepub fn sys_busfabric(&self) -> bool
pub fn sys_busfabric(&self) -> bool
Clock gate the memory bus fabric.
Sourcepub fn sys_glitch_detector(&self) -> bool
pub fn sys_glitch_detector(&self) -> bool
Clock gate the Glitch Detector peripheral
Sourcepub fn sys_pll_sys(&self) -> bool
pub fn sys_pll_sys(&self) -> bool
Clock gate the system PLL.
Sourcepub fn sys_pll_usb(&self) -> bool
pub fn sys_pll_usb(&self) -> bool
Clock gate the USB PLL.
Sourcepub fn ref_powman(&self) -> bool
pub fn ref_powman(&self) -> bool
Clock gate the Power Manager
Sourcepub fn sys_powman(&self) -> bool
pub fn sys_powman(&self) -> bool
Clock gate the Power Manager
Sourcepub fn sys_resets(&self) -> bool
pub fn sys_resets(&self) -> bool
Clock gate the reset controller.
Sourcepub fn sys_sha256(&self) -> bool
pub fn sys_sha256(&self) -> bool
Clock gate the SHA256 peripheral
Sourcepub fn sys_syscfg(&self) -> bool
pub fn sys_syscfg(&self) -> bool
Clock gate the system configuration controller.
Sourcepub fn sys_sysinfo(&self) -> bool
pub fn sys_sysinfo(&self) -> bool
Clock gate the system information peripheral.
Sourcepub fn sys_timer0(&self) -> bool
pub fn sys_timer0(&self) -> bool
Clock gate the Timer 0 peripheral.
Sourcepub fn sys_timer1(&self) -> bool
pub fn sys_timer1(&self) -> bool
Clock gate the Timer 1 peripheral.
Sourcepub fn peri_uart0(&self) -> bool
pub fn peri_uart0(&self) -> bool
Clock gate UART0’s baud generation.
Sourcepub fn peri_uart1(&self) -> bool
pub fn peri_uart1(&self) -> bool
Clock gate UART1’s baud generation.
Sourcepub fn sys_usbctrl(&self) -> bool
pub fn sys_usbctrl(&self) -> bool
Clock gate the USB controller.
Sourcepub fn sys_watchdog(&self) -> bool
pub fn sys_watchdog(&self) -> bool
Clock gate the Watchdog controller.
Sourcepub fn set_sys_clock(&mut self, value: bool)
pub fn set_sys_clock(&mut self, value: bool)
Clock gate to the clock controller.
Sourcepub fn set_sys_accessctrl(&mut self, value: bool)
pub fn set_sys_accessctrl(&mut self, value: bool)
Clock gate the hardware access control registers
Sourcepub fn set_adc_adc(&mut self, value: bool)
pub fn set_adc_adc(&mut self, value: bool)
Clock gate to the adc analog logic.
Sourcepub fn set_sys_adc(&mut self, value: bool)
pub fn set_sys_adc(&mut self, value: bool)
Clock gate to the adc peripheral.
Sourcepub fn set_sys_bootram(&mut self, value: bool)
pub fn set_sys_bootram(&mut self, value: bool)
Clock gate the Boot RAM
Sourcepub fn set_sys_busctrl(&mut self, value: bool)
pub fn set_sys_busctrl(&mut self, value: bool)
Clock gate the memory bus controller.
Sourcepub fn set_sys_busfabric(&mut self, value: bool)
pub fn set_sys_busfabric(&mut self, value: bool)
Clock gate the memory bus fabric.
Sourcepub fn set_sys_dma(&mut self, value: bool)
pub fn set_sys_dma(&mut self, value: bool)
Clock gate the dma controller.
Sourcepub fn set_sys_glitch_detector(&mut self, value: bool)
pub fn set_sys_glitch_detector(&mut self, value: bool)
Clock gate the Glitch Detector peripheral
Sourcepub fn set_sys_hstx(&mut self, value: bool)
pub fn set_sys_hstx(&mut self, value: bool)
Clock gate the High-Speed TX peripheral
Sourcepub fn set_sys_i2c0(&mut self, value: bool)
pub fn set_sys_i2c0(&mut self, value: bool)
Clock gate I2C0.
Sourcepub fn set_sys_i2c1(&mut self, value: bool)
pub fn set_sys_i2c1(&mut self, value: bool)
Clock gate I2C1.
Sourcepub fn set_sys_io(&mut self, value: bool)
pub fn set_sys_io(&mut self, value: bool)
Clock gate the IO controller.
Sourcepub fn set_sys_jtag(&mut self, value: bool)
pub fn set_sys_jtag(&mut self, value: bool)
Clock gate the JTAG peripheral.
Sourcepub fn set_ref_otp(&mut self, value: bool)
pub fn set_ref_otp(&mut self, value: bool)
Clock gate the OTP (one-time programmable memory) peripheral
Sourcepub fn set_sys_otp(&mut self, value: bool)
pub fn set_sys_otp(&mut self, value: bool)
Clock gate the OTP (one-time programmable memory) peripheral
Sourcepub fn set_sys_pads(&mut self, value: bool)
pub fn set_sys_pads(&mut self, value: bool)
Clock gate pad controller.
Sourcepub fn set_sys_pio0(&mut self, value: bool)
pub fn set_sys_pio0(&mut self, value: bool)
Clock gate PIO0 peripheral.
Sourcepub fn set_sys_pio1(&mut self, value: bool)
pub fn set_sys_pio1(&mut self, value: bool)
Clock gate PIO1 peripheral.
Sourcepub fn set_sys_pio2(&mut self, value: bool)
pub fn set_sys_pio2(&mut self, value: bool)
Clock gate PIO2 peripheral.
Sourcepub fn set_sys_pll_sys(&mut self, value: bool)
pub fn set_sys_pll_sys(&mut self, value: bool)
Clock gate the system PLL.
Sourcepub fn set_sys_pll_usb(&mut self, value: bool)
pub fn set_sys_pll_usb(&mut self, value: bool)
Clock gate the USB PLL.
Sourcepub fn set_ref_powman(&mut self, value: bool)
pub fn set_ref_powman(&mut self, value: bool)
Clock gate the Power Manager
Sourcepub fn set_sys_powman(&mut self, value: bool)
pub fn set_sys_powman(&mut self, value: bool)
Clock gate the Power Manager
Sourcepub fn set_sys_pwm(&mut self, value: bool)
pub fn set_sys_pwm(&mut self, value: bool)
Clock gate PWM peripheral.
Sourcepub fn set_sys_resets(&mut self, value: bool)
pub fn set_sys_resets(&mut self, value: bool)
Clock gate the reset controller.
Sourcepub fn set_sys_rom(&mut self, value: bool)
pub fn set_sys_rom(&mut self, value: bool)
Clock gate the ROM.
Sourcepub fn set_sys_rosc(&mut self, value: bool)
pub fn set_sys_rosc(&mut self, value: bool)
Clock gate the ROSC controller (not the rosc itself).
Sourcepub fn set_sys_psm(&mut self, value: bool)
pub fn set_sys_psm(&mut self, value: bool)
Clock gate the Power State Machine
Sourcepub fn set_sys_sha256(&mut self, value: bool)
pub fn set_sys_sha256(&mut self, value: bool)
Clock gate the SHA256 peripheral
Sourcepub fn set_sys_sio(&mut self, value: bool)
pub fn set_sys_sio(&mut self, value: bool)
Clock gate the SIO controller.
Sourcepub fn set_peri_spi0(&mut self, value: bool)
pub fn set_peri_spi0(&mut self, value: bool)
Clock gate SPI0’s baud generation.
Sourcepub fn set_sys_spi0(&mut self, value: bool)
pub fn set_sys_spi0(&mut self, value: bool)
Clock gate SPI0’s controller..
Sourcepub fn set_peri_spi1(&mut self, value: bool)
pub fn set_peri_spi1(&mut self, value: bool)
Clock gate SPI1’s baud generation.
Sourcepub fn set_sys_spi1(&mut self, value: bool)
pub fn set_sys_spi1(&mut self, value: bool)
Clock gate SPI1’s controller..
Sourcepub fn set_sys_sram0(&mut self, value: bool)
pub fn set_sys_sram0(&mut self, value: bool)
Clock gate SRAM0.
Sourcepub fn set_sys_sram1(&mut self, value: bool)
pub fn set_sys_sram1(&mut self, value: bool)
Clock gate SRAM1.
Sourcepub fn set_sys_sram2(&mut self, value: bool)
pub fn set_sys_sram2(&mut self, value: bool)
Clock gate SRAM2.
Sourcepub fn set_sys_sram3(&mut self, value: bool)
pub fn set_sys_sram3(&mut self, value: bool)
Clock gate SRAM3.
Sourcepub fn set_sys_sram4(&mut self, value: bool)
pub fn set_sys_sram4(&mut self, value: bool)
Clock gate SRAM4.
Sourcepub fn set_sys_sram5(&mut self, value: bool)
pub fn set_sys_sram5(&mut self, value: bool)
Clock gate SRAM5.
Sourcepub fn set_sys_sram6(&mut self, value: bool)
pub fn set_sys_sram6(&mut self, value: bool)
Clock gate SRAM6
Sourcepub fn set_sys_sram7(&mut self, value: bool)
pub fn set_sys_sram7(&mut self, value: bool)
Clock gate SRAM7
Sourcepub fn set_sys_sram8(&mut self, value: bool)
pub fn set_sys_sram8(&mut self, value: bool)
Clock gate SRAM8
Sourcepub fn set_sys_sram9(&mut self, value: bool)
pub fn set_sys_sram9(&mut self, value: bool)
Clock gate SRAM9
Sourcepub fn set_sys_syscfg(&mut self, value: bool)
pub fn set_sys_syscfg(&mut self, value: bool)
Clock gate the system configuration controller.
Sourcepub fn set_sys_sysinfo(&mut self, value: bool)
pub fn set_sys_sysinfo(&mut self, value: bool)
Clock gate the system information peripheral.
Sourcepub fn set_sys_tbman(&mut self, value: bool)
pub fn set_sys_tbman(&mut self, value: bool)
Clock gate the test bench manager.
Sourcepub fn set_ref_ticks(&mut self, value: bool)
pub fn set_ref_ticks(&mut self, value: bool)
Clock gate the tick generator
Sourcepub fn set_sys_ticks(&mut self, value: bool)
pub fn set_sys_ticks(&mut self, value: bool)
Clock gate the tick generator
Sourcepub fn set_sys_timer0(&mut self, value: bool)
pub fn set_sys_timer0(&mut self, value: bool)
Clock gate the Timer 0 peripheral.
Sourcepub fn set_sys_timer1(&mut self, value: bool)
pub fn set_sys_timer1(&mut self, value: bool)
Clock gate the Timer 1 peripheral.
Sourcepub fn set_sys_trng(&mut self, value: bool)
pub fn set_sys_trng(&mut self, value: bool)
Clock gate the TrustZone Random Number Generator
Sourcepub fn set_peri_uart0(&mut self, value: bool)
pub fn set_peri_uart0(&mut self, value: bool)
Clock gate UART0’s baud generation.
Sourcepub fn set_sys_uart0(&mut self, value: bool)
pub fn set_sys_uart0(&mut self, value: bool)
Clock gate UART0’s controller.
Sourcepub fn set_peri_uart1(&mut self, value: bool)
pub fn set_peri_uart1(&mut self, value: bool)
Clock gate UART1’s baud generation.
Sourcepub fn set_sys_uart1(&mut self, value: bool)
pub fn set_sys_uart1(&mut self, value: bool)
Clock gate UART1’s controller.
Sourcepub fn set_sys_usbctrl(&mut self, value: bool)
pub fn set_sys_usbctrl(&mut self, value: bool)
Clock gate the USB controller.
Sourcepub fn set_sys_watchdog(&mut self, value: bool)
pub fn set_sys_watchdog(&mut self, value: bool)
Clock gate the Watchdog controller.
Sourcepub fn set_sys_xip(&mut self, value: bool)
pub fn set_sys_xip(&mut self, value: bool)
.Clock gate the XIP controller.
Sourcepub fn set_sys_xosc(&mut self, value: bool)
pub fn set_sys_xosc(&mut self, value: bool)
Clock gate the XOSC controller (not xosc itself).
Trait Implementations§
Source§impl<T> BitRangeMut<T> for ClockGatewhere
u64: BitRangeMut<T>,
impl<T> BitRangeMut<T> for ClockGatewhere
u64: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Auto Trait Implementations§
impl Freeze for ClockGate
impl RefUnwindSafe for ClockGate
impl Send for ClockGate
impl Sync for ClockGate
impl Unpin for ClockGate
impl UnwindSafe for ClockGate
Blanket Implementations§
Source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more