Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Target Class Reference

Target Class Reference

Inherits collections::namedtuple.

Public Member Functions

def get_json_target_data
def set_targets_json_location
def get_module_data
def __getattr__
def get_target
def program_cycle_s
def labels
def init_hooks

Detailed Description

An object to represent a Target (MCU/Board)

Definition at line 123 of file targets/__init__.py.


Member Function Documentation

def __getattr__ (   self,
  attrname 
)
Return the value of an attribute. This function only computes the
attribute's value once, then adds it to the instance attributes (in
__dict__), so the next time it is returned directly

Definition at line 275 of file targets/__init__.py.

def get_json_target_data (  )
Load the description of JSON target data

Definition at line 138 of file targets/__init__.py.

def get_module_data (  )
Get the members of this module using Python's "inspect" module

Definition at line 170 of file targets/__init__.py.

def get_target (   target_name )
Return the target instance starting from the target name 

Definition at line 286 of file targets/__init__.py.

def init_hooks (   self,
  hook,
  toolchain 
)
Initialize the post-build hooks for a toolchain. For now, this
function only allows "post binary" hooks (hooks that are executed
after the binary image is extracted from the executable file)

Positional Arguments:
hook - the hook object to add post-binary-hooks to
toolchain - the toolchain object for inspection

Definition at line 314 of file targets/__init__.py.

def labels (   self )
Get all possible labels for this target

Definition at line 302 of file targets/__init__.py.

def program_cycle_s (   self )
Special override for program_cycle_s as it's default value depends
upon is_disk_virtual

Definition at line 292 of file targets/__init__.py.

def set_targets_json_location (   location = None )
Set the location of the targets.json file

Definition at line 160 of file targets/__init__.py.