EasyManua.ls Logo

Elprotronic MSP430 - F_Get_Codecs; F_Readpasswfile, F_Read_Passwfile

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...
else
{
if ( st & CODE_IN_ROM ) {......}
if ( st & CODE_OUT_OF_FLASH ) {......}
if ( st & INVALID_CODE_FILE ) {......}
if ( st & OPEN_FILE_OR_READ_ERR ) {......}
....................
....................
}
F_Get_CodeCS
F_Get_CodeCS - Read code from internal code buffer and calculate the check sum.
VALID FPA index - ( 1 to 64 ).
Syntax:
MSPPRG_API LONG_X F_Get_CodeCS( int index );
index - index of the desired code
Index = 1 - Calculate check sum of the code from internal code buffer.
2 - Return Code Cs used in the last Autprogram session.
3 - Return Memory Cs used in the last Autprogram session.
Other Index values - reserved for the future option.
Return value:
Calculated check sum or
-2 (0xFFFFFFFE) - FPA_INVALID_NO
F_ReadPasswFile, F_Read_PasswFile
F_ReadPasswFile - Read code password data from the file and download it to internal buffer.
or F_Read_PasswFile
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
Function F_ReadPasswFile downloads part of the code from the file to internal memory buffer. From
the code file only data related to the password data (location 0xFFE0 to 0xFFFF) are stored in the
password memory buffer. All other data is ignored. Code file format and file name and location path
of the desired file must be specified. Three file formats are supported - Texas Instruments text
format, Motorola *.s19 format and Intel *.hex format.
Syntax:
MSPPRG_API INT_X F_ReadPasswFile( INT_X file_format, char * FileName );
77

Table of Contents