OOStuBS - Technische Informatik II (TI-II)
2.4
Hauptseite
Zusätzliche Informationen
Klassen
Dateien
Auflistung der Dateien
Datei-Elemente
include
common
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
\* * * * * * * * * * * * * * * * * * * * * * * * */
15
#include "
common/interrupthandler.h
"
16
#include <
config.h
>
17
#include <
common/panic.h
>
18
19
/* * * * * * * * * * * * * * * * * * * * * * * * *\
20
# CLASSES #
21
\* * * * * * * * * * * * * * * * * * * * * * * * */
37
class
InterruptStorage
{
38
protected
:
42
static
const
int
mMaxINum
=
MAX_INTERRUPT_NUMBER
;
46
static
const
int
mMinINum
=
MIN_INTERRUPT_NUMBER
;
47
51
Panic
panic
;
52
63
InterruptHandler
*
mHandler
[
mMaxINum
-
mMinINum
];
64
65
static
bool
iNum2Index
(
int
iNum,
unsigned
int
& index);
66
67
public
:
79
InterruptStorage
();
80
98
void
assign
(
int
iNum,
InterruptHandler
& handler) ;
99
113
void
handle
(
int
iNum);
114
121
bool
currentInterrupt
(
int
& iNum);
122
};
123
124
#endif
Erzeugt am Mon Jun 30 2014 07:13:28 für OOStuBS - Technische Informatik II (TI-II) von
1.8.1.2