1#if !defined(_RADIOLIB_ITA2_STRING_H)
2#define _RADIOLIB_ITA2_STRING_H
4#include "../../TypeDef.h"
6#define RADIOLIB_ITA2_FIGS 0x1B
7#define RADIOLIB_ITA2_LTRS 0x1F
8#define RADIOLIB_ITA2_LENGTH 32
13static const char ITA2Table[RADIOLIB_ITA2_LENGTH][2] RADIOLIB_NONVOLATILE = {
14 {
'\0',
'\0'}, {
'E',
'3'}, {
'\n',
'\n'}, {
'A',
'-'}, {
' ',
' '}, {
'S',
'\''}, {
'I',
'8'}, {
'U',
'7'},
15 {
'\r',
'\r'}, {
'D', 0x05}, {
'R',
'4'}, {
'J',
'\a'}, {
'N',
','}, {
'F',
'!'}, {
'C',
':'}, {
'K',
'('},
16 {
'T',
'5'}, {
'Z',
'+'}, {
'L',
')'}, {
'W',
'2'}, {
'H', 0x7F}, {
'Y',
'6'}, {
'P',
'0'}, {
'Q',
'1'},
17 {
'O',
'9'}, {
'B',
'?'}, {
'G',
'&'}, {0x7F, 0x7F}, {
'M',
'.'}, {
'X',
'/'}, {
'V',
';'}, {0x7F, 0x7F}
71 #if RADIOLIB_STATIC_ONLY
72 char strAscii[RADIOLIB_STATIC_ARRAY_SIZE];
79 static uint16_t getBits(
char c);
ITA2-encoded string.
Definition ITA2String.h:24
uint8_t * byteArr()
Gets the ITA2 representation of the ASCII string set in constructor.
Definition ITA2String.cpp:62
size_t length()
Gets the length of the ITA2 string. This number is not the same as the length of ASCII-encoded string...
Definition ITA2String.cpp:50
ITA2String & operator=(const ITA2String &ita2)
Overload for assignment operator.
Definition ITA2String.cpp:32
~ITA2String()
Default destructor.
Definition ITA2String.cpp:44