Type Alias d1_pac::plic::ctrl::CTRL_W

source ·
pub type CTRL_W<'a, const O: u8> = BitWriter<'a, u32, CTRL_SPEC, CTRL_A, O>;
Expand description

Field ctrl writer - PLIC Control

Aliased Type§

struct CTRL_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> CTRL_W<'a, O>

source

pub fn m(self) -> &'a mut W

Only the machine mode can access to all registers in PLIC. Supervisor mode can only access the interrupt threshold register and the interrupt response/completion register.

source

pub fn ms(self) -> &'a mut W

The machine mode and the supervisor mode can access all registers. CTRL is accessible only in the machine mode.