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

Function parseIfBody

tests/CAT_Flex_test.cpp:248–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246};
247
248static IfFields parseIfBody(const QString& body)
249{
250 IfFields f;
251 if (body.size() != 35) return f;
252 f.freq_hz = body.mid(0, 11);
253 f.step = body.mid(11, 5);
254 f.rit_hz = body.mid(16, 6);
255 f.rit_on = body[22];
256 f.xit = body[23];
257 f.mem = body.mid(24, 2);
258 f.tx = body[26];
259 f.mode = body[27];
260 f.func = body[28];
261 f.scan = body[29];
262 f.split = body[30];
263 f.tone = body[31];
264 f.ctcss = body.mid(32, 2);
265 f.dcs = body[34];
266 f.valid = true;
267 return f;
268}
269
270static const QSet<QString> kValidIDs = {
271 QStringLiteral("ID904"), QStringLiteral("ID905"), QStringLiteral("ID906"),

Callers 3

section6Function · 0.70
section10pttFunction · 0.70
section14cwFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected