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
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Plus3_hpp
|
|
|
|
#define Plus3_hpp
|
|
|
|
|
|
|
|
#include "../../Components/1770/1770.hpp"
|
2018-05-11 01:54:10 +00:00
|
|
|
#include "../../Activity/Observer.hpp"
|
2016-09-26 01:24:16 +00:00
|
|
|
|
|
|
|
namespace Electron {
|
|
|
|
|
|
|
|
class Plus3 : public WD::WD1770 {
|
|
|
|
public:
|
2016-11-26 15:29:30 +00:00
|
|
|
Plus3();
|
|
|
|
|
2018-06-19 01:49:57 +00:00
|
|
|
void set_disk(std::shared_ptr<Storage::Disk::Disk> disk, size_t drive);
|
2016-09-26 01:24:16 +00:00
|
|
|
void set_control_register(uint8_t control);
|
2018-05-11 01:54:10 +00:00
|
|
|
void set_activity_observer(Activity::Observer *observer);
|
2016-09-26 01:24:16 +00:00
|
|
|
|
|
|
|
private:
|
2016-12-28 23:52:36 +00:00
|
|
|
void set_control_register(uint8_t control, uint8_t changes);
|
2017-09-01 02:29:24 +00:00
|
|
|
uint8_t last_control_ = 0;
|
2017-09-12 02:10:56 +00:00
|
|
|
|
|
|
|
void set_motor_on(bool on);
|
2018-06-19 01:49:57 +00:00
|
|
|
std::string drive_name(size_t drive);
|
2016-09-26 01:24:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* Plus3_hpp */
|
|
|
|
|