From f2e1584275be524b2d8de9f333a452cec9a325f2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 16 Oct 2019 23:21:25 -0400 Subject: [PATCH] Starts working on the GPIP functionality block. --- Components/68901/MFP68901.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Components/68901/MFP68901.hpp b/Components/68901/MFP68901.hpp index 13d5f0b1c..d27839765 100644 --- a/Components/68901/MFP68901.hpp +++ b/Components/68901/MFP68901.hpp @@ -15,6 +15,16 @@ namespace Motorola { namespace MFP68901 { +class PortHandler { + public: + /*! + Requests the current input on the GPIP port. + */ + virtual uint8_t get_port_input() { + return 0xff; + } +}; + class MFP68901 { public: uint8_t read(int address); @@ -25,6 +35,10 @@ class MFP68901 { void set_timer_event_input(int channel, bool value); + void set_port_handler(PortHandler *); + void set_port_input(uint8_t); + uint8_t get_port_output(); + private: // MARK: - Timers enum class TimerMode {