mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 23:32:28 +00:00
40 lines
582 B
C++
40 lines
582 B
C++
//
|
|
// CommodoreTAP.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 25/06/2016.
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef CommodoreTAP_hpp
|
|
#define CommodoreTAP_hpp
|
|
|
|
#include "../Tape.hpp"
|
|
#include <stdint.h>
|
|
|
|
namespace Storage {
|
|
|
|
class CommodoreTAP: public Tape {
|
|
public:
|
|
CommodoreTAP(const char *file_name);
|
|
~CommodoreTAP();
|
|
|
|
Pulse get_next_pulse();
|
|
void reset();
|
|
|
|
enum {
|
|
ErrorNotCommodoreTAP
|
|
};
|
|
|
|
private:
|
|
FILE *_file;
|
|
bool _updated_layout;
|
|
uint32_t _file_size;
|
|
|
|
Pulse _current_pulse;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* CommodoreTAP_hpp */
|