#include <Block4B5BCodec.hh>
Block Coding 4 to 5 bit codec for the Cosa VWI (Virtual Wire Interface).
Definition at line 30 of file Block4B5BCodec.hh.
Block4B5BCodec::Block4B5BCodec |
( |
| ) |
|
|
inline |
Construct block 4b5b codec with given bits per symbol, start symbol, and preamble size.
Definition at line 36 of file Block4B5BCodec.hh.
virtual uint8_t Block4B5BCodec::decode4 |
( |
uint8_t |
symbol | ) |
|
|
inlinevirtual |
Returns 4-bit data for given block 5-bit symbol.
- Parameters
-
- Returns
- 4-bit data.
Implements VWI::Codec.
Definition at line 68 of file Block4B5BCodec.hh.
virtual uint8_t VWI::Codec::decode8 |
( |
uint16_t |
symbol | ) |
|
|
inlinevirtualinherited |
Decode two packed symbols (max 16-bit) back to 8 bits (byte) of data.
- Parameters
-
- Returns
- data.
Definition at line 136 of file VWI.hh.
virtual uint8_t Block4B5BCodec::encode4 |
( |
uint8_t |
nibble | ) |
|
|
inlinevirtual |
Returns block 5-bit symbol for given 4-bit data.
- Parameters
-
- Returns
- 5-bit bitstuffed code.
Implements VWI::Codec.
Definition at line 57 of file Block4B5BCodec.hh.
virtual const uint8_t* Block4B5BCodec::preamble |
( |
| ) |
|
|
inlinevirtual |
Returns pointer to 4B5B frame preamble in program memory.
- Returns
- pointer.
Implements VWI::Codec.
Definition at line 46 of file Block4B5BCodec.hh.
const uint16_t VWI::Codec::BITS_MSB |
|
inherited |
Symbol MSB.
Definition at line 91 of file VWI.hh.
const uint8_t VWI::Codec::BITS_PER_SYMBOL |
|
inherited |
Bits per symbol.
Definition at line 76 of file VWI.hh.
const uint8_t VWI::Codec::PREAMBLE_MAX |
|
inherited |
Size of preamble with start symbol. Should be less or equal to Transmitter::PREAMBLE_MAX.
Definition at line 85 of file VWI.hh.
const uint16_t VWI::Codec::START_SYMBOL |
|
inherited |
Start symbol.
Definition at line 79 of file VWI.hh.
const uint8_t VWI::Codec::SYMBOL_MASK |
|
inherited |
Symbol mask.
Definition at line 88 of file VWI.hh.
The documentation for this class was generated from the following files: