Friedrich-Alexander-Universität Erlangen-Nürnberg  /   Technische Fakultät  /   Department Informatik
hpet.h File Reference

The High Precision Event Timer (HPET). More...

#include "types.h"
Include dependency graph for hpet.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 HPET
 Abstraction of the HPET existing in "modern" computers (since ~2005)
 

Enumerations

enum  HPET::CounterSize { SIZE_32BIT = 0x0, SIZE_64BIT = 0x1 }
 Size of the global counter and the comparators.
 
enum  HPET::CounterStatus { DISABLED = 0x0, ENABLED = 0x1 }
 State (enabled/disabled) for the global counter (and the comparators).
 
enum  HPET::InterruptStatus { DISABLED = 0x0, ENABLED = 0x1 }
 Interrupt state (enabled/disabled) for the global counter (and the comparators).
 

Functions

bool HPET::init ()
 Initializes the HPET system. More...
 
void HPET::delay (unsigned usecs)
 Delays the caller's execution by approx. Actively waits by polling the main counter until at least the given micro seconds have passed. More...
 
bool HPET::isEnabled ()
 Checks whether the HPET system is enabled. More...
 
void HPET::enable ()
 Activate the HPET system. More...
 
void HPET::disable ()
 Deactivate the HPET system. More...
 

Detailed Description