Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::hardwarecommunication::Port16Bit Class Reference

Handles 16 bit ports. More...

#include <port.h>

Inheritance diagram for MaxOS::hardwarecommunication::Port16Bit:
MaxOS::hardwarecommunication::Port

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.
 

Detailed Description

Handles 16 bit ports.

Definition at line 57 of file port.h.

Constructor & Destructor Documentation

◆ Port16Bit()

Port16Bit::Port16Bit ( uint16_t  port_number)
explicit

Construct a new Port object for ports handling 16 bit read/writes.

Parameters
port_numberThe IO port number

Definition at line 84 of file port.cpp.

85: Port(port_number) {
86}
base class for all ports
Definition port.h:20

Member Function Documentation

◆ read()

uint16_t Port16Bit::read ( )
virtual

◆ write()


The documentation for this class was generated from the following files: