2016-09-26 01:24:16 +00:00
|
|
|
//
|
|
|
|
// Plus3.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 25/09/2016.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-09-26 01:24:16 +00:00
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2016-09-26 01:24:16 +00:00
|
|
|
|
2024-03-04 16:31:25 +00:00
|
|
|
#include "../../../Components/1770/1770.hpp"
|
|
|
|
#include "../../../Activity/Observer.hpp"
|
2016-09-26 01:24:16 +00:00
|
|
|
|
|
|
|
namespace Electron {
|
|
|
|
|
2020-05-30 04:37:06 +00:00
|
|
|
class Plus3 final : public WD::WD1770 {
|
2024-12-02 02:44:14 +00:00
|
|
|
public:
|
|
|
|
Plus3();
|
2016-11-26 15:29:30 +00:00
|
|
|
|
2024-12-02 02:44:14 +00:00
|
|
|
void set_disk(std::shared_ptr<Storage::Disk::Disk>, size_t drive);
|
|
|
|
void set_control_register(uint8_t control);
|
|
|
|
void set_activity_observer(Activity::Observer *);
|
2016-09-26 01:24:16 +00:00
|
|
|
|
2024-12-02 02:44:14 +00:00
|
|
|
private:
|
|
|
|
void set_control_register(uint8_t control, uint8_t changes);
|
|
|
|
uint8_t last_control_ = 0;
|
2017-09-12 02:10:56 +00:00
|
|
|
|
2024-12-02 02:44:14 +00:00
|
|
|
void set_motor_on(bool) override;
|
|
|
|
std::string drive_name(size_t);
|
2016-09-26 01:24:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|