EasyManua.ls Logo

Elprotronic MSP430 - F_Get_Device_Info

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...
F_Set_MCU_Name - Set microcontroller type.
VALID FPA index - ( 1 to 64 )
The F_Set_MCU_Name(..) replaced the old function
F_SetConfig( CFG_MICROCONTROLLER, MCU_index );
The MCU name must be entered exactly with the same name as it is in the GUI software - MCU type
pull down menu.
Syntax:
MSPPRG_API INT_X F_Set_MCU_Name( char * MCU_name );
Return value:
>= 0 - Index of the selected MCU
-1 - error - invalid MCU name.
Example:
.......................
F_Set_MCU_Name( “MSP430F5438" );
.......................
F_Get_Device_Info
F_Get_Device_Info - Get information related to selected microcontroller.
VALID FPA index - ( 1 to 64 )
Syntax:
MSPPRG_API INT_X F_Get_Device_Info( INT_X index );
where index:
DEVICE_NAME 0
DEVICE_NAME_SIZE 20
DEVICE_MAIN_FLASH_START_ADDR 20
DEVICE_MAIN_FLASH_END_ADDR 21
DEVICE_INFO_START_ADDR 22
DEVICE_INFO_SEGM_SIZE 23
DEVICE_NO_INFO_SEGMENTS 24
DEVICE_RAM_SIZE 25
Return value:
-1 (0xFFFFFFF) - invalid data
-2 (0xFFFFFFFE) - FPA_INVALID_NO
or
65

Table of Contents