Remote Control Programming User’s Guide
PM024A02 Rev.2
64
Syntax:
MSPPRG_API
INT_X F_AutoProgram( INT_X mode );
mode = 0;
mode = 1 and up - reserved
Return value:
0 - FALSE
1 - TRUE
Example:
............................
if( F_Initialization() != TRUE )
//required API-Dll - initialization
{
// Initialization error
}
F_GetSetup( &config );
//API-DLL - get configuration from the programmer
............................
// modify configuration if required
F_ConfigSetup( config );
// download setup to programmer
int st = F_ConfigFileLoad( “c:\test\configfile.cfg” );
if(( st & 1 ) != TRUE )
{
Info = st & 0xFFFE;
....................
}
do{
....................
// prepare next microcontroller
s
targets_mask = 0x3F
//active all six target devices
F_SetConfig( CFG_TARGET_EN_INDEX, (INT_X)targets_mask );
if( F_AutoProgram(0) == targets_mask )
{
//all target devices programmed
}
else
{
//some targets has nod been programmed
}
....................
//exit if the last microcontrollers
// has been programmed
} while(1);
....................
F_Verify_Lock_Bit
s
Summary of Contents for FlashPro-CC
Page 10: ...10...