#[repr(transparent)]struct TimerCtrl(u32);
Expand description
LApic timer control register, R/W
Tuple Fields§
§0: u32
Implementations§
source§impl TimerCtrl
impl TimerCtrl
const VECTOR_BITS: usize = 8usize
const VECTOR_OFFSET: usize = 0usize
sourceconst fn with_vector(self, value: u8) -> Self
const fn with_vector(self, value: u8) -> Self
Bits: 0..8
sourcefn set_vector(&mut self, value: u8)
fn set_vector(&mut self, value: u8)
Bits: 0..8
const DELIVERY_STATUS_BITS: usize = 1usize
const DELIVERY_STATUS_OFFSET: usize = 12usize
sourceconst fn with_delivery_status(self, value: bool) -> Self
const fn with_delivery_status(self, value: bool) -> Self
Bits: 12..13
sourceconst fn delivery_status(&self) -> bool
const fn delivery_status(&self) -> bool
Bits: 12..13
sourcefn set_delivery_status(&mut self, value: bool)
fn set_delivery_status(&mut self, value: bool)
Bits: 12..13
const MASKED_BITS: usize = 1usize
const MASKED_OFFSET: usize = 16usize
sourceconst fn with_masked(self, value: bool) -> Self
const fn with_masked(self, value: bool) -> Self
Bits: 16..17
sourcefn set_masked(&mut self, value: bool)
fn set_masked(&mut self, value: bool)
Bits: 16..17
const TIMER_MODE_BITS: usize = 2usize
const TIMER_MODE_OFFSET: usize = 17usize
sourceconst fn with_timer_mode(self, value: TimerMode) -> Self
const fn with_timer_mode(self, value: TimerMode) -> Self
Bits: 17..19
sourceconst fn timer_mode(&self) -> TimerMode
const fn timer_mode(&self) -> TimerMode
Bits: 17..19
sourcefn set_timer_mode(&mut self, value: TimerMode)
fn set_timer_mode(&mut self, value: TimerMode)
Bits: 17..19