EasyManua.ls Logo

Elprotronic MSP430 - F_Api_Dll_Directory

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_Initialization function should be called after the communication with the FPA adapter is
established. To make a Multi-FPA software back compatible, the F_Initialization procedure is calling
the function F_OpenInstancesAndFPAs(“*# *”) if none of the instances has not been activated
before. Also the FPA index is selected to 1 by default. That allows to use old application software
without calling the new type of Multi-FPA functions.
When the F_Initialization is called then:
- all internal data is cleared or set to the default value,
- initial configuration is downloaded from the config.ini file,
- USB driver is initialized if has not been initialized before.
Programming adapter must be connected to the USB to establish communication between PC and
programming adapter. Otherwise the F_Initialization will return FALSE result.
Syntax:
MSPPRG_API INT_X F_Initialization( void );
Return value:
0 - FALSE
1 - TRUE
4 - Programming adapter not detected.
-2 (0xFFFFFFFE) - FPA_INVALID_NO
Example:
............................
F_API_DLL_Directory( “.....” ) // optional - see F_API_DLL_Directory()
If( F_Initialization() != TRUE ) //required API-Dll - initialization
{
// Initialization error
}
............................
F_API_DLL_Directory
F_API_DLL_Directory - The DLL directory location.
VALID FPA index - irrelevant - the same directory location for all DLLs.
The F_API_DLL_Directory command can specify the directory path where the DLLs are located.
This command is not mandatory and usually is not required. But in some application software the
default location of the DLLs is not transferred to the DLL. In this case the related files with DLLs
located in the same directory where the DLLs are located can not be find. To avoid this problem the
full path of the directory where the DLLs are located can be specified. The F_API_DLL_Directory
must be used before F_Initialization() function.
50

Table of Contents