Module decode

Module decode 

Source
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 packet to 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 text in this field’s color, or return it unchanged when the output is not colorized.