Accessor for I/O-Space.
Mehr ...
#include <io_port.h>
Öffentliche Methoden |
unsigned char | inb () const |
| read a byte value from the associated port.
|
unsigned short | inw () const |
| read a word value from the associated port.
|
| IO_Port (unsigned short a) |
| Default constructor setting the port.
|
void | outb (unsigned char val) const |
| write a byte value to the associated port.
|
void | outw (unsigned short val) const |
| write a word value to the associated port.
|
Private Attribute |
unsigned short | address |
| adress of the port in the I/O adress space
|
Ausführliche Beschreibung
Accessor for I/O-Space.
Every computer uses a separate I/O memory that is only adressable by the methods 'in'
and 'out'
. Each instance of IO_Port is an abstraction of an adress in that memory. Using those abstractions adresses in memory can be accessed like ports.
Definiert in Zeile 19 der Datei io_port.h.
Beschreibung der Konstruktoren und Destruktoren
IO_Port::IO_Port |
( |
unsigned short |
a | ) |
|
|
inline |
Default constructor setting the port.
Definiert in Zeile 25 der Datei io_port.h.
Dokumentation der Elementfunktionen
unsigned char IO_Port::inb |
( |
| ) |
const |
|
inline |
read a byte value from the associated port.
- Rückgabe
- the read byte value
Definiert in Zeile 53 der Datei io_port.h.
unsigned short IO_Port::inw |
( |
| ) |
const |
|
inline |
read a word value from the associated port.
- Rückgabe
- the read word value
Definiert in Zeile 69 der Datei io_port.h.
void IO_Port::outb |
( |
unsigned char |
val | ) |
const |
|
inline |
write a byte value to the associated port.
- Parameter
-
Definiert in Zeile 31 der Datei io_port.h.
void IO_Port::outw |
( |
unsigned short |
val | ) |
const |
|
inline |
write a word value to the associated port.
- Parameter
-
Definiert in Zeile 42 der Datei io_port.h.
Dokumentation der Datenelemente
unsigned short IO_Port::address |
|
private |
adress of the port in the I/O adress space
Definiert in Zeile 22 der Datei io_port.h.
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: