MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / tmate2SmallGlyph

Function tmate2SmallGlyph

src/core/HidEncoderManager.cpp:84–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84static SmallGlyph tmate2SmallGlyph(QChar ch)
85{
86 if (ch.isDigit()) {
87 const int digit = ch.digitValue();
88 return { kSmallHigh[digit], kSmallLow[digit] };
89 }
90
91 switch (ch.toLatin1()) {
92 case 'k':
93 case 'K':
94 // Seven-segment approximation: left strokes, center, and lower-right.
95 return { 0x20, 0xE0 };
96 case '-':
97 return { 0x00, 0x40 };
98 case ' ':
99 return { 0x00, 0x00 };
100 default:
101 return { 0x00, 0x00 };
102 }
103}
104
105// Indicator segment lookup: {byte_index, bitmask}.
106// Derived from USB captures (session_20260605_051711/segments_*.csv).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected