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

Function tmate2Seg

src/core/HidEncoderManager.cpp:163–167  ·  view source on GitHub ↗

Set or clear one segment bit in the LCDVector.

Source from the content-addressed store, hash-verified

161
162// Set or clear one segment bit in the LCDVector.
163static void tmate2Seg(uint8_t* v, SegEntry s, bool on)
164{
165 if (on) v[s.byte] |= s.mask;
166 else v[s.byte] &= static_cast<uint8_t>(~s.mask);
167}
168
169// Convert dBm to S-meter bargraph bar count (0-15).
170// S1(-121 dBm)=1, S9(-73 dBm)=9; above S9: +10 dB per bar up to S9+60 dB(=15).

Callers 8

setSmeterScaleSegsFunction · 0.85
applyModeSegsFunction · 0.85
openMethod · 0.85
setTMate2IndicatorsMethod · 0.85
clearTMate2IndicatorsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected