Similar to the F_ConfigSetup, but only one item from the CONFIG_BLOCK structure is modified.
Syntax:
MSPPRG_API INT_X F_SetConfig( INT_X index, LONG_X data );
See index list in the F_ConfigSetup for details.
Return value:
0 - FALSE
1 - TRUE
-2 - FPA_INVALID_NO
Example:
.......................
.......................
F_SetConfig( CFG_INTERFACE, config.Interface );
.......................
F_GetConfig
F_GetConfig - Get one item of the programmer’s configuration.
VALID FPA index - ( 1 to 64 )
Similar to the F_GetSetup, but only one item from the CONFIG_BLOCK structure is read.
Syntax:
MSPPRG_API LONG_X F_GetConfig( INT_X index );
Index’s list - see F_SetConfig
Return value:
Requested setup parameter;
1 - TRUE
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
.......................
config.Interface = F_GetConfig( CFG_INTERFACE );
.......................
F_Set_MCU_Name
64