2016-09-25 21:24:16 -04:00
|
|
|
//
|
|
|
|
// Plus3.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 25/09/2016.
|
2018-05-13 15:19:52 -04:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-09-25 21:24:16 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Plus3_hpp
|
|
|
|
#define Plus3_hpp
|
|
|
|
|
|
|
|
#include "../../Components/1770/1770.hpp"
|
2018-05-10 21:54:10 -04:00
|
|
|
#include "../../Activity/Observer.hpp"
|
2016-09-25 21:24:16 -04:00
|
|
|
|
|
|
|
namespace Electron {
|
|
|
|
|
2020-05-30 00:37:06 -04:00
|
|
|
class Plus3 final : public WD::WD1770 {
|
2016-09-25 21:24:16 -04:00
|
|
|
public:
|
2016-11-26 23:29:30 +08:00
|
|
|
Plus3();
|
|
|
|
|
2018-06-18 21:49:57 -04:00
|
|
|
void set_disk(std::shared_ptr<Storage::Disk::Disk> disk, size_t drive);
|
2016-09-25 21:24:16 -04:00
|
|
|
void set_control_register(uint8_t control);
|
2018-05-10 21:54:10 -04:00
|
|
|
void set_activity_observer(Activity::Observer *observer);
|
2016-09-25 21:24:16 -04:00
|
|
|
|
|
|
|
private:
|
2016-12-28 18:52:36 -05:00
|
|
|
void set_control_register(uint8_t control, uint8_t changes);
|
2017-08-31 22:29:24 -04:00
|
|
|
uint8_t last_control_ = 0;
|
2017-09-11 22:10:56 -04:00
|
|
|
|
2020-05-30 00:37:06 -04:00
|
|
|
void set_motor_on(bool on) override;
|
2018-06-18 21:49:57 -04:00
|
|
|
std::string drive_name(size_t drive);
|
2016-09-25 21:24:16 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Plus3_hpp */
|
|
|
|
|