2017-02-19 23:55:54 +00:00
|
|
|
#ifndef __SLOT_H
|
|
|
|
#define __SLOT_H
|
|
|
|
|
|
|
|
#ifdef TEENSYDUINO
|
|
|
|
#include <Arduino.h>
|
|
|
|
#else
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
class Slot {
|
|
|
|
public:
|
2017-02-20 23:41:46 +00:00
|
|
|
virtual ~Slot() {};
|
2017-02-19 23:55:54 +00:00
|
|
|
|
2017-12-30 20:20:34 +00:00
|
|
|
virtual bool Serialize(int8_t fd) = 0;
|
|
|
|
virtual bool Deserialize(int8_t fd) = 0;
|
|
|
|
|
2017-02-19 23:55:54 +00:00
|
|
|
virtual void Reset() = 0; // for use at cold-boot
|
|
|
|
|
|
|
|
virtual uint8_t readSwitches(uint8_t s) = 0;
|
|
|
|
virtual void writeSwitches(uint8_t s, uint8_t v) = 0;
|
|
|
|
|
|
|
|
virtual void loadROM(uint8_t *toWhere) = 0;
|
2020-12-29 14:12:33 +00:00
|
|
|
|
|
|
|
virtual bool hasExtendedRom() { return false; };
|
|
|
|
virtual void loadExtendedRom(uint8_t *toWhere, uint16_t byteOffset) {};
|
2017-02-19 23:55:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|