Expand description
Parser for .d75 configuration files.
These files contain the complete radio configuration and can be saved (Menu No. 800) and loaded (Menu No. 810) from the microSD card. The data format is the same as the MCP-D75 PC application uses.
Per Operating Tips §5.14.3: it is recommended to export and save the configuration before performing a firmware upgrade, as the upgrade process may reset settings.
The file format is a 256-byte header followed by a raw memory image identical to what the MCP programming protocol reads.
§File Layout
| Offset | Size | Content |
|---|---|---|
| 0x000 | 0x100 | File header (model ID, metadata) |
| 0x100 | … | MCP memory image (settings, channels, names, etc.) |
Channel data lives at .d75 offset 0x100 + MCP offset. The exact
section layout is inferred from D74 development notes and adapted
for the D75’s expanded feature set.
Structs§
- Channel
Entry - A single memory channel combining frequency data, display name, and flags.
- Config
Header - Parsed
.d75configuration file header (256 bytes). - Radio
Config - Complete radio configuration from a
.d75file.
Constants§
- HEADER_
SIZE - Size of the
.d75file header in bytes. - MAX_
CHANNELS - Maximum number of memory channels on the TH-D75.
Functions§
- empty_
channel - Creates an empty
ChannelEntryfor the given channel number. - make_
channel - Creates a
ChannelEntrywith the given flash channel data. - make_
header - Creates a minimal valid
.d75header for the given model string. - parse_
config - Parses a
.d75configuration file from raw bytes. - write_
config - Generates a
.d75file from aRadioConfig. - write_
d75 - Write a
.d75configuration file from a raw memory image and header.