SongYZZZ/moon-firmware/model does not have a README file
pub(all) enum ErrorCode {
InvalidDigit
InvalidLength
InvalidRecord
UnsupportedRecord
ChecksumMismatch
MissingTerminator
AfterTerminator
DuplicateRecord
CountMismatch
AddressOverflow
InvalidRange
AddressConflict
GapRequiresFill
ResourceLimit
InvalidOption
UnknownFormat
EntryConflict
Io
} derive(Eq, Debug)pub(all) struct FirmwareImage {
memory : MemoryMap
entry : EntryPoint?
metadata : Metadata
warnings : Array[Diagnostic]
}fn FirmwareImage::from_binary(bytes : Bytes, base_address : Int64) -> FirmwareImage raise FirmwareErrorpub struct MemoryMap {
// private fields
}fn MemoryMap::insert(self : MemoryMap, address : Int64, bytes : Bytes, policy? : OverlapPolicy) -> Unit raise FirmwareErrorfn MemoryMap::to_binary(self : MemoryMap, range : AddressRange, fill? : Byte, max_size? : Int) -> Bytes raise FirmwareErrorpub(all) struct Metadata {
source_format : Format
record_counts : Array[Int]
header : Bytes?
checksum_status : ChecksumStatus
} derive(Eq, Debug)pub(all) struct ParseOptions {
mode : ParseMode
overlap : OverlapPolicy
max_line_length : Int
max_records : Int
max_payload : Int
max_text_length : Int
max_warnings : Int
} derive(Eq, Debug)fn diagnostic(code : ErrorCode, message : String, address? : Int64, end_address? : Int64) -> Diagnosticfn hex_address(address : Int64) -> StringInstall
Download zipMCU firmware release validation: HEX, S-record, Cortex-M gates and flash plans
Dependencies