mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
33 lines
639 B
C++
33 lines
639 B
C++
//
|
|
// MFM.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 18/09/2016.
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Storage_Disk_Encodings_MFM_hpp
|
|
#define Storage_Disk_Encodings_MFM_hpp
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#import "../Disk.hpp"
|
|
|
|
namespace Storage {
|
|
namespace Encodings {
|
|
namespace MFM {
|
|
|
|
struct Sector {
|
|
uint8_t track, side, sector;
|
|
std::vector<uint8_t> data;
|
|
};
|
|
|
|
std::shared_ptr<Storage::Disk::Track> GetMFMTrackWithSectors(const std::vector<Sector> §ors);
|
|
std::shared_ptr<Storage::Disk::Track> GetFMTrackWithSectors(const std::vector<Sector> §ors);
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /* MFM_hpp */
|