Rtos API example

Embed: (wiki syntax)

« Back to documentation index

ElfFileSimple Class Reference

ElfFileSimple Class Reference

Inherits elftools::elf::elffile::ELFFile.

Public Member Functions

def __init__
def read

Detailed Description

Wrapper for elf object which allows easy access to symbols and rom

Definition at line 309 of file flash_algo.py.


Constructor & Destructor Documentation

def __init__ (   self,
  data 
)
Construct a ElfFileSimple from bytes or a bytearray

Definition at line 312 of file flash_algo.py.


Member Function Documentation

def read (   self,
  addr,
  size 
)
Read program data from the elf file

:param addr: physical address (load address) to read from
:param size: number of bytes to read
:return: Requested data or None if address is unmapped

Definition at line 335 of file flash_algo.py.