#[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 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(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
const DELIVERY_STATUS_BITS: usize = 1usize
const DELIVERY_STATUS_OFFSET: usize = 12usize
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(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
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
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
const TIMER_MODE_BITS: usize = 2usize
const TIMER_MODE_OFFSET: usize = 17usize
sourceconst fn timer_mode(&self) -> TimerMode
const fn timer_mode(&self) -> TimerMode
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
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
Mutably borrows from an owned value. Read more
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>,
Casts the value.
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>
Casts the value.
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.