Aufgabe 7: Anwendung
IOPort Class Reference
Abstracts access to the I/O address space. More...
#include <machine/ioport.h>
| Public Member Functions | |
| IOPort (uint16_t addr) | |
| Constructor.  More... | |
| void | outb (uint8_t val) const | 
| Write one byte to the I/O port.  More... | |
| void | outw (uint16_t val) const | 
| Write one word (2 bytes) to the I/O port.  More... | |
| uint8_t | inb () const | 
| Read one byte from the I/O port.  More... | |
| uint16_t | inw () const | 
| Read one word (2 bytes) from the I/O port.  More... | |
Detailed Description
Abstracts access to the I/O address space.
x86 PCs have a separated I/O address space that is accessible only via the machine instructions in and out. An IOPort object encapsulates the corresponding address in the I/O address space and can be used for byte or word-wise reading or writing. 
Constructor & Destructor Documentation
| 
 | inlineexplicit | 
Constructor.
- Parameters
- 
  addr Address from the I/O address space 
Member Function Documentation
| 
 | inline | 
Write one byte to the I/O port.
- Parameters
- 
  val The value to be written 
| 
 | inline | 
Write one word (2 bytes) to the I/O port.
- Parameters
- 
  val The value to be written 
| 
 | inline | 
Read one byte from the I/O port.
- Returns
- Read byte
| 
 | inline | 
Read one word (2 bytes) from the I/O port.
- Returns
- Read word (2 bytes)
The documentation for this class was generated from the following file:
- machine/ioport.h