CTRL_R

Type Alias CTRL_R 

Source
pub type CTRL_R = BitReader<CTRL_A>;
Expand description

Field ctrl reader - PLIC Control

Aliased Type§

pub struct CTRL_R { /* private fields */ }

Implementations§

Source§

impl CTRL_R

Source

pub const fn variant(&self) -> CTRL_A

Get enumerated values variant

Source

pub fn is_m(&self) -> bool

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 is_ms(&self) -> bool

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