Class PIT
Placement in the overall structure
- Module
- machine
- Base classes
- None
- Derived classes
- Watch
- Time of creation
- Task 5
- Files
pit.h pit.cc
Description
The PIT class controls the PC's Programmable Interval Timer (PIT).
Public methods
PIT (int us)
- The timer is initialised in the constructor in such a way that it regularly triggers interrupts
at intervals of approx. us microseconds. Since the resolution of the timer component
is a maximum of 838 nanoseconds, it is not possible to make a completely exact setting in the
microsecond range.
int interval ()
- Indicates which interrupt interval was set.
void interval (int us)
- Sets a new interrupt interval.