Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2. F_Use_Config_INI

...

3. F_Get_Config_Name_List

...

  • FALSE (0) : failed name validation (CONFSEL_VALIDATE)

  • TRUE (1) : successful name validation (CONFSEL_VALIDATE)

  • any : actual parameter value, minimum and maximum bounds, and default value if not set by user/file (CONFSEL_VALUE, CONFSEL_MIN, CONFSEL_MAX, CONFSEL_DEFAULT)

  • -1 or 0xFFFFFFFF : name not found (avoid this by using CONFSEL_VALIDATE first)

  • FPA_UNMATCHED_RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F LastStatus(avoid this by not using FPA index 0)_LastStatus

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range(avoid this by using F Check FPA index first)

Example

Use the example code below to read full configuration:

...

6. F_Get_Device_Info

...

Select FPA to perform operation on using Multi API-DLL Functions | F_Set_FPA_index, index 1 to 64.

Output

INT_X : value dependent on input parameter

  • any : based on input parameter

  • -1 (0xFFFFFFFF) : invalid input parameter

  • FPA_INVALIDUNMATCHED_NO RESULTS (-2 1 or 0xFFFFFFFE0xFFFFFFFF) : FPA not opened with F_OpenInstancesAndFPAs or index out of rangeResult of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F_LastStatus

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

Example

Insert excerpt
Get MCU Info
Get MCU Info

...

  • microcontroller index if input name was found and set, index is greater than or equal to zero (0)

  • -1 (0xFFFFFFFF) : name not found (avoid by getting list of proper names using F_Get_MCU_Name_list)

  • FPA_UNMATCHED_RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F_LastStatus

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

8. F_Search_MCU_Name

...

Example

...

  • Code Block
    languagecpp
        // return	 Type + Version	
    	//           Type   0x1000 - Single FlashPro430 - Parallel Port type  
    	//					0x2000 - Single FlashPro430 - USB type  
    	//					0x3000 - Single GangPro430  - USB type  
    	//					0x4000 - Single FlashPro-CC - USB type  
    	//					0x5000 - Single GangPro-CC  - USB type  
    	//					0xA000 - Single FlashPro2000- USB type  
    	//					0xB000 - Single GangPro2000 - USB type  
    	//					0xE000 - Single FlashPro-ARM - USB type  
    	//					0xF000 - Single GangPro-ARM - USB type  
    	//			 Version = 0x0FFF & version
  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

15. F_ConfigFileLoad
Anchor
F_ConfigFileLoad
F_ConfigFileLoad

...

  • FALSE (0) : failed

  • TRUE (1) : succeeded

  • STATUS_OPEN_FILE_ERROR (535) : could not open file

  • STATUS_CORRUPT_CONFIG_ERROR (554) : malformed configuration file (missing header, etc.)

  • FPA_UNMATCHED_RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F_LastStatus

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

16. F_Power_Target

...

17. F_Reset_Target

...

18. F_Get_Targets_Vcc

...

19. F_Get_Power_Results
Anchor
F_Get_Power_Results
F_Get_Power_Results

...

  • FALSE (0) : failed - USB-FPA 6.1 adapter detected

  • TRUE (1) : succeeded - XStream-Iso, and XStreamPro-Iso adapter detected

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

Example

...

  • FALSE (0) : failed - USB-FPA 6.1 adapter detected

  • TRUE (1) : succeeded - XStream-Iso, and XStreamPro-Iso adapter detected

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

Example

...

  • FALSE (0) : failed - USB-FPA 6.1 adapter detected

  • TRUE (1) : succeeded - XStream-Iso, and XStreamPro-Iso adapter detected

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with F_OpenInstancesAndFPAs or index out of rangeFPA_UNMATCHED_RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F_LastStatus

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

Example

Refer to https://elprotronic.atlassian.net/wiki/spaces/FPGPARM/pages/57770358/Generic+Functions#F_Get_Power_Results

...

  • FALSE (0) : failed - USB-FPA 6.1, or XStream-Iso adapter detected

  • TRUE (1) : succeeded - XStreamPro-Iso adapter detected

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with F_OpenInstancesAndFPAs or index out of rangeFPA_UNMATCHED_RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to Multi API-DLL Functions | F_LastStatus

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

Example

Refer to https://elprotronic.atlassian.net/wiki/spaces/FPGPARM/pages/57770358/Generic+Functions#F_Get_Power_Results

...

  • FALSE (0) : failed - USB-FPA 6.1 adapter detected

  • TRUE (1) : succeeded - XStream-Iso, and XStreamPro-Iso adapter detected

  • FPA_INVALID_NO (-2 or 0xFFFFFFFE) : FPA not opened with Multi API-DLL Functions | F_OpenInstancesAndFPAs or index out of range

Example

...

25. F_Get_Sector_Size

...