2020-01-06 01:05:55 +00:00
|
|
|
//
|
|
|
|
// Jasmin.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 05/01/2020.
|
|
|
|
// Copyright © 2020 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Jasmin_hpp
|
|
|
|
#define Jasmin_hpp
|
|
|
|
|
|
|
|
#include "../../Components/1770/1770.hpp"
|
|
|
|
#include "../../Activity/Observer.hpp"
|
2020-01-15 03:23:00 +00:00
|
|
|
#include "DiskController.hpp"
|
2020-01-06 01:05:55 +00:00
|
|
|
|
|
|
|
namespace Oric {
|
|
|
|
|
2020-01-15 03:23:00 +00:00
|
|
|
class Jasmin: public DiskController {
|
2020-01-06 01:05:55 +00:00
|
|
|
public:
|
|
|
|
Jasmin();
|
|
|
|
|
|
|
|
void write(int address, uint8_t value);
|
|
|
|
|
2020-01-16 04:39:15 +00:00
|
|
|
void set_activity_observer(Activity::Observer *observer);
|
|
|
|
|
2020-01-06 01:05:55 +00:00
|
|
|
private:
|
2020-01-06 02:35:20 +00:00
|
|
|
void set_motor_on(bool on) final;
|
|
|
|
bool motor_on_ = false;
|
2020-01-16 04:39:15 +00:00
|
|
|
|
|
|
|
Activity::Observer *observer_ = nullptr;
|
2020-01-06 01:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* Jasmin_hpp */
|