Having correctly configured the top-level Multi API-DLL using Multi API-DLL Functions, the functions in this section can be used to initialize and configure each FPA individually (and it’s API-DLL instance). Generic functions read and write the API-DLL’s configuration, access status messages and can instruct the FPA to power or reset the target device. The functions described in this section require that each FPA already be opened using F OpenInstancesAndFPAs. After the following functions have been used to configure each FPA correctly for its target device, use Data Buffer Functions to determine what code should be written during programming. Finally, Encapsulated functions can perform the process of programming, writing, erasing, verifying, etc., according to the aforementioned settings. 12 F InitializationGeneral DescriptionInitialize FPA after it has been successfully opened using F OpenInstancesAndFPAs. F Initialization performs the following tasks: all internal data is cleared and set to default values, USB driver is initialized if has not been initialized before.
Select which FPA to initialize, using the function F Set FPA index with desired parameter (0- all, 1-64 for individual FPA). After successful initialization, call F ConfigFileLoad to read settings from file, or configure settings manually using the function F Set Config Value By Name. For backwards compatibility, F Initialization will call F OpenInstancesAndFPAs(*# *) if no instances are currently opened, and perform initialization on FPA 1. If F OpenInstancesAdFPAs was already invoked successfully then initialization is performed on the selected FPA index from the function F Set FPA index. Default config file used to perform initialization is config.ini (Use F Use Config INI(FALSE) to disable automatic load of config.ini). SyntaxINT_X F_Initialization( void ); Inputnone. Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Use_Config_INI_bookmark207_bookmark207F Use Config INIGeneral DescriptionConfigure F Initialization to use (default) or skip config.ini file. When skipping config.ini it is necessary to use ConfigFileLoad or F Set Config Value By Name functions to configure the adapter. SyntaxINT_X F_Use_Config_INI(BYTE use); InputBYTE use : 1 to use config.ini, 0 to skip Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed TRUE (1) : succeeded
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Get_Config_Name_List_bookmark208_bookmark208F Get ConfigNameListGeneral DescriptionIterate over configuration parameter names, starting from index 0. Increase index until return is null character. Will return a pointer to a character array with name of parameter or null character once index is too high. Requires the target FPA to be opened using F OpenInstancesAndFPAs and initialized using F Initialization. Syntaxchar * F_Get_Config_Name_List( INT_X index ); InputINT X : configuration parameter index, starting from zero. Increment until return value is null character. Select FPA to perform operation on using F Set FPA index, index 1 to 64. Outputchar * : configuration parameter name a valid character array pointer containing name of configuration parameter (do not free after use) • F_Get_Config_Value_By_Name_bookmark209_bookmark209F Get ConfigValueByNameGeneral DescriptionAccess the current FPA’s configuration. Use F Get Config Name List to get configuration param- eter names, then use them as input to this function. Select input type to validate name, and get current, minimum, maximum, and default values. Because normal return values from this function can be any value, from 0 to 0xFFFFFFFF, it is important to pick a correct fpa index (use F Check FPA index to validate) and validate the configuration parameter name first (using CONFSEL VALIDATE), before retrieving the current, minimum, maximum or default values. Unless all FPAs are to be configured identically, avoid using FPA index 0 to prevent confusion in results (when results don’t match using FPA index 0 (all FPAs) the result is simply FPA UNMATCHED RESULTS (-1)). Requires the target FPA to be opened using F OpenInstancesAndFPAs and initialized using F Initialization. Syntaxunsigned int F_Get_Config_Value_By_Name(char *name, INT_X type); Inputchar * name : parameter name INT X type : select action CONFSEL VALIDATE (0) : returns TRUE if name was found in configuration list CONFSEL VALUE (1) : returns current value of configuration parameter CONFSEL MIN (2) : returns minimum value that this configuration parameter can have CONFSEL MAX (3) : returns maximum value that this configuration parameter can have
CONFSEL DEFAULT (4) : returns default value for this configuration parameter if not set by user/file • Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). Outputunsigned int : depends on input 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 F LastStatus(avoid this by not using FPA index 0) • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range(avoid this by using F Check FPA index first) • F_Set_Config_Value_By_Name_bookmark210_bookmark210F Set Config Value By NameGeneral DescriptionSet the current FPA’s configuration. Use F Get Config Name List to get configuration param- eter names, then use them as input to this function. New value for configuration parameter will be trimmed by minimum and maximum values allowed for this parameter. If not initial- ized, this parameter will have a default value. Double check parameters after configuration using F Get Config Value By Name. Requires the target FPA to be opened using F OpenInstancesAndFPAs and initialized using F Initialization. SyntaxINT_X F_Set_Config_Value_By_Name(char *name, unsigned int newValue); Inputchar * name : parameter name unsigned int newValue : assign new configuration parameter value (will be trimmed by min/max if necessary) Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Get_Device_Info_bookmark211_bookmark211F Get Device InfoGeneral DescriptionGet information about selected microcontroller. SyntaxINT_X F_Get_Device_Info( INT_X index ); InputINT X : select type of information to receive DEVICE NAME (0) : get character 0, increase index up to 19 to get last character DEVICE VENDOR INDEX (30) : Vendor Index (superset of all supported MCUs, i.e. com- pany name) • DEVICE FAMILY INDEX (20) : Family Index (subset of MCU vendor, index 30) DEVICE GROUP INDEX (21) : Group Index (subset of MCU family, index 20)
DEVICE NAME INDEX (22) : Name Index (subset of MCU group, index 21) DEVICE GROUP (23) : Obsolete DEVICE FLASH START ADDR (24) : Flash Start Address, i.e. 0x00000 DEVICE FLASH END ADDR (25) : Flash End Address, i.e. 0x1FFFF DEVICE OTP START ADDR (26) : OTP Start Address, i.e. 0x400FE1E0 DEVICE OTP END ADDR (27) : OTP End Address, i.e. 0x400FE1EF DEVICE RAM START ADDR (28) : RAM Start Address, i.e. 0x20000000 DEVICE RAM END ADDR (29) : RAM Start Address, i.e. 0x20010000 Select FPA to perform operation on using F Set FPA index, index 1 to 64.
OutputINT X : value dependent on input parameter FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Set_MCU_Name_bookmark212_bookmark212F Set MCUNameGeneral DescriptionSet target microcontroller name. A list of acceptable names can be obtained using the functions F Set MCU Family Group and F Get MCU Name list. SyntaxINT_X F_Set_MCU_Name( char *MCU_name ); Inputchar * : Exact name of target microcontroller. Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : microcontroller index if successful 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 F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Get_MCU_Name_list_bookmark213_bookmark213F Get MCU Name listGeneral DescriptionObtain a list of supported vendors, families, groups, and MCUs for the specified FPA. Use this function in conjunction with F Set MCU Family Group to get all supported MCU names. First obtain the names of supported vendors, then select one vendor. Then, for the selected vendor obtain the names of supported families, then select one family, etc. The MCU names obtained from this function are the exact names used to configure the FPA using the function F Set MCU Name for the target device you want to program. Syntaxchar * F_Get_MCU_Name_list( INT_X type, INT_X index ); InputINT X type : specify which list to get names from MCU VENDOR LIST (0) : get name of vendors enabled on this FPA MCU FAMILY LIST (1) : get name of MCU families supported from the selected vendor MCU GROUP LIST (2) : get name of MCU groups supported from the selected MCU family MCU NAME LIST (3) : get name of MCU supported from the selected MCU group INT X index : list index starting from zero, increment until returned string is null character.
Select FPA to perform operation on using F Set FPA index, index 1 to 64. Outputchar * : Name of vendor, family, group, or MCU for the given index. ExampleRefer to F Set MCU Family Group. F_Set_MCU_Family_Group_bookmark214_bookmark214F Set MCUFamilyGroupGeneral DescriptionSelect vendor, family, group and MCU index. Use this function in conjunction with F Get MCU Name list to get all supported MCU names. First obtain the names of supported vendors, then select one vendor. Then, for the selected vendor obtain the names of supported families, then select one family, etc. Use MCU names to configure the FPA using the function F Set MCU Name. Use this function only to obtain the list of supported MCU names, not to configure the FPA. When NEW MCUs are supported then these indices will change. SyntaxINT_X F_Set_MCU_Family_Group( INT_X type, INT_X index ); InputINT X type : specify which list to set index for MCU VENDOR LIST (0) : set vendor index on this FPA MCU FAMILY LIST (1) : set family index from the selected vendor MCU GROUP LIST (2) : set group index from selected MCU family MCU NAME LIST (3) : set MCU index from selected MCU group (use actual INT X index : set list index
Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • Example//C++ and C# are available in the installation package //that implement this code //Example from demo included in installation package //Select one FPA index to perform this sequence on. //If all FPA are the same then iterating over other FPA indices is not necessary. //Iterate over supported vendors, then select vendor zero in this case //Pull-down menu in demo allows user to change selected vendor index void ProgDemoDlg::Init_MCU_Vendor_ComboBox( void ) { int k; char *name; SelMCU_Vendor->ResetContent();//Reset list of vendors k = 0; Vendor_list_size = 0; do { //---------------------------------------------------- name = F_Get_MCU_Name_list( MCU_VENDOR_LIST, k );//get name of vendor at index k if( strlen( name ) == 0 ) break; //reached end of list of vendors //---------------------------------------------------- if(SelMCU_Vendor) { //---------------------------------------------------- SelMCU_Vendor->AddString( name ); //add newly acquired vendor name to GUI list //---------------------------------------------------- Vendor_list_size++; } k++; }while(1); //Select vendor zero in demo GUI (will not affect DLL yet) SelMCU_Vendor->SetCurSel(0); //Select chosen vendor and read supported MCU families OnCbnSelchangeMcuVendor(); } //Initialize list of supported families for selected vendor void ProgDemoDlg::OnCbnSelchangeMcuVendor( void ) { Vendor_list_index = SelMCU_Vendor->GetCurSel(); //---------------------------------------------------- //Set vendor to selected index (during initialization this is usually zero) F_Set_MCU_Family_Group( MCU_VENDOR_LIST, Vendor_list_index ); //---------------------------------------------------- Init_MCU_Family_ComboBox(); } //Iterate over supported families for selected vendor, then select family zero in this case //Pull-down menu in demo allows user to change selected family index void ProgDemoDlg::Init_MCU_Family_ComboBox( void ) { int k; char *name; SelMCU_Family->ResetContent(); k = 0; Family_list_size = 0; do { //---------------------------------------------------- name = F_Get_MCU_Name_list( MCU_FAMILY_LIST, k ); //get name of family at index k if( strlen( name ) == 0 ) break; //reached end of list of families //---------------------------------------------------- if(SelMCU_Family) { //---------------------------------------------------- SelMCU_Family->AddString( name ); //add newly acquired family name to GUI list //---------------------------------------------------- Family_list_size++; } k++; }while(1); //Select family zero in demo GUI (will not affect DLL yet) SelMCU_Family->SetCurSel(0); //Select chosen family and read supported MCU groups OnCbnSelchangeMcuFamily(); } //Initialize list of supported groups for selected family void ProgDemoDlg::OnCbnSelchangeMcuFamily( void ) { Family_list_index = SelMCU_Family->GetCurSel(); //---------------------------------------------------- //Set family to selected index (during initialization this is usually zero) F_Set_MCU_Family_Group( MCU_FAMILY_LIST, Family_list_index ); //---------------------------------------------------- Init_MCU_Group_ComboBox(); } //Iterate over supported groups for selected family, then select group zero in this case //Pull-down menu in demo allows user to change selected group index void ProgDemoDlg::Init_MCU_Group_ComboBox( void ) { int k; char *name; SelMCU_Group->ResetContent(); MCU_Group_list_size = 0; k = 0; do { //---------------------------------------------------- name = F_Get_MCU_Name_list( MCU_GROUP_LIST, k ); //get name of group at index k if( strlen( name ) == 0 ) break; //reached end of list of groups //---------------------------------------------------- if(SelMCU_Group) { //---------------------------------------------------- SelMCU_Group->AddString( name ); //add newly acquired group name to GUI list //---------------------------------------------------- MCU_Group_list_size++; } k++; }while(1); //Select group zero in demo GUI (will not affect DLL yet) SelMCU_Group->SetCurSel(0); //Select chosen group and read supported MCUs OnCbnSelchangeMcuGroup(); } //Initialize list of supported MCUs for selected group void ProgDemoDlg::OnCbnSelchangeMcuGroup( void ) { MCU_Group_list_index = SelMCU_Group->GetCurSel(); //---------------------------------------------------- //Set group to selected index (during initialization this is usually zero) F_Set_MCU_Family_Group( MCU_GROUP_LIST, MCU_Group_list_index ); //---------------------------------------------------- Init_MCU_List_ComboBox(); } //Iterate over supported MCUs for selected group, then select MCU zero in this case //Pull-down menu in demo allows user to change selected MCU index void ProgDemoDlg::Init_MCU_List_ComboBox( void ) { int k; char *name; SelMCU_List->ResetContent(); MCU_Name_list_size = 0; k = 0; do { //---------------------------------------------------- name = F_Get_MCU_Name_list( MCU_NAME_LIST, k ); //get name of MCU at index k if( strlen( name ) == 0 ) break; //reached end of list of MCUs //---------------------------------------------------- if(SelMCU_List) { //---------------------------------------------------- SelMCU_List->AddString( name ); //add newly acquired MCU name to GUI list //---------------------------------------------------- MCU_Name_list_size++; } k++; }while(1); //Select MCU zero in demo GUI (will not affect DLL yet) SelMCU_List->SetCurSel(0); //At this point all the MCU names for selected vendor, family, and group have been read. //Iterate over all vendors, families, groups, and MCU lists to obtain names of all //supported MCUs. Use the actual MCU names to call function F_Set_MCU_name and configure //the FPA. //NOTE: DO NOT RELY ON MCU INDEX TO CONFIGURE ADAPTER, USE ACTUAL MCU NAMES. //Although calling F_Set_MCU_Family_Group( MCU_NAME_LIST, MCU_index ) will work at this //point to select the correct MCU the input MCU_index is only referring to the desired //MCU if vendor, family, and group index are also set correctly. An MCU_index of 5 will //be two different MCUs depending on the aforementioned parameters. Most importantly, //when NEW MCUs are added to the list of supported MCUs, these indices will no longer //be referring to the same MCUs. //For this reason, it is preferable to use actual MCU names to configure the FPA, //because it will be more reliable. } F_ReportMessage, F_Report_Message_bookmark215_bookmark215F ReportMessage, F ReportMessageGeneral DescriptionGet the last report message from the programmer. When any of the DLL functions are called, an output message is usually created. The GUI uses these messages to print to the dialog box. The user application can use these messages to populate its own dialog box. The last report message can be read by user application using these functions. When these functions are called, then a report message of up to RE- PORT MESSAGE MAX SIZE characters is copied to the character array passed as input parameter, or in the case of the latter function, a pointer to a statically allocated character array is returned with the output message text. Calling F ReportMessage clears the message buffer. If F ReportMessage is not called, then the report message will collect all reported information up to REPORT MESSAGE MAX SIZE most recent characters. Syntaxvoid F_ReportMessage( char * text ); char* F_Report_Message( void ); Inputchar * text : F ReportMessage, allocated text buffer of up to REPORT MESSAGE MAX SIZE (2000) characters. Select FPA to perform operation on using F Set FPA index, index 1 to 64. Outputchar * : F Report Message, pointer to statically allocated character array containing output mes- sage text F_GetReportMessageChar_bookmark216_bookmark216F GetReportMessageCharGeneral DescriptionGet one character from the report message buffer. Syntaxchar F_GetReportMessageChar( INT_X index ); InputINT X index : character index, starting from 0 to REPORT MESSAGE MAX SIZE - 1. Select FPA to perform operation on using F Set FPA index, index 1 to 64. Outputchar : character from report message buffer. F_DLLTypeVer_bookmark217_bookmark217F DLLTypeVerGeneral DescriptionGet information about DLL software type and version. This function returns integer number with DLL ID and software revision version and copies a text message to the report message buffer about DLL ID and software revision. Text content can read using F ReportMessage, F Report Message, or F GetReportMessageChar functions. SyntaxINT_X F_DLLTypeVer( void ); Inputnone. Select FPA to perform operation on using F Set FPA index, index 1 to 64. OutputINT X : (DLL ID) — (0x0FFF & Version) DLL ID = 0x1000, FlashPro430 - Parallel Port DLL ID = 0x2000, FlashPro430 - USB DLL ID = 0x3000, GangPro430 - USB DLL ID = 0x4000, FlashPro-CC - USB DLL ID = 0x5000, GangPro-CC - USB DLL ID = 0xA000, FlashPro2000 - USB DLL ID = 0xB000, GangPro2000 - USB DLL ID = 0xE000, FlashPro-ARM - USB DLL ID = 0xF000, GangPro-ARM - USB Version = 0x0xyz, version x.yz (i.e. 0x0190 = v 1.90)
FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_ConfigFileLoad_bookmark218_bookmark218F ConfigFileLoadGeneral DescriptionModify programmer’s configuration according to data taken from specified configuration file. This setup will override previous values and leave omitted parameters untouched. When loaded for the first time, unspecified configuration parameters take on default values as given by F Get Config Value By Name. When calling this function multiple times with different config- uration files, make sure to specify all relevant configuration parameters. A configuration file can be created using the FlashPro GUI software, or use the functions F Get Config Name List, F Get Config Value By Name to extract a list of configuration names and values. The F Set Config Value By Name function can be used to set configuration parameters instead of F ConfigFileLoad. Requires the target FPA to be opened using F OpenInstancesAndFPAs and initialized using F Initialization. SyntaxINT_X F_ConfigFileLoad( char * filename ); Inputchar * filename : path to configuration file including filename and extension Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation 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 F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Power_Target_bookmark219_bookmark219F Power TargetGeneral DescriptionEnable power from FPA to target device. For this function to have its desired effect, configuration settings PowerFromFpaEn must be set to 1. If PowerFromFpaEn is set to 0, then power from FPA is always off regardless of this function’s input parameter. SyntaxINT X F Power Target( INT X OnOff ); InputINT X : power setting FALSE (0) : power off TRUE (1) : power on
Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed TRUE (1) : succeeded
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Reset_Target_bookmark220_bookmark220F Reset TargetGeneral DescriptionGenerate short reset pulse on target device’s reset line. The length of the reset pulse can be selected using configuration options. The ResetTimeIndex is used to select pre-set times, or for custom setup select the last index and specify ResetPulseTime, and ResetIdleTime. SyntaxINT_X F_Reset_Target( void ); Inputnone. Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed TRUE (1) : succeeded
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Get_Targets_Vcc_bookmark221_bookmark221F Get TargetsVccGeneral DescriptionGet Vcc in millivolts as read from target device. SyntaxINT_X F_Get_Targets_Vcc( void ) Inputnone. Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : returns target voltage in millivolts value of zero or greater : voltage in millivolts FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Set_fpa_io_state_bookmark222_bookmark222F Set fpa io stateGeneral DescriptionSet state of the Reset, Vcc and JTAG lines after programming is finished. SyntaxINT_X F_Set_fpa_io_state( BYTE jtag, BYTE reset, BYTE VccOn ) InputBYTE jtag : set JTAG lines (TMS, TCK, TDI) DEFAULT JTAG 3ST (0) : JTAG lines set to tri-state DEFAULT JTAG HI (1) : JTAG lines set to Vcc DEFAULT JTAG LO (2) : JTAG lines set to GND BYTE reset : set reset line 0 : reset line set to GND 1 : reset line set to Vcc
BYTE VccOn : set Vcc line from adapter Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FALSE (0) : failed TRUE (1) : succeeded
FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range • F_Get_Sector_Size_bookmark223_bookmark223F Get Sector SizeGeneral DescriptionWill return the segment/sector size for memory region that contains given address. This func- tion will access the FPA’s meta-data for the target device specified in configuration options. No communication with target device actually takes place. SyntaxINT_X F_Get_Sector_Size( INT_X address ); InputINT X address : address contained by segment/sector Select FPA to perform operation on using F Set FPA index, index 1 to 64.Use index 0 to perform operation on all FPAs (if results differ, use F LastStatus to get individual results). OutputINT X : result of operation FPA UNMATCHED RESULTS (-1 or 0xFFFFFFFF) : Result of operation inconsistent across all selected FPAs, refer to F LastStatus(avoid this by not using FPA index 0) • FPA INVALID NO (-2 or 0xFFFFFFFE) : FPA not opened with F OpenInstancesAndFPAs or index out of range(avoid this by using F Check FPA index first) • |