Module memory

Module memory 

Source
Expand description

Typed access to the TH-D75 memory image.

Parses raw memory bytes (from MCP programming or .d75 files) into structured Rust types for every radio subsystem. The memory image is 500,480 bytes (1,955 pages of 256 bytes) and is identical whether read via the MCP binary protocol or extracted from a .d75 SD card config file (after stripping the 256-byte file header).

§Design

MemoryImage owns the raw byte buffer and hands out lightweight accessor structs (ChannelAccess, SettingsAccess, etc.) that borrow into it. No data is copied on access — parsing happens on-demand when you call methods on the accessors.

Mutation works the same way: call a mutable accessor, modify a field, and the change is written directly into the backing buffer. When you are done, call MemoryImage::into_raw to get the bytes back for writing to the radio or saving to a .d75 file.

Re-exports§

pub use aprs::AprsAccess;
pub use channels::ChannelAccess;
pub use channels::ChannelWriter;
pub use dstar::DstarAccess;
pub use gps::GpsAccess;
pub use settings::SettingsAccess;
pub use settings::SettingsWriter;

Modules§

aprs
Typed access to the APRS configuration region of the memory image.
channels
Typed access to channel data within a memory image.
dstar
Typed access to the D-STAR configuration region of the memory image.
gps
Typed access to the GPS configuration region of the memory image.
settings
Typed access to the system settings region of the memory image.

Structs§

MemoryImage
A parsed TH-D75 memory image providing typed access to all settings.

Enums§

MemoryError
Errors that can occur when working with a memory image.