OOStuBS - Technische Informatik II (TI-II)
2.4
|
#include <pit.h>
Klassen | |
union | PitControlByte |
Öffentliche Methoden | |
unsigned short | interval () |
void | interval (unsigned short us) |
PIT () | |
virtual | ~PIT () |
Private Typen | |
enum | Counters { counter0, counter1, counter2 } |
enum | CountModes { intOnTerminal, hwOneShot, rateGen, squareWave, swStrobe, hwStrobe } |
enum | CountTypes { binary, bcd } |
enum | Parameters { timestep = 838, maxUS = 0xFFFFUL*timestep/1000 } |
enum | Ports { counter0Port = 0x40, counter1Port = 0x41, counter2Port = 0x42, ctrl0Port = 0x43, counter3Port = 0x48, counter4Port = 0x49, counter5Port = 0x4A, ctrl1Port = 0x4B } |
enum | RWTypes { latch, lowOnly, highOnly, lowThenHigh } |
Private Attribute | |
unsigned short | currIntervall |
union PIT::PitControlByte | pcb |
Class PIT implements the 'Programmable Interval Timer' used to programm the timer interrupt.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
PIT::PIT | ( | ) |
|
virtual |
unsigned short PIT::interval | ( | ) |
Method 'interval()' returns the timer interval of the PIT.
Definiert in Zeile 38 der Datei pit.cc.
void PIT::interval | ( | unsigned short | us | ) |
Method 'interval()' implements the programming of the timer interrupt using IO_Ports.
us | timer interval (int) |
Definiert in Zeile 22 der Datei pit.cc.
|
private |