Module config

Module config 

Source
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

OffsetSizeContent
0x0000x100File header (model ID, metadata)
0x100MCP 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§

ChannelEntry
A single memory channel combining frequency data, display name, and flags.
ConfigHeader
Parsed .d75 configuration file header (256 bytes).
RadioConfig
Complete radio configuration from a .d75 file.

Constants§

HEADER_SIZE
Size of the .d75 file header in bytes.
MAX_CHANNELS
Maximum number of memory channels on the TH-D75.

Functions§

empty_channel
Creates an empty ChannelEntry for the given channel number.
make_channel
Creates a ChannelEntry with the given flash channel data.
make_header
Creates a minimal valid .d75 header for the given model string.
parse_config
Parses a .d75 configuration file from raw bytes.
write_config
Generates a .d75 file from a RadioConfig.
write_d75
Write a .d75 configuration file from a raw memory image and header.