EasyManua.ls Logo

Elprotronic MSP430 - F_Set_Fpa_Index

Default Icon
119 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
F_ReadConfigFile( filename );
//download the same configuration to all DLLs.
F_ReadCodeFile( format, filename );
//download the same code file to all DLLs.
do
{
status = AutoProgram(1);
//start autoprogram to all FPAs simultaneously.
if( status != TRUE )
{
if( status == FPA_UNMATCHED_RESULTS )
{
// service software when results from FPAs are not the same
}
else
{
}
.......................
{
.......................
} while(1);
F_CloseInstances();
// release DLLs from memory
F_Set_FPA_index
F_Set_FPA_index - Select desired FPA index (desired DLL instance)
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs).
Syntax:
INT_X MSPPRG_API F_Set_FPA_index ( BYTE fpa );
Parameters:
fpa -> 1 to MAX_FPA_INDEX where MAX_FPA_INDEX = 64
or 0 -> ALL_ACTIVE_FPA
note: instead of ‘0' value it can be used global defined
ALL_ACTIVE_FPA that is defined as
#define ALL_ACTIVE_FPA 0
in the header file
Return value:
TRUE - if used fpa index is valid
FPA_INVALID_NO - if used fpa index is not activated or out of range
note: FPA_INVALID_NO -> -2 (minus 2)
43

Table of Contents