Files
dsd-fme/src/ezpwd/serialize_definitions
lwvmobile 90700e7d28 Phase 2 Audio Decoding
Phase 2 Audio Decoding Implemented

XDMA decoder class implemented and set to default (-ft)
--decoder class includes P25 1, 2, DMR BS/MS, and X2-TDMA
-- -fr -T option reworked, -T now for Per Call, use -ft (default)

Force Privacy Key
--force privacy key use over system FID and SVC options.

Per call now works on XDMA decoding and NXDN decoding

Limited Phase 1 TSBK and Phase 2 LCCH handling (for Network Status Broadcast)
--Need to get WACN, SYSID, and CC values for Phase 2 descrambling

Fix most of the compiler warnings
2022-09-17 11:44:45 -04:00

58 lines
1.7 KiB
Plaintext

//
// The encoder/decoder tables for all ezpwd::serialize::... base<N> codecs
//
// Must be included in exactly one C++ compilation unit.
//
#ifndef _EZPWD_SERIALIZE_DEFINITIONS
#define _EZPWD_SERIALIZE_DEFINITIONS
#include "serialize"
//
// base<16> tables for RFC4864 standard
//
const constexpr std::array<char,16>
ezpwd::serialize::hex<16>::encoder;
const constexpr std::array<char,127>
ezpwd::serialize::hex<16>::decoder;
//
// base<32> tables for RFC4864 standard, and the Hex32, EZPWD and Crockford codecs
//
const constexpr std::array<char,32>
ezpwd::serialize::hex<32>::encoder;
const constexpr std::array<char,127>
ezpwd::serialize::hex<32>::decoder;
const constexpr std::array<char,32>
ezpwd::serialize::standard<32>::encoder;
const constexpr std::array<char,127>
ezpwd::serialize::standard<32>::decoder;
const constexpr std::array<char,32>
ezpwd::serialize::ezpwd<32>::encoder;
const constexpr std::array<char,127>
ezpwd::serialize::ezpwd<32>::decoder;
const constexpr std::array<char,32>
ezpwd::serialize::crockford<32>::encoder;
const constexpr std::array<char,127>
ezpwd::serialize::crockford<32>::decoder;
//
// base<64> tables for RFC4864 standard (regular and url), and the EZPWD codecs
//
const constexpr std::array<char,64>
ezpwd::serialize::standard<64>::encoder;
const constexpr std::array<char,127>
ezpwd::serialize::standard<64>::decoder;
const constexpr std::array<char,64>
ezpwd::serialize::standard_url<64>::encoder;
const constexpr std::array<char,127>
ezpwd::serialize::standard_url<64>::decoder;
const constexpr std::array<char,64>
ezpwd::serialize::ezpwd<64>::encoder;
const constexpr std::array<char,127>
ezpwd::serialize::ezpwd<64>::decoder;
#endif // _EZPWD_SERIALIZE_DEFINITIONS