Package vstruct :: Package defs :: Module ihex :: Class IHexFile
[hide private]
[frames] | no frames]

Class IHexFile

source code


Instance Methods [hide private]
 
vsParse(self, bytes, offset=0)
For all the primitives contained within, allow them an opportunity to parse the given data and return the total offset...
source code
 
getEntryPoint(self)
If a 32bit linear start address is defined for this file, return it.
source code
 
getMemoryMaps(self)
Retrieve a set of memory maps defined by this hex file.
source code

Inherited from VArray: __getitem__, __init__, vsAddElement, vsAddElements

Inherited from VStruct: __getattr__, __iter__, __ixor__, __len__, __repr__, __setattr__, tree, vsAddField, vsAddParseCallback, vsCalculate, vsClearFields, vsEmit, vsGetClassPath, vsGetFastParseFields, vsGetField, vsGetFields, vsGetFirstPrim, vsGetOffset, vsGetPrims, vsGetPrintInfo, vsGetTypeName, vsHasField, vsInsertField, vsIsPrim, vsParseFd, vsSetField

Inherited from primitives.v_base: vsGetMeta, vsSetMeta

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

vsParse(self, bytes, offset=0)

source code 

For all the primitives contained within, allow them an opportunity to parse the given data and return the total offset...

Any method named pcb_<FieldName> will be called back when the specified field is set by the parser.

the "fast" option enables fastparse which will *not* call any callbacks can may not be compatible with some structure defs. ( eg mixed endian )

Overrides: primitives.v_base.vsParse

getEntryPoint(self)

source code 

If a 32bit linear start address is defined for this file, return it. Returns None if the 32bit entry point extension is not present.

getMemoryMaps(self)

source code 

Retrieve a set of memory maps defined by this hex file.

Memory maps are returned as a list of ( va, perms, fname, bytes ) tuples.