fmpat.h 405 B

123456789101112131415161718192021222324
  1. #if BITS_PER_PATTERN_BYTE == 1
  2. static const uint8_t fm_pat[2] = {
  3. 0xff, 0x0f
  4. };
  5. #elif BITS_PER_PATTERN_BYTE == 2
  6. static const uint8_t fm_pat[4] = {
  7. 0x0f, 0xf3, 0xcf, 0x33
  8. };
  9. #elif BITS_PER_PATTERN_BYTE == 4
  10. static const uint8_t fm_pat[16] = {
  11. 0x33, 0xcd, 0xcb, 0x35, 0xd3, 0x2d, 0x2b, 0xd5, 0xb3, 0x4d, 0x4b, 0xb5, 0x53, 0xad, 0xab, 0x55
  12. };
  13. #else
  14. #error "Invalid BITS_PER_PATTERN_BYTE"
  15. #endif