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

Function tmate2WriteSmallDisplayText

src/core/HidEncoderManager.cpp:344–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344static void tmate2WriteSmallDisplayText(uint8_t* v, const QString& text)
345{
346 const QString clean = text.left(3).rightJustified(3, QLatin1Char(' '));
347 for (int d = 1; d <= 3; ++d) {
348 uint8_t hi = static_cast<uint8_t>(21 + 2 * d);
349 uint8_t lo = static_cast<uint8_t>(22 + 2 * d);
350 const SmallGlyph glyph = tmate2SmallGlyph(clean.at(3 - d));
351 v[hi] &= 0x0Fu;
352 v[lo] &= 0x1Fu;
353 v[hi] |= glyph.high;
354 v[lo] |= glyph.low;
355 }
356}
357
358} // namespace
359

Callers 2

setTMate2DisplayTextMethod · 0.85

Calls 1

tmate2SmallGlyphFunction · 0.85

Tested by

no test coverage detected