Module output

Module output 

Source
Expand description

Pure format functions for every user-facing string.

Zero I/O, zero async, zero radio access. Tested directly with golden strings and the lint. Pure format functions for every user-facing REPL string.

Every function returns a String (or &'static str) - zero I/O, zero async, zero radio access. Testing happens directly on the returned strings plus the accessibility lint.

§Accessibility rules

Strings are designed for screen-reader output (blind operators) and fixed-width terminals:

  • Label-colon-value format (screen readers parse “Label: value” well)
  • Natural-language units (megahertz, watts, hertz — not symbols)
  • Booleans as words (on/off, not true/false or checkmarks)
  • Lines under 80 characters (no wrapping in standard terminals)
  • ASCII printable only (no box-drawing or symbols)

Functions§

aprs_digipeated
APRS packet relayed from {source}.
aprs_is_connected
APRS-IS connected. Forwarding RF to internet. Press Ctrl-C to stop.
aprs_is_incoming
APRS-IS incoming: {line}.
aprs_message_delivered
APRS message delivered, ID {id}.
aprs_message_expired
APRS message expired after all retries, ID {id}.
aprs_message_received
APRS message received for {addressee}: {text}.
aprs_message_rejected
APRS message rejected by remote station, ID {id}.
aprs_mode_active
APRS mode active. Type aprs stop to exit.
aprs_position
APRS position from {source}: latitude {lat}, longitude {lon}.
aprs_query_responded
APRS position query from {to}, responded with beacon.
aprs_raw_packet
APRS packet from {source}.
aprs_station_entry
Station {call}{pos}, {n} packets, heard {elapsed} ago.
aprs_station_heard
APRS station heard: {callsign}.
aprs_stations_summary
{count} stations heard.
aprs_weather
APRS weather report from {source}.
attenuator
Band {A|B} attenuator: {on|off}.
band_name
Human-readable band name. Matches the pre-extraction helper which returned “A” for Band::A and “B” for every other variant.
battery
Battery level: {level}.
battery_level_display
Human-readable battery level for screen reader speech.
bluetooth
Bluetooth: {on|off}.
channel_read
Channel {n}: {f} megahertz.
channels_reading
Reading channels {start} through {end}, please wait.
channels_summary
{count} programmed channels found. or No programmed channels in that range..
clock
Radio clock: {time}.
connected_via
Connected via {path}.
cq_set
Destination set to CQCQCQ.
dstar_command_callsign
D-STAR command: route to callsign {call}.
dstar_command_cq
D-STAR command: call CQ.
dstar_command_echo
D-STAR command: echo test.
dstar_command_info
D-STAR command: request info.
dstar_command_link
D-STAR command: link to {reflector} module {module}.
dstar_command_unlink
D-STAR command: unlink reflector.
dstar_gps
D-STAR GPS data: {text}. or D-STAR GPS position data received.
dstar_modem_status
D-STAR modem: buffer {n}, transmit {active|idle}.
dstar_station_heard
D-STAR station heard: {callsign}.
dstar_text_message
D-STAR message: "{text}"
dstar_voice_end
D-STAR voice transmission ended.
dstar_voice_lost
D-STAR voice signal lost, no clean end of transmission.
dstar_voice_start
D-STAR voice from {call}{/suffix}, to {ur}.
dual_band
Dual band: {on|off}.
error
Error: {message} - the canonical error prefix.
firmware_version
Firmware version: {version}.
fm_radio
FM radio: {on|off}.
fm_radio_set
FM radio set to {on|off}.
freq_mhz
Format a frequency in megahertz for natural speech output.
frequency
Band {A|B} frequency: {f} megahertz.
goodbye
Goodbye.
gps_config
GPS: {on|off}, PC output: {on|off}.
key_lock
Key lock: {on|off}.
mode_read
Band {A|B} mode: {mode} (for VFO readout - the full mode name comes from kenwood_thd75::types::Mode::fmt).
mode_set
Band {A|B} mode set to {mode}.
on_off
Render an on/off word from a bool.
power_level_display
Human-readable power level name with watts in full.
power_read
Band {A|B} power: {level}.
power_set
Band {A|B} power set to {level}.
radio_model
Radio model: {model}.
reflector_connected
Connected to {name} module {module}.
reflector_disconnected
Disconnected from reflector.
reflector_event_connected
Reflector: connected.
reflector_event_disconnected
Reflector: disconnected.
reflector_event_rejected
Reflector: connection rejected.
reflector_event_voice_end
Reflector: voice transmission ended.
reflector_event_voice_start
Reflector: voice from {call}{/suffix}, to {ur}.
smeter
Band {A|B} S-meter: {reading}.
squelch_read
Band {A|B} squelch level: {level} (0-5).
squelch_set
Band {A|B} squelch set to {level}.
startup_banner
Kenwood TH-D75 accessible radio control, version {version}.
startup_identified
Radio model: {model}. Firmware version: {fw}.
step_size_read
Band {A|B} step size: {step}.
step_size_set
Band {A|B} step size set to {step}.
stepped_down
Band {A|B} stepped down to {f} megahertz.
stepped_up
Band {A|B} stepped up to {f} megahertz.
tuned_to
Band {A|B} tuned to {f} megahertz.
tx_offset
Band {A|B} transmit offset: {hz} hertz.
type_help_hint
Type help for a list of commands, or quit to exit.
urcall_read
Destination callsign: {call} or ... suffix {suffix}.
urcall_set
Destination callsign set to {call}.
vox
VOX: {on|off}.
vox_delay_read
VOX delay: {level}.
vox_delay_set
VOX delay set to {level}.
vox_gain_read
VOX gain: {level}.
vox_gain_set
VOX gain set to {level}.
vox_set
VOX set to {on|off}.
warning
Warning: {message} - the canonical warning prefix.