Expand description
Rendering one captured radio frame: the decode summary, the options that are present, and a hex dump grouped and tinted by field.
EnumsΒ§
- Field
- A header field, used both to color its bytes in the hex dump and to color the decoded value that came out of those bytes.
ConstantsΒ§
- HEX_
WIDTH π - Visible hex columns per line, chosen so a full-size LoRa frame wraps but a typical one stays on a single line.
- LEGEND π
- UNENCRYPTED_
SGR π - Bold white on red. Encryption is the norm, so nothing marks it; it is cleartext that has to be impossible to scroll past.
FunctionsΒ§
- callsign_
text π - field_
map π - Attribute every byte of
packetto the field it belongs to. - hex_
lines π - hex_
text π - option_
chip π - options_
line π - Render the options that are actually present, decoding each oneβs value.
- print_
frame - Print the decode summary, the present options, and the hex dump.
- print_
hex π - Render the hex dump, grouped by field.
- print_
legend - route_
text π - Render a route option as its list of router hints.
- should_
display - source_
text π - Render the source address: a hint, a full key, or an acknowledgement that it is sealed.
- summary_
line π - Build the one-line decode summary: what it is, who it is between, and the security and framing state that applies to it.
- tint π
- Wrap
textin this fieldβs color, or return it unchanged when the output is not colorized.