Go to the documentation of this file.
18 #ifndef __LIBARCH_TIMER_H
19 #define __LIBARCH_TIMER_H
97 const Size msecOffset = 0);
Size getFrequency() const
Get timer frequency.
Size m_int
Timer interrupt number.
virtual Result stop()
Stop the timer.
virtual Result start()
Start the timer.
Size m_ticks
The current timer ticks.
virtual Result wait(u32 microseconds) const
Busy wait a number of microseconds.
Timer information structure.
Represents a configurable timer device.
Size m_frequency
Frequency of the Timer.
virtual Result setFrequency(Size hertz)
Set timer frequency.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
virtual Result initialize()
Initialize the timer.
bool isExpired(const Info &info) const
Check if a timer value is expired.
Size getInterrupt() const
Get timer interrupt number.
virtual Result getCurrent(Info *info, const Size msecOffset=0)
Get current timer info.
virtual Result tick()
Process timer tick.