[]Struct sunrise_kernel::devices::hpet::HpetIdRegister

pub struct HpetIdRegister(pub u32);

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>, 

impl Clone for HpetIdRegister[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]

impl<T> Bit for T where
    T: BitRange<u8>, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.