Package tockloader.app Documentation
Class App
Representation of a Tock app stored on a board.
__init__
def __init__(self, tbfh, address, name, binary=None)
Initialize self. See help(type(self)) for accurate signature.
get_header_binary
def get_header_binary(self)
Get the TBF header as a bytes array.
get_size
def get_size(self)
Return the total size (including TBF header) of this app in bytes.
has_binary
def has_binary(self)
Whether we have the actually application binary for this app.
info
def info(self, verbose=False)
Get a string describing various properties of the app.
is_sticky
def is_sticky(self)
Returns true if the app is set as sticky and will not be removed with a normal app erase command. Sticky apps must be force removed.
set_address
def set_address(self, address)
Set the address of flash where this app is or should go.
set_binary
def set_binary(self, binary)
Update the application binary. Likely this binary would come from the existing contents of flash on a board.
__str__
def __str__(self)
Return str(self).