MSPPRG_API INT_X F_Read_PasswFile( INT_X file_format, CString FileName );
file_format -> specify code file format - TI (*.txt), Motorola (*.s19, *.s28,
*.s37), Intel (*.hex), IAR UBROF9 (*.d43) or IAR debug (*.a43) format
FILE_TI_FORMAT (1) for TI (*.txt) format
FILE_MOTOROLA_FORMAT (2) for Motorola (*.s19, *.s28 or *.s37)
FILE_INTEL_FORMAT (3) for Intel (*.hex)
FILE_IAR_D43_FORMAT (4) for IAR (UBROF9) *.d43 format
or FILE_DEBUG_A43_FORMAT (5) for IAR HEX or Motorola debug format
FileName -> full file name including path, file name and extention
note: F_Read_PasswFile is available only when the Multi-FPA dll is used.
Return value:
(0xFFFe & info) | state
where state is defined as follows:
0 - FALSE
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
info is defined as follows:
error -> INVALID_CODE_FILE
OPEN_FILE_OR_READ_ERR
PASSWORD_NOT_FOUND
Example:
st = F_ReadPasswFile( FILE_TI_FORMAT, “c:\test\demofile.txt” );
if(( st & 1 ) == TRUE )
{
....................
}
else
{
Info = st & 0xFFFE;
....................
....................
}
F_Clr_Code_Buffer
F_Clr_Code_Buffer - Clear content of the Code buffer.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
78