21 #ifndef COSA_BLOCK4B5BCODEC_HH 22 #define COSA_BLOCK4B5BCODEC_HH 59 return (pgm_read_byte(&s_symbols[nibble & 0xf]));
70 return (pgm_read_byte(&s_codes[symbol &
SYMBOL_MASK]));
75 static const uint8_t s_symbols[] PROGMEM;
78 static const uint8_t s_codes[] PROGMEM;
81 static const uint8_t s_preamble[] PROGMEM;
virtual const uint8_t * preamble()
virtual uint8_t encode4(uint8_t nibble)
virtual uint8_t decode4(uint8_t symbol)
Codec(uint8_t bits_per_symbol, uint16_t start_symbol, uint8_t preamble_max=VWI::Transmitter::PREAMBLE_MAX)
const uint8_t SYMBOL_MASK