22 #ifndef COSA_VIRTUALWIRECODEC_HH 23 #define COSA_VIRTUALWIRECODEC_HH 59 return (pgm_read_byte(&s_symbols[nibble & 0xf]));
67 virtual uint8_t
decode4(uint8_t symbol);
71 static const uint8_t s_symbols[] PROGMEM;
74 static const uint8_t s_preamble[] PROGMEM;
virtual uint8_t decode4(uint8_t symbol)
virtual const uint8_t * preamble()
Codec(uint8_t bits_per_symbol, uint16_t start_symbol, uint8_t preamble_max=VWI::Transmitter::PREAMBLE_MAX)
virtual uint8_t encode4(uint8_t nibble)