EasyManua.ls Logo

Elprotronic MSP430 - F_Getconfig; F_Set_Mcu_Name

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...
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

Table of Contents