Return value:
0 - FALSE
>0 - Detected USB-MSP430-FPA or MSP-FET430UIF Serial Number
Example:
long SN[MAX_USB_DEV_NUMBER+1];
F_OpenInstances( 1 ); // DLL initialization - one instance
F_Set_FPA_index( 1 ); // select access to the first instance
n = 0; //no of detected FPAs
for( k=1; k<=MAX_USB_DEV_NUMBER ; k++ )
{
SN[k] = F_Check_FPA_access(k);
if ( SN[k] > 20000000 ) n++;
}
F_CloseInstances(); // DLL initialization - one instance
F_OpenInstances( n ); // Open ‘n’ instances - one per FPA
// Find desired FPAs SN and assign the FPAs serial number every time to the same
// FPA-index.
// For example if the
// SN[1]= 20060123
// SN[2]= 20060147
// SN[3]= 0 - adapter not present
// SN[4]= 20060135
// and desired assignment
// FPA-1 20060123
// FPA-2 20060135
// FPA-3 20060147
// then following sequence instructions can be used
F_Set_FPA_index( 1 ); // select access to the first instance
F_Check_FPA_access( 1 ); //assign FPA SN[1] = 20060123 to FPA-1
F_Set_FPA_index( 2 ); // select access to the second instance
F_Check_FPA_access( 4 ); //assign FPA SN[4] = 20060135 to FPA-2
F_Set_FPA_index( 3 ); // select access to the third instance
F_Check_FPA_access( 2 ); //assign FPA SN[2] = 20060147 to FPA-3
F_Set_FPA_index( ALL_ACTIVE_FPA ); // select all active instances
F_Initialization() // All FPAs initialization
............................
F_Initialization
F_Initialization - Programmer initialization.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
49