Interim but working support for crunched data streams when reading from the

device; writes haven't been converted yet. Reduces the bandiwidth from about
800kB/s to about 500kB/s, which is about what I thought.
This commit is contained in:
David Given
2019-03-26 23:03:19 +01:00
parent 0453837c03
commit bcc5a5f2cd
13 changed files with 290 additions and 27 deletions

View File

@@ -2,13 +2,14 @@
#define USB_H
class Fluxmap;
class Bytes;
extern int usbGetVersion();
extern void usbRecalibrate();
extern void usbSeek(int track);
extern nanoseconds_t usbGetRotationalPeriod();
extern void usbTestBulkTransport();
extern std::unique_ptr<Fluxmap> usbRead(int side, int revolutions);
extern Bytes usbRead(int side, int revolutions);
extern void usbWrite(int side, const Fluxmap& fluxmap);
extern void usbErase(int side);
extern void usbSetDrive(int drive, bool high_density);