Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PackFlashAlgo Class Reference
Public Member Functions | |
def | __init__ |
def | format_algo_data |
def | process_template |
Detailed Description
Class to wrap a flash algo This class is intended to provide easy access to the information provided by a flash algorithm, such as symbols and the flash algorithm itself.
Definition at line 55 of file flash_algo/__init__.py.
Constructor & Destructor Documentation
def __init__ | ( | self, | |
data | |||
) |
Construct a PackFlashAlgorithm from an ElfFileSimple
Definition at line 77 of file flash_algo/__init__.py.
Member Function Documentation
def format_algo_data | ( | self, | |
spaces, | |||
group_size, | |||
fmt | |||
) |
" Return a string representing algo_data suitable for use in a template The string is intended for use in a template. :param spaces: The number of leading spaces for each line :param group_size: number of elements per line (element type depends of format) :param fmt: - format to create - can be either "hex" or "c"
Definition at line 115 of file flash_algo/__init__.py.
def process_template | ( | self, | |
template_path, | |||
output_path, | |||
data_dict = None |
|||
) |
Generate output from the supplied template All the public methods and fields of this class can be accessed from the template via "algo". :param template_path: Relative or absolute file path to the template :param output_path: Relative or absolute file path to create :param data_dict: Additional data to use when generating
Definition at line 147 of file flash_algo/__init__.py.
Generated on Tue Jul 12 2022 12:22:57 by
