Type Alias esp32s2::interrupt_core0::clock_gate::W

source ·
pub type W = W<CLOCK_GATE_SPEC>;
Expand description

Register CLOCK_GATE writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn clk_en(&mut self) -> CLK_EN_W<'_, CLOCK_GATE_SPEC, 0>

Bit 0 - This bit is used to enable or disable the clock of interrupt matrix. 1: enable the clock. 0: disable the clock.

source

pub fn pro_nmi_mask_hw(&mut self) -> PRO_NMI_MASK_HW_W<'_, CLOCK_GATE_SPEC, 1>

Bit 1 - This bit is used to disable all NMI interrupt signals to CPU.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual