21 #ifndef COSA_BITSTUFFINGCODEC_HH 22 #define COSA_BITSTUFFINGCODEC_HH 60 return (((nibble & 0xf) << 1) + ((nibble & 0x1) == 0));
71 return ((symbol >> 1) & 0xf);
76 static const uint8_t s_preamble[] PROGMEM;
virtual const uint8_t * preamble()
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)
virtual uint8_t encode4(uint8_t nibble)