#[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
const DELIVERY_STATUS_BITS: usize = 1usize
const DELIVERY_STATUS_OFFSET: usize = 12usize
const MASKED_BITS: usize = 1usize
const MASKED_OFFSET: usize = 16usize
const TIMER_MODE_BITS: usize = 2usize
const TIMER_MODE_OFFSET: usize = 17usize
sourceconst fn vector(&self) -> u8
const fn vector(&self) -> u8
This vector in the IDT will be activated for the timer interrupt.
Bits: 0..8
sourceconst fn with_vector_checked(self, value: u8) -> Result<Self, ()>
const fn with_vector_checked(self, value: u8) -> Result<Self, ()>
This vector in the IDT will be activated for the timer interrupt.
Bits: 0..8
sourceconst fn with_vector(self, value: u8) -> Self
const fn with_vector(self, value: u8) -> Self
This vector in the IDT will be activated for the timer interrupt.
Bits: 0..8
sourcefn set_vector(&mut self, value: u8)
fn set_vector(&mut self, value: u8)
This vector in the IDT will be activated for the timer interrupt.
Bits: 0..8
sourcefn set_vector_checked(&mut self, value: u8) -> Result<(), ()>
fn set_vector_checked(&mut self, value: u8) -> Result<(), ()>
This vector in the IDT will be activated for the timer interrupt.
Bits: 0..8
sourceconst fn delivery_status(&self) -> bool
const fn delivery_status(&self) -> bool
Whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourceconst fn with_delivery_status_checked(self, value: bool) -> Result<Self, ()>
const fn with_delivery_status_checked(self, value: bool) -> Result<Self, ()>
Whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourceconst fn with_delivery_status(self, value: bool) -> Self
const fn with_delivery_status(self, value: bool) -> Self
Whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourcefn set_delivery_status(&mut self, value: bool)
fn set_delivery_status(&mut self, value: bool)
Whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourcefn set_delivery_status_checked(&mut self, value: bool) -> Result<(), ()>
fn set_delivery_status_checked(&mut self, value: bool) -> Result<(), ()>
Whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourceconst fn with_masked_checked(self, value: bool) -> Result<Self, ()>
const fn with_masked_checked(self, value: bool) -> Result<Self, ()>
Mask (disables) or unmask timer interrupts.
Bits: 16..17
sourceconst fn with_masked(self, value: bool) -> Self
const fn with_masked(self, value: bool) -> Self
Mask (disables) or unmask timer interrupts.
Bits: 16..17
sourcefn set_masked(&mut self, value: bool)
fn set_masked(&mut self, value: bool)
Mask (disables) or unmask timer interrupts.
Bits: 16..17
sourcefn set_masked_checked(&mut self, value: bool) -> Result<(), ()>
fn set_masked_checked(&mut self, value: bool) -> Result<(), ()>
Mask (disables) or unmask timer interrupts.
Bits: 16..17
sourceconst fn timer_mode(&self) -> TimerMode
const fn timer_mode(&self) -> TimerMode
Timer mode.
Bits: 17..19
sourceconst fn with_timer_mode_checked(self, value: TimerMode) -> Result<Self, ()>
const fn with_timer_mode_checked(self, value: TimerMode) -> Result<Self, ()>
Timer mode.
Bits: 17..19
sourceconst fn with_timer_mode(self, value: TimerMode) -> Self
const fn with_timer_mode(self, value: TimerMode) -> Self
Timer mode.
Bits: 17..19
sourcefn set_timer_mode(&mut self, value: TimerMode)
fn set_timer_mode(&mut self, value: TimerMode)
Timer mode.
Bits: 17..19
sourcefn set_timer_mode_checked(&mut self, value: TimerMode) -> Result<(), ()>
fn set_timer_mode_checked(&mut self, value: TimerMode) -> Result<(), ()>
Timer mode.
Bits: 17..19
Trait Implementations§
impl Copy for TimerCtrl
Auto Trait Implementations§
impl Freeze for TimerCtrl
impl RefUnwindSafe for TimerCtrl
impl Send for TimerCtrl
impl Sync for TimerCtrl
impl Unpin for TimerCtrl
impl UnwindSafe for TimerCtrl
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)