mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
default USB port only gets about 500kB/s write bandwidth. However, when plugged into a port with 850kB/s, I still get underrun errors...
20 lines
574 B
C++
20 lines
574 B
C++
#ifndef USB_H
|
|
#define USB_H
|
|
|
|
class Fluxmap;
|
|
class Bytes;
|
|
|
|
extern int usbGetVersion();
|
|
extern void usbRecalibrate();
|
|
extern void usbSeek(int track);
|
|
extern nanoseconds_t usbGetRotationalPeriod();
|
|
extern void usbTestBulkWrite();
|
|
extern void usbTestBulkRead();
|
|
extern Bytes usbRead(int side, bool synced, nanoseconds_t readTime);
|
|
extern void usbWrite(int side, const Bytes& bytes);
|
|
extern void usbErase(int side);
|
|
extern void usbSetDrive(int drive, bool high_density, int index_mode);
|
|
extern void usbMeasureVoltages(struct voltages_frame* voltages);
|
|
|
|
#endif
|