![]() |
Max OS 0.3
|
Handles 16 bit ports. More...
#include <port.h>
Public Member Functions | |
| Port16Bit (uint16_t port_number) | |
| Construct a new Port object for ports handling 16 bit read/writes. | |
| virtual void | write (uint16_t data) |
| write a word to the port | |
| virtual uint16_t | read () |
| read a word from the port | |
Additional Inherited Members | |
Protected Member Functions inherited from MaxOS::hardwarecommunication::Port | |
| Port (uint16_t port_number) | |
| Construct a new Port object. | |
Protected Attributes inherited from MaxOS::hardwarecommunication::Port | |
| uint16_t | m_port_number |
| The port to write to / read from. | |
|
explicit |
|
virtual |
read a word from the port
Definition at line 105 of file port.cpp.
References MaxOS::hardwarecommunication::Port::m_port_number.
Referenced by MaxOS::drivers::ethernet::AMD_AM79C973::activate(), MaxOS::drivers::ethernet::AMD_AM79C973::AMD_AM79C973(), MaxOS::drivers::ethernet::AMD_AM79C973::handle_interrupt(), MaxOS::drivers::disk::AdvancedTechnologyAttachment::identify(), MaxOS::drivers::disk::AdvancedTechnologyAttachment::read(), and MaxOS::drivers::ethernet::AMD_AM79C973::reset().
|
virtual |
write a word to the port
| data | the word to write |
Definition at line 95 of file port.cpp.
References MaxOS::hardwarecommunication::Port::m_port_number.
Referenced by MaxOS::drivers::ethernet::AMD_AM79C973::activate(), MaxOS::drivers::ethernet::AMD_AM79C973::AMD_AM79C973(), MaxOS::drivers::ethernet::AMD_AM79C973::do_send(), MaxOS::drivers::ethernet::AMD_AM79C973::handle_interrupt(), MaxOS::drivers::ethernet::AMD_AM79C973::reset(), and MaxOS::drivers::disk::AdvancedTechnologyAttachment::write().