2021-06-21 00:50:23 +00:00
|
|
|
//
|
|
|
|
// EXDos.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 20/06/2021.
|
|
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2021-06-21 00:50:23 +00:00
|
|
|
|
|
|
|
#include "../../Components/1770/1770.hpp"
|
|
|
|
#include "../../Activity/Observer.hpp"
|
|
|
|
|
|
|
|
namespace Enterprise {
|
|
|
|
|
|
|
|
class EXDos final : public WD::WD1770 {
|
|
|
|
public:
|
|
|
|
EXDos();
|
|
|
|
|
|
|
|
void set_disk(std::shared_ptr<Storage::Disk::Disk> disk, size_t drive);
|
|
|
|
|
|
|
|
void set_control_register(uint8_t control);
|
|
|
|
uint8_t get_control_register();
|
|
|
|
|
2021-06-28 01:02:04 +00:00
|
|
|
void set_activity_observer(Activity::Observer *observer);
|
|
|
|
|
2021-06-21 00:50:23 +00:00
|
|
|
private:
|
2021-06-21 11:31:58 +00:00
|
|
|
bool disk_did_change_ = false;
|
2021-06-21 00:50:23 +00:00
|
|
|
|
|
|
|
void set_motor_on(bool on) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|