COSA
An Object-Oriented Platform for Arduino Programming
BitstuffingCodec.cpp
Go to the documentation of this file.
1 
21 #include "BitstuffingCodec.hh"
22 
23 /*
24  * Calculating the start symbol (5-bits per symbol):
25  * 0xa, 0x1a => 01010.11010 => 11010.01010 => 11.0100.1010 => 0x34a
26  */
27 const uint8_t BitstuffingCodec::s_preamble[] __PROGMEM = {
28  0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x1a
29 };
const uint8_t BitstuffingCodec::s_preamble[] __PROGMEM