Function F_Power_Target switches ON or OFF power from the programming adapter to the target
device.
Note: PowerTargetEn flag must be set to TRUE (1) in the configuration setup to switch the
power from the programming adapter ON.
Syntax:
MSPPRG_API INT_X F_Power_Target( INT_X OnOff );
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
.....................
F_Power_Target( 1 ); // Turn Power ON
.....................
F_Power_Target( 0 ); // Turn Power OFF
.....................
F_Reset_Target
F_Reset_Target - Generate short RESET pulse on the target’s device RESET line.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Function F_Reset_Target resets target device and target device’s application program can start.
Length of the RESET pulse time is specified by ResetTimeIndex in configuration setup. See
F_ConfigSetup description for details.
Syntax:
MSPPRG_API INT_X F_Reset_Target( void );
Return value:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
.....................
F_Reset_Target( void );
.....................
73