| 22 | } |
| 23 | |
| 24 | static int encode_data_gcr(uint8_t data) |
| 25 | { |
| 26 | switch (data) |
| 27 | { |
| 28 | #define GCR_ENTRY(gcr, data) \ |
| 29 | case data: \ |
| 30 | return gcr; |
| 31 | #include "data_gcr.h" |
| 32 | #undef GCR_ENTRY |
| 33 | } |
| 34 | return -1; |
| 35 | } |
| 36 | |
| 37 | static void write_bits( |
| 38 | std::vector<bool>& bits, unsigned& cursor, uint32_t data, int width) |