Package intelhex :: Class Record
[hide private]
[frames] | no frames]

Class Record

source code

object --+
         |
        Record

Helper methods to build valid ihex records.
Instance Methods [hide private]

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
 
_from_bytes(bytes)
Takes a list of bytes, computes the checksum, and outputs the entire record as a string.
source code
 
data(offset, bytes)
Return Data record.
source code
 
eof()
Return End of File record as a string.
source code
 
extended_segment_address(usba)
Return Extended Segment Address Record.
source code
 
start_segment_address(cs, ip)
Return Start Segment Address Record.
source code
 
extended_linear_address(ulba)
Return Extended Linear Address Record.
source code
 
start_linear_address(eip)
Return Start Linear Address Record.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_from_bytes(bytes)
Static Method

source code 
Takes a list of bytes, computes the checksum, and outputs the entire record as a string. bytes should be the hex record without the colon or final checksum.
Parameters:
  • bytes - list of byte values so far to pack into record.
Returns:
String representation of one HEX record

data(offset, bytes)
Static Method

source code 
Return Data record. This constructs the full record, including the length information, the record type (0x00), the checksum, and the offset.
Parameters:
  • offset - load offset of first byte.
  • bytes - list of byte values to pack into record.
Returns:
String representation of one HEX record

eof()
Static Method

source code 
Return End of File record as a string.
Returns:
String representation of Intel Hex EOF record

extended_segment_address(usba)
Static Method

source code 
Return Extended Segment Address Record.
Parameters:
  • usba - Upper Segment Base Address.
Returns:
String representation of Intel Hex USBA record.

start_segment_address(cs, ip)
Static Method

source code 
Return Start Segment Address Record.
Parameters:
  • cs - 16-bit value for CS register.
  • ip - 16-bit value for IP register.
Returns:
String representation of Intel Hex SSA record.

extended_linear_address(ulba)
Static Method

source code 
Return Extended Linear Address Record.
Parameters:
  • ulba - Upper Linear Base Address.
Returns:
String representation of Intel Hex ELA record.

start_linear_address(eip)
Static Method

source code 
Return Start Linear Address Record.
Parameters:
  • eip - 32-bit linear address for the EIP register.
Returns:
String representation of Intel Hex SLA record.