OOStuBS - Technische Informatik II (TI-II)  2.4
interruptstorage.h
gehe zur Dokumentation dieser Datei
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2  * Technische Informatik II *
3  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
4  * *
5  * I N T E R R U P T _ S T O R A G E *
6  * *
7 \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8 
9 #ifndef __interrupt_storage_include__
10 #define __interrupt_storage_include__
11 
12 /* * * * * * * * * * * * * * * * * * * * * * * * *\
13 # INCLUDES #
14 \* * * * * * * * * * * * * * * * * * * * * * * * */
16 #include <config.h>
17 #include <common/panic.h>
18 
19 /* * * * * * * * * * * * * * * * * * * * * * * * *\
20 # CLASSES #
21 \* * * * * * * * * * * * * * * * * * * * * * * * */
38  protected:
42  static const int mMaxINum = MAX_INTERRUPT_NUMBER;
46  static const int mMinINum = MIN_INTERRUPT_NUMBER;
47 
52 
64 
65  static bool iNum2Index(int iNum, unsigned int& index);
66 
67  public:
80 
98  void assign(int iNum, InterruptHandler& handler) ;
99 
113  void handle(int iNum);
114 
121  bool currentInterrupt(int& iNum);
122  };
123 
124 #endif