12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #define CMD_GET_INFO 0
- #define CMD_SEEK 1
- #define CMD_SIDE 2
- #define CMD_SET_DELAYS 3
- #define CMD_GET_DELAYS 4
- #define CMD_MOTOR 5
- #define CMD_READ_FLUX 6
- #define CMD_WRITE_FLUX 7
- #define CMD_GET_FLUX_STATUS 8
- #define CMD_GET_READ_INFO 9
- #define CMD_UPDATE 1
- #define ACK_OKAY 0
- #define ACK_BAD_COMMAND 1
- #define ACK_NO_INDEX 2
- #define ACK_NO_TRK0 3
- #define ACK_FLUX_OVERFLOW 4
- #define ACK_FLUX_UNDERFLOW 5
- #define ACK_WRPROT 6
- #define BAUD_CLEAR_COMMS 10000
- struct __packed gw_info {
- uint8_t fw_major;
- uint8_t fw_minor;
- uint8_t max_rev;
- uint8_t max_cmd;
- uint32_t sample_freq;
- };
|