LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
logicalaccess::ManchesterEncoder Class Reference

#include <utils.hpp>

Public Types

enum  Type { G_E_THOMAS , IEEE_802 }
 

Static Public Member Functions

template<typename BitSet >
static std::bitset< DoubleValue< GetBitSetSize< BitSet >::Length >::Value > encode (const BitSet &in, Type t)
 
static ByteVector encode (const ByteVector &in, Type t)
 
static ByteVector decode (const ByteVector &in, Type t)
 

Detailed Description

An helper class to perform Manchester encoding/decoding.

See http://eleif.net/manchester.html for an online encoder.

Member Enumeration Documentation

◆ Type

Enumerator
G_E_THOMAS 
IEEE_802 

Member Function Documentation

◆ decode()

ByteVector logicalaccess::ManchesterEncoder::decode ( const ByteVector in,
Type  t 
)
static

◆ encode() [1/2]

template<typename BitSet >
static std::bitset< DoubleValue< GetBitSetSize< BitSet >::Length >::Value > logicalaccess::ManchesterEncoder::encode ( const BitSet &  in,
Type  t 
)
inlinestatic

Encode a bitset, returns a bitset twice as large.

◆ encode() [2/2]

ByteVector logicalaccess::ManchesterEncoder::encode ( const ByteVector in,
Type  t 
)
static

The documentation for this class was generated from the following files: