srex

Crates.iosrex
lib.rssrex
version0.1.0
sourcesrc
created_at2024-07-10 15:11:28.235622
updated_at2024-07-10 15:11:28.235622
descriptionLibrary for managing SRecord files.
homepage
repositoryhttps://github.com/krabbstek/srex
max_upload_size
id1298412
size83,602
(krabbstek)

documentation

README

Srex

Srex is a library for parsing SRec files.

Example

use std::{fs, str::FromStr};
use srex::srecord::SRecordFile;

let srecord_str = fs::read_to_string("path/to/file.s37").unwrap();
let srecord_file = SRecordFile::from_str(&srecord_str).unwrap();

// Get data at address 0x123
let x: u8 = srecord_file[0x123];
println!("Data at address 0x123: {x}");

:warning: This tool is currently being built and may see large changes in future commits.

Commit count: 87

cargo fmt