[−]Struct sunrise_kernel::devices::hpet::HpetIdRegister
Represent the lower part of the General Capabilities and ID Register.
Implementations
impl HpetIdRegister
pub fn revision_id(&self) -> u32
Indicates which revision of the function is implemented; must not be 0.
pub fn timer_count_minus_one(&self) -> u32
The amount of timers - 1.
pub fn counter_size_capability(&self) -> bool
If this bit is 1, HPET main counter is capable of operating in 64 bit mode.
pub fn legacy_rt_capability(&self) -> bool
If this bit is 1, HPET is capable of using "legacy replacement" mapping.
pub fn vendor_id(&self) -> u32
Represent the HPET vendor id (most likely PCI vendor id?)
Trait Implementations
impl<T> BitRange<T> for HpetIdRegister where
u32: BitRange<T>,
u32: BitRange<T>,
fn bit_range(&self, msb: usize, lsb: usize) -> T
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
impl Clone for HpetIdRegister[src]
fn clone(&self) -> HpetIdRegister[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for HpetIdRegister[src]
impl Debug for HpetIdRegister[src]
Auto Trait Implementations
impl RefUnwindSafe for HpetIdRegister
impl Send for HpetIdRegister
impl Sync for HpetIdRegister
impl Unpin for HpetIdRegister
impl UnwindSafe for HpetIdRegister
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Bit for T where
T: BitRange<u8>,
T: BitRange<u8>,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,