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

Handles 8 bit ports. More...

#include <port.h>

Inheritance diagram for MaxOS::hardwarecommunication::Port8Bit:
MaxOS::hardwarecommunication::Port MaxOS::hardwarecommunication::Port8BitSlow

Public Member Functions

 Port8Bit (uint16_t port_number)
 Construct a new Port object for ports handling 8 bit read/writes.
 
virtual void write (uint8_t data)
 write a byte to the port
 
virtual uint8_t read ()
 read a byte 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 8 bit ports.

Definition at line 32 of file port.h.

Constructor & Destructor Documentation

◆ Port8Bit()

Port8Bit::Port8Bit ( uint16_t  port_number)
explicit

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

Parameters
port_numberThe IO port number

Definition at line 30 of file port.cpp.

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

Member Function Documentation

◆ read()

◆ write()


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