2020-11-21 02:37:17 +00:00
|
|
|
//
|
|
|
|
// DiskIIDrive.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 20/11/2020.
|
|
|
|
// Copyright © 2020 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2020-11-21 02:37:17 +00:00
|
|
|
|
|
|
|
#include "IWM.hpp"
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Apple::Disk {
|
2020-11-21 02:37:17 +00:00
|
|
|
|
|
|
|
class DiskIIDrive: public IWMDrive {
|
2024-11-30 20:53:58 +00:00
|
|
|
public:
|
|
|
|
DiskIIDrive(int input_clock_rate);
|
2020-11-21 02:37:17 +00:00
|
|
|
|
2024-11-30 20:53:58 +00:00
|
|
|
private:
|
|
|
|
void set_enabled(bool) final;
|
|
|
|
void set_control_lines(int) final;
|
|
|
|
bool read() final;
|
2020-11-21 02:37:17 +00:00
|
|
|
|
2024-11-30 20:53:58 +00:00
|
|
|
int stepper_mask_ = 0;
|
|
|
|
int stepper_position_ = 0;
|
2020-11-21 02:37:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|