joey shelton / LED_Demo

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Embed: (wiki syntax)

« Back to documentation index

Target Class Reference

Target Class Reference

Public Member Functions

def get_json_target_data
def set_targets_json_location
def get_module_data
def __getattr__
def add_py_targets
def get_target
def program_cycle_s
def get_labels
def init_hooks

Detailed Description

An object to represent a Target (MCU/Board)

Definition at line 63 of file targets.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 220 of file targets.py.

def add_py_targets (   new_targets )
Add one or more new target(s) represented as a Python dictionary
in 'new_targets'. It is an error to add a target with a name that
already exists.

Definition at line 230 of file targets.py.

def get_json_target_data (  )
Load the description of JSON target data

Definition at line 82 of file targets.py.

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

Definition at line 275 of file targets.py.

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

Definition at line 97 of file targets.py.

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

Definition at line 251 of file targets.py.

def init_hooks (   self,
  hook,
  toolchain_name 
)
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)

Definition at line 284 of file targets.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 266 of file targets.py.

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

Definition at line 88 of file targets.py.