Expand description
Pure-logic CAT (Computer Aided Transceiver) command codec.
This module handles serialization and parsing of the TH-D75’s serial
command protocol. Commands are ASCII text terminated by carriage return
(\r), with parameters separated by commas. The protocol layer has no
async or I/O dependencies — it operates purely on byte slices.
All 55 CAT commands (53 from the firmware dispatch table, plus 2 extra
mnemonics TY and 0E) are represented as variants of Command (outgoing) and Response
(incoming). Use serialize and parse to convert between typed
representations and wire format.
Re-exports§
pub use codec::Codec;
Modules§
- aprs
- APRS-related commands: AS (TNC baud), AE (serial info), PT (beacon type), MS (position source).
- bluetooth
- Bluetooth commands: BT.
- codec
- Frame-level codec for
\r-terminated CAT protocol messages. - control
- Control commands: AI, BY, DL, DW, RX, TX, LC, IO, BL, BE, VD, VG, VX.
- core
- Core commands: FQ, FO, FV, PS, ID, PC, BC, VM, FR (FM radio).
- dstar
- D-STAR (Digital Smart Technologies for Amateur Radio) commands: DS, CS, GW.
- gps
- GPS commands: GP, GM, GS.
- memory
- Memory commands: ME, MR, 0M.
- programming
- Binary programming protocol for MCP (Memory Control Program) access.
- scan
- Scan commands: SR, SF, BS.
- sd
- SD card commands: SD.
- service
- Service mode commands: 0G, 0Y, 0S, 0R, 0W, 1A, 1D, 1E, 1I, 1N, 1U, 1V, 1W, 1F, 9E, 9R, 2V, 1G, 1C.
- tone
- TNC, D-STAR callsign, and real-time clock commands: TN, DC, RT.
- user
- User/extra commands: US, TY, 0E.
- vfo
- VFO (Variable Frequency Oscillator) commands: AG, SQ, SM, MD, FS, FT, SH, UP, RA.
Enums§
Functions§
- command_
name - Get the CAT mnemonic for a command (for logging).
- parse
- Parse a response frame (without trailing
\r) into a typedResponse. - serialize
- Serialize a command to wire format (bytes ending with
\r).