Struct acpi::hpet::HpetInfo

source ·
pub struct HpetInfo {
    pub event_timer_block_id: u32,
    pub base_address: usize,
    pub hpet_number: u8,
    pub clock_tick_unit: u16,
    pub page_protection: PageProtection,
}
Expand description

Information about the High Precision Event Timer (HPET)

Fields§

§event_timer_block_id: u32§base_address: usize§hpet_number: u8§clock_tick_unit: u16

The minimum number of clock ticks that can be set without losing interrupts (for timers in Periodic Mode)

§page_protection: PageProtection

Implementations§

source§

impl HpetInfo

source

pub fn new<H>(tables: &AcpiTables<H>) -> Result<HpetInfo, AcpiError>where H: AcpiHandler,

source

pub fn hardware_rev(&self) -> u8

source

pub fn num_comparators(&self) -> u8

source

pub fn main_counter_is_64bits(&self) -> bool

source

pub fn legacy_irq_capable(&self) -> bool

source

pub fn pci_vendor_id(&self) -> u16

Trait Implementations§

source§

impl Debug for HpetInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.