IntelHex class

This is used to create the hex file that uploads to the device.

IntelHex(
  offset,
  padding
)

Constructors

IntelHex({int offset = 0, int padding = 0})

Properties

buffer Map<int, int>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isab int
getter/setter pair
isao int
getter/setter pair
ismn int
getter/setter pair
ismno int
getter/setter pair
largest int
getter/setter pair
offset int
getter/setter pair
padding int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s132EndAddress int
getter/setter pair
s1x0EndAddress int
getter/setter pair
startAddr int?
getter/setter pair
startAddress Map<String, int>?
getter/setter pair

Methods

addressHasMagicNumber(int address) bool
Does the address have the magic number
bufferToHex({bool writeStartAddr = true, EOLStyle eolstyle = EOLStyle.native, int byteCount = 16}) String
Write data to file f in HEX format.
getEndAddress() int
Get the end of the hex file address
getHexFile() String
Create a String to place in the file from the buffer to hex
gets(int addr, int length) int
get the buffer at this address
getsAsList(int addr, int length) Uint8List
get this buffer list from this address up to this length
getSoftDeviceVariant() SoftDeviceVariant
Get the soft device to place into the hex file
maxaddr() int
Max address of the hex file
merge(IntelHex other, [Overlap overlap = Overlap.error]) → void
Merge content of other IntelHex object into current object (self). other other IntelHex object. overlap action on overlap of data or starting addr: - error: raising OverlapError; - ignore: ignore other data and keep current data in overlapping region; - replace: replace data with other data in overlapping region. @raise TypeError if other is not instance of IntelHex @raise ValueError if other is the same object as self (it can't merge itself) @raise ValueError if overlap argument has incorrect value @raise AddressOverlapError on overlapped data
minaddr() int
The min address for the hex file after the soft device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
puts(int addr, Uint8List s) → void
put this list in the buffer starting at this address
setSubList(int startAddress, [int? endAddress, int step = 1]) → void
Set the buffer with this new start address and the step
toBinArray({int? start, int? end, int? pad, int? size, bool isApplication = false}) Uint8List
Place the hex file into a binary array
todict() Map<dynamic, int>
Convert to buffer dictionary. return new buffer.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int addr) int
operator []=(int addr, int value) → void

Static Methods

decodeRecord(String data) IntelHex
Decode the hex record to be combined with other portions of the software
fromfile(String filePath) IntelHex
Convert hex file to IntelHex
hexlify(List<int> hexList) String
Convert List int to hex string
hexToBin(String data) Uint8List
Place the hex file into a binary array
mergeHex(List<String?> fileData) String
Merge hex files to one file
unhexlify(String hexString) List<int>
Change the file from hex to bin