/*--------------------------------------------------------------------------- * Copyright (c) 2019 Shanghai Haobo Image Technology Co., Ltd * All rights reserved. * * File name: HbiFpd. h * Document ID: * Abstract: flat-panel detector export function header file * * Current version: 3.0 * Author: mhyang * Date: November 20, 2020 * Revision date: November 5, 2021 ----------------------------------------------------------------------------*/ #pragma once #ifndef __HBI_FPD_H_ #define __HBI_FPD_H_ #include "HbiType.h" #include "HbiError.h" #ifdef _WIN32 // for windows //#ifdef _WIN64 // (64-bit only) //#else // (32-bit only) //#endif #ifdef _DLL_EX_IM #define HBI_FPD_DLL __declspec(dllexport) #else #define HBI_FPD_DLL __declspec(dllimport) #endif #elif (__unix__ || __linux__) // for unix or linux //#ifdef __x86_64__ // (64-bit only) //#elif __i386__ // (32-bit only) //#endif #define HBI_FPD_DLL __attribute__((visibility("default"))) // very important ??? #endif //////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////// #ifdef __cplusplus extern "C" { #endif /********************************************************* * No: No001 * Function Name: HBI_Init * Function Description // Initialize dynamic dll, nonvolatile parameters and thread message parameters, establish SDK object pointer. * Parameter Description: int fpdid // Flat panel detector ID, default is 0. * Return Value: void * // Null: failure; // Non-null: success. * Comment: *********************************************************/ HBI_FPD_DLL void* HBI_Init(int fpdid=0); /********************************************************* * No: No002 * Function Name: HBI_Destroy * Function Description: // Release dynamic library resources * Parameter Description: In: void *handle // Handle, dynamic SDK object pointer Out: Null * Return Value: void * Comment: *********************************************************/ HBI_FPD_DLL void HBI_Destroy(void *handle); /********************************************************* * No: No0003 * Function Name: HBI_InitDual * Function Description: // Initialize double detector dynamic library * Parameter Description: // Callback parameter, that are two FPD handle instance In/Out: void **handle1 // Detector A¡¯s unsigned handle pointer instance In/Out: void **handle1 // Detector B¡¯s unsigned handle pointer instance * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: **********************************************************************************************************************/ HBI_FPD_DLL int HBI_InitDual(void **handle1, void **handle2); /********************************************************* * No: No0004 * Function Name: HBI_InitEx * Function Description: // Initialize double or multi detector dynamic library instance * Parameter Description: // Callback parameter, FPD instance and ID number In/Out: HBI_HANDLE *pHandArr // Array object, refer to <> In: int nArrSize // Array number, equal to DETECTOR_MAX_NUMBER * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_InitEx(HBI_HANDLE *pHandArr, int nArrSize); /********************************************************* * No: No0005 * Function Name: HBI_DestroyEx * Function Description: // Destroy all dll resources * Parameter Description: Null * Return Value: Null * Comment: *********************************************************/ HBI_FPD_DLL void HBI_DestroyEx(); /********************************************************* * No: No0006 * Function Name: HBI_GetDetectorHandle * Function Description: // Get handle through FPD ID number * Parameter Description: In:int fpdid // FPD ID number,0 《 平板id 《 DETECTOR_MAX_NUMBER * Return Value: void * // unsigned object pointer * Comment: *********************************************************/ HBI_FPD_DLL void *HBI_GetDetectorHandle(int fpdid = 0); /********************************************************* * No: No0007 * Function Name: HBI_GetDetectorId * Function Description: // Get FPD ID number through handle * Parameter Description: In:void *handle // handle pointer * Return Value: int // FPD ID number * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetDetectorId(void *handle); /********************************************************* * No: No0008 * Function Name: HBI_ActivateDetector * Function Description: // Activate detector, current SDK version supports multi FPD * Parameter Description: In:void *handle // handle pointer * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ActivateDetector(void *handle); /********************************************************* * No: No009 * Function Name: HBI_ConnectDetector * Function Description: // Establish connection * Parameter Description: In: void *handle // unsigned handle pointer COMM_CFG commCfg // refer to <> COMM_CFG UDP_COMM_TYPE = 0, Standard UDP communication method UDP_JUMBO_COMM_TYPE = 1, Standard UDP communication method,Support for jumbo PCIE_COMM_TYPE = 2, Fiber type WALN_COMM_TYPE = 3,Wireless type Int doOffsetTemp // Non-1: don’t update pre-offset template when connection is successful // 1: update pre-offset template when connection is successful Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ConnectDetector(void *handle, COMM_CFG commCfg, int doOffsetTemp = 0); /********************************************************* * No: No010 * Function Name: HBI_ConnectDetectorUdp - Standard UDP communication method HBI_ConnectDetectorJumbo - Standard UDP communication method,Support for jumbo HBI_ConnectDetectorWlan - Fiber type * Function Description: // Establish connection (gigabit Ethernet interface with typical UDP packet) * Parameter Description: In: void *handle // unsigned handle pointer char *szDetectorIp // FPD IP address: 192.168.10.40 unsigned short usDetectorPort // FPD port: 32897(0x8081) char *szlocalIp // PC IP address: 192.168.10.20 unsigned short usLocalPort // PC port: 32896(0x8080) int doOffsetTemp // Non-1: don’t update pre-offset template when connection is successful // 1: update pre-offset template when connection is successful Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ConnectDetectorUdp(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0); HBI_FPD_DLL int HBI_ConnectDetectorJumbo(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0); HBI_FPD_DLL int HBI_ConnectDetectorWlan(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0); /********************************************************* * No: No011 * Function Name: HBI_ConnectDetectorPcie * Function Description: // Establish connection (optical fiber interface) * Parameter Description: In: void *handle // unsigned handle pointer int pciedeviceid // PCIexpress device id,dfault 7024 int doOffsetTemp // 1: don’t update pre-offset template when connection is successful // Non-1: update pre-offset template when connection is successful Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: **********************************************************************************************************************/ HBI_FPD_DLL int HBI_ConnectDetectorPcie(void *handle, int pciedeviceid=7024, int doOffsetTemp = 0); /****************************************************************************** * No: No012 * Function Name: HBI_ConnectDetectorEx * Function Description: // Establish connection * Parameter Description: In: void *handle // unsigned handle pointer, refer to <> Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: <> * FPD IP Address: FPD_IP = 192.168.10.40 * FPD Port: FPD_PORT = 32897 * Local IP Address: LOCAL_IP = 192.168.10.20 * Local Port: LOCAL_PORT = 32896 * TRIGGER_MODE: 0-Invalid Trigger; 1: Static: Software Trigger; 2: Clear; 3: Static: Hvg Trigger Mode; 4: Static: AED Trigger Mode; 5: Dynamic: Hvg Sync Mode; 6: Dynamic: Fpd Sync Mode; 7: Dynamic: Free Run Mode; 8: Static: SAEC Mode; * OFFSET_ENABEL: 0: No Offset Correction; 1: Software Preoffset Correction; 2: Firmware Postoffset Correction; 3: Firmware Preoffset Correction; * GAIN_ENABLE: 0: No Gain Correction; 1: Software Gain Correction; 2: Firmware Gain Correction; * DEFECT_ENABLE: 0: No Defect Correction; 1: Software Defect Correction; 2: Firmware Defect Correction; * DUMMY_ENABLE: 0: No Dummy Correction; 1: Software Dummy Correction; 2: Firmware Dummy Correction; * LIVE_ACQ_TIME: 1000~1000ms * SELF_DUMPING_TIME: 500~500ms * PREPARE_TIME: 1500~1500ms * DO_OFFSET: 0: No action 1: Do offset template ******************************************************************************/ HBI_FPD_DLL int HBI_ConnectDetectorEx(void *handle); /********************************************************* * No: No013 * Function Name: HBI_DisConnectDetector * Function Description: // Disconnect detector * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_DisConnectDetector(void *handle); /********************************************************* * No: No014 * Function Name: HBI_RegEventCallBackFun * Function Description: // Register callback function * Parameter Description: In: void *handle // unsigned handle pointer USER_CALLBACK_HANDLE_ENVENT callbackfun // Register callback function void *pContext // Object pointer, application software transfer object pointer to SDK in order to access static and global variable Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_RegEventCallBackFun(void *handle, USER_CALLBACK_HANDLE_ENVENT handleEventfun, void *pContext); /********************************************************* * No: No015 * Function Name: HBI_ResetDetector * Function Description: // Reset detector * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ResetDetector(void *handle); /********************************************************* * No: No016 * Function Name: HBI_ResetFirmware * Function Description: // Restore factory setting * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ResetFirmware(void *handle); /********************************************************* * No: No017 * Function Name: HBI_GetFPDSerialNumber * Function Description: // Get FPD serial number * Parameter Description: In: void *handle // unsigned handle pointer In/Out: char *szSn, // Serial number length 14bits * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetFPDSerialNumber(void *handle, char *szSn); /********************************************************* * No: No018 * Function Name: HBI_GetSDKVerion * Function Description: // Get Dll version * Parameter Description: In: void *handle // unsigned handle pointer char *szVer // Dll version information string Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetSDKVerion(void *handle, char *szVer); /********************************************************* * No: No019 * Function Name: HBI_GetFirmareVerion * Function Description: // Get firmware version * Parameter Description: In: void *handle // unsigned handle pointer char *szVer // Firmware version information string Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetFirmareVerion(void *handle, char *szFirmwareVer); /********************************************************* * No: No020 * Function Name: HBI_GetError * Function Description: // Get error information, unavailable at present * Parameter Description: In: const CodeStringTable* inTable // Errata int count // Number of table int recode // Error code Out: Null * Return Value: const char * // Null: Failure // Non-null: Success * Comment: *********************************************************/ HBI_FPD_DLL const char *HBI_GetError(const CodeStringTable* inTable, int count, int recode); /********************************************************* * No: No021 * Function Name: HBI_GetFpdCfgInfo * Function Description: // Get nonvolatile config parameter(ROM) * Parameter Description: In: void *handle // unsigned handle pointer Out:RegCfgInfo* pRegCfg // Refer to <> * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetFpdCfgInfo(void *handle, RegCfgInfo* pRegCfg); /********************************************************* * No: No022 * Function Name: HBI_GetImageProperty * Function Description: // Get image property * Parameter Description: In: void *handle // unsigned handle pointer IMAGE_PROPERTY *img_pro // Image property, refer to<> IMAGE_PROPERTY Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetImageProperty(void *handle, IMAGE_PROPERTY *img_pro); /********************************************************* * No: No023 * Function Name: HBI_GetPreviewImageProperty * Function Description: // Get preview image property * Parameter Description: In: void *handle // unsigned handle pointer IMAGE_PROPERTY *img_pro // Image property, refer to<> IMAGE_PROPERTY Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetPreviewImageProperty(void *handle, IMAGE_PROPERTY *img_pro); /********************************************************* * No: No024 * Function Name: HBI_SinglePrepare * Function Description: Single image acquisition(combine with “prepare delay time” parameter) * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment:In the application, there will be a problem that the acquisition command type cannot be synchronized, resulting in the failure of the above figure. Use HBI_Prepare replacement *Prepare delay=0 - indicates soft trigger single frame acquisition first HBI_Prepare after HBI_ SingleAcquisition completes single frame acquisition *Prepare delay > "0 - means soft trigger single frame acquisition, only HBI_ Prepare is required can complete single frame acquisition according to the delay time *********************************************************/ HBI_FPD_DLL int HBI_SinglePrepare(void *handle); /********************************************************* * No: No025 * Function Name: HBI_Prepare (Add interface) * Function Description: Single image acquisition(combine with “prepare delay time” parameter) * Parameter Description: In: void *handle // unsigned handle pointer EnumIMAGE_ACQ_CMD //Current acquisition command type (image above or saved template image data) eg: SINGLE_ACQ_DEFAULT_TYPE // Single acquisition. SINGLE_ACQ_GAIN_IMAGE // Generate gain template with static single acquisition. SINGLE_ACQ_DEFECT_IMAGE // Generate defect template with static single acquisition. SINGLE_GENERATE_OFFSET, // Quickly generate template collection types, collect a group of dark field images in a single frame - SDK generates offset template. SINGLE_GENERATE_GAIN, // Quickly generate template collection types, and collect N groups of single frame (at least 3 groups by default) bright field images - SDK generates gain templates SINGLE_GENERATE_DEFECT, // Quickly generate template collection types, and collect N groups of single frame (at least 3 groups by default) bright field images - SDK generates defect templates SINGLE_GENERATE_GAIN_DEFECT // Quickly generate template collection types, and collect N groups of single frame (at least 3 groups by default) bright field images - SDK generates gain and defect templates Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *Prepare delay=0 - indicates soft trigger single frame acquisition first HBI_Prepare after HBI_ SingleAcquisition completes single frame acquisition *Prepare delay > "0 - means soft trigger single frame acquisition, only HBI_ Prepare is required can complete single frame acquisition according to the delay time *********************************************************/ HBI_FPD_DLL int HBI_Prepare(void* handle, EnumIMAGE_ACQ_CMD acqcmd = EnumIMAGE_ACQ_CMD::SINGLE_ACQ_DEFAULT_TYPE); /********************************************************* * No: No026 * Function Name: HBI_SingleAcquisition * Function Description: // Single image acquisition * Parameter Description: In: void *handle // unsigned handle pointer FPD_AQC_MODE _mode // Acquisition mode and related parameters EnumIMAGE_ACQ_MODE // Image acquisition mode SINGLE_ACQ_DEFAULT_TYPE, // Single frame acquisition SINGLE_ACQ_GAIN_IMAGE, // Distributed generation correction template for template validation, creating Gain template - single frame acquisition of bright field images SINGLE_ACQ_DEFECT_IMAGE, // Distributed generation of correction templates for template validation and creation of Defect templates - single frame acquisition of bright field images EnumLIVE_ACQUISITION eLivetype; // Only for ONLY_ IMAGE int ngroupno // Group number int nframesum // Acsuisition image number int ndiscard // Discard image number int nframeid // Frame ID number Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SingleAcquisition(void *handle, FPD_AQC_MODE _mode); /********************************************************* * No: No027 * Function Name: HBI_LiveAcquisition * Function Description: // Live acquisition * Parameter Description: In: void *handle // unsigned handle pointer FPD_AQC_MODE _mode // Work mode and related parameter The structure contains fields: EnumIMAGE_ACQ_CMD eAqccmd; // Acquisition command,Refer to the document "HbiType. h", the default drawing method is LIVE_ ACQ_ DEFAULT_ TYPE, pay attention to distinguish between single-frame acquisition and continuous acquisition commands LIVE_ACQ_DEFAULT_TYPE, // Acquisition command // Distribute and generate correction templates for template validation LIVE_ACQ_OFFSET_IMAGE, // Create Offset template - continuously acquire dark field image LIVE_ACQ_GAIN_IMAGE, // Create Gain template - continuous acquisition of bright field image LIVE_ACQ_DEFECT_IMAGE, // Create Defect template - continuous acquisition of bright field image // Quickly generate correction templates for system integration OFFSET_TEMPLATE_TYPE, // Quickly generate template collection types, continuously collect a group of dark field images and generate offset templates, and firmware generates templates GAIN_TEMPLATE_TYPE, // Quickly generate template collection types, continuously collect a group of bright field images and generate gain templates DEFECT_TEMPLATE_GROUP1, // Quickly generate template collection types and continuously collect a group of bright field images - defect group1 DEFECT_TEMPLATE_GROUP2, // Quickly generate template collection types and continuously collect a group of bright field images - defect group2 DEFECT_TEMPLATE_GROUP3, // Quickly generate template collection types and continuously collect a group of bright field images - defect group3 and generate template SOFTWARE_OFFSET_TEMPLATE // Quickly generate template acquisition types and continuously collect a group of dark field images - SDK generates offset template Enum LIVE_ACQUISITION eLivetype; // Live acquisition only, detail refer to LIVE_ACQ_DEFAULT_TYPE. // 1 - generate the firmware Preoffset template and then continue to // acquire image. // 2 - image acquisition only. // 3 - generate firmware Preoffset template only. int ngroupno; // Group number. int nAcqnumber; // Reserved image number. int ndiscard; // Discard image number. int nframeid; // Counter. * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_LiveAcquisition(void *handle, FPD_AQC_MODE _mode); /********************************************************* * No: No028 * Function Name: StopAcquisition * Function Description: // Stop live acquisition * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_StopAcquisition(void *handle); /********************************************************* * No: No029 * Function Description: // Prepare delay time setting, which is also called exposure window * Parameter Description: In: void *handle // unsigned handle pointer Out: int *out_itime // Time(0~10000), unit: ms // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command are combined to realize single image acquisition // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command. * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetSinglePrepareTime(void *handle, int in_itime); /********************************************************* * No: No030 * Function Name: HBI_GetSinglePrepareTime * Function Description: // Get prepare delay time value, which is also called exposure window * Parameter Description: In: void *handle // unsigned handle pointer Out: int *out_itime // Time(0~10000), unit: ms // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command is combined to realize single image acquisition // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command. * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetSinglePrepareTime(void *handle, int *out_itime); /********************************************************* * No: No031 * Function Name: HBI_SetLiveAcquisitionTime. (Static flat panel detector) * Function Description: // Live acquisition span time setting (apply to static and wireless type FPD) * Parameter Description: In: void *handle // unsigned handle pointer int time // Live acquisition span time, unit: ms Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetLiveAcquisitionTime(void *handle, int time); /********************************************************* * No: No032 * Function Name: HBI_GetLiveAcquisitionTime. (Static flat panel detector) * Function Description: // Get live acquisition span time (apply to static and wireless type FPD) * Parameter Description: In: void *handle // unsigned handle pointer Out: int *out_time // Live acquisition span time, unit: ms * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetLiveAcquisitionTime(void *handle, int *out_time); /********************************************************* * No: No033 * Function Name: HBI_SetSelfDumpingTime(Dynamic flat panel detector) * Function Description: // Self dumping span time setting * Parameter Description: In: void *handle // unsigned handle pointer int time // Self dumping span time, unit: ms Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetSelfDumpingTime(void *handle, int time); /********************************************************* * No: No034 * Function Name: HBI_GetSelfDumpingTime(Dynamic flat panel detector) * Function Description: // Get self dumping span time * Parameter Description: In: void *handle // unsigned handle pointer Out: int *out_time // Self dumping span time, unit: ms * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetSelfDumpingTime(void *handle, int *out_time); /********************************************************* * No: No035 * Function Name: HBI_TriggerAndCorrectApplay * Function Description: // Work mode and image calibration setting * Parameter Description: In: void *handle // unsigned handle pointer int _triggerMode // 1: Software trigger mode // 3: High voltage generator trigger mode // 4: AED trigger mode // 5-Dynamic:Hvg Sync Mode // 6-Dynamic:Fpd Sync Mode // 7-Dynamic:Fpd Continue // 8-SAEC。 IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>> Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: Replace “HBI_WorkStationInitDllCfg” and “HBI_QuckInitDllCfg” API function *********************************************************/ HBI_FPD_DLL int HBI_TriggerAndCorrectApplay(void *handle, int _triggerMode, IMAGE_CORRECT_ENABLE* pCorrect); /********************************************************* * No: No036 * Function Name: HBI_UpdateTriggerMode * Function Description: trigger mode setting * Parameter Description: In: void *handle // unsigned handle pointer int _triggerMode, // 1: Software trigger mode // 3: High voltage generator trigger mode // 4: AED trigger mode // 5-Dynamic:Hvg Sync Mode // 6-Dynamic:Fpd Sync Mode // 7-Dynamic:Fpd Continue // 8-SAEC。 Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_UpdateTriggerMode(void *handle, int _triggerMode); /********************************************************* * No: No037 * Function Name: HBI_UpdateCorrectEnable * Function Description: // Firmware calibration enable setting * Parameter Description: In: void *handle // unsigned handle pointer IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>> Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_UpdateCorrectEnable(void *handle, IMAGE_CORRECT_ENABLE* pCorrect); /********************************************************* * No: No038 * Function Name: HBI_GetCorrectEnable * Function Description: // Get image calibration enable status * Parameter Description: In: void *handle // unsigned handle pointer IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>> Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetCorrectEnable(void *handle, IMAGE_CORRECT_ENABLE *pCorrect); /********************************************************* * No: No039 * Function Name: HBI_SetSoftwareCorrect * Function Description: // Software calibration enable setting * Parameter Description: In: void *handle // unsigned handle pointer SOFTWARE_CALIBRATE_ENABLE inEnable // refer to<< HbiType.h>> SOFTWARE_CALIBRATE_ENABLE struct Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetSoftwareCorrect(void *handle, SOFTWARE_CALIBRATE_ENABLE inEnable); /********************************************************* * No: No040 * Function Name: HBI_GetSoftwareCorrect * Function Description: // Get software calibration enable status * Parameter Description: In: void *handle // unsigned handle pointer SOFTWARE_CALIBRATE_ENABLE inEnable // refer to<> SOFTWARE_CALIBRATE_ENABLE struct Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetSoftwareCorrect(void *handle, SOFTWARE_CALIBRATE_ENABLE *inEnable); /********************************************************* * No: No041 * Function Name: HBI_SetAedIntegrateTm * Function Description: // AED integration time setting * Parameter Description: In: void *handle // unsigned handle pointer int time // AED integration time, unit: ms, default = 500ms Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetAedIntegrateTm(void *handle, int time); /********************************************************* * No: No042 * Function Name: HBI_GetAedIntegrateTm * Function Description: // Get AED integration time * Parameter Description: In: void *handle // unsigned handle pointer Out: int *out_time // AED integration time, unit: ms * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetAedIntegrateTm(void *handle, int *out_time); /********************************************************* * No: No043 * Function Name: HBI_SetAedThreshold * Function Description: // AED threshold value setting * Parameter Description: In: void *handle // unsigned handle pointer int out_ivalue // AED threshold (10,000~1,000,000) Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetAedThreshold(void *handle, int in_ivalue); /********************************************************* * No: No044 * Function name: HBI_ GetAedThreshold * Function description: Obtain AED threshold * Parameter Description: In: void * handle - Handle (unsigned pointer) Out: int * out_ Ivalue - threshold [10000~1000000] * Return value: int 0- Success Non 0- Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_GetAedThreshold(void *handle, int *out_ivalue); /********************************************************* * No: No045 * Function Name: HBI_SetSaturationValue * Function Description: // Saturation value setting * Parameter Description: In: void *handle // unsigned handle pointer Out:int *out_ivalue // Saturation value (0 ~ 65,535) * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetSaturationValue(void *handle, int in_ivalue); /********************************************************* * No: No046 * Function Name: HBI_GetSaturationValue * Function Description: // Get saturation setting value * Parameter Description: In: void *handle // unsigned handle pointer Out:int *out_ivalue // Saturation value (0 ~ 65,535) * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetSaturationValue(void *handle, int *out_ivalue); /********************************************************* * No: No047 * Function Name: HBI_SetClippingValue * Function Description: // Clipping value setting * Parameter Description: In: void *handle // unsigned handle pointer Out:int *out_ivalue // Clipping value (0 ~ 65,535) * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetClippingValue(void *handle, int in_ivalue); /********************************************************* * No: No048 * Function Name: HBI_GetClippingValue * Function Description: // Get clipping value * Parameter Description: In: void *handle // unsigned handle pointer Out:int *out_ivalue // Clipping value (0 ~ 65,535) * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetClippingValue(void *handle, int *out_ivalue); /********************************************************* * No: No049 * Function Name: HBI_SetPGALevel * Function Description: // PGA gain stage setting * Parameter Description: In: void *handle // unsigned handle pointer int mode // PGA gain stage // 1: 0.6 pC; // 2: 1.2 pC; // 3: 2.4 pC; // 4: 3.6 pC; // 5: 4.8 pC; // 6: 7.2 pC; // 7: 9.6 pC; // 8: LFW with CMOS detector // 9: HFW with CMOS detector // 10: 0.3 pC; // 11: 0.15 pC; // Default: 7.2pC. Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetPGALevel(void *handle, int nGainLevel); /********************************************************* * No: No050 * Function Name: HBI_GetPGALevel * Function Description: // Get PGA gain stage setting value * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // PGA gain stage // 1: 0.6 pC; // 2: 1.2 pC; // 3: 2.4 pC; // 4: 3.6 pC; // 5: 4.8 pC; // 6: 7.2 pC; // 7: 9.6 pC; // 8: LFW with CMOS detector // 9: HFW with CMOS detector // 10: 0.3 pC; // 11: 0.15 pC; // Default: 7.2pC. * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetPGALevel(void *handle); /********************************************************* * No: No051 * Function Name: HBI_SetLPFLevel * Function Description: // Low pass filter setting * Parameter Description: In: void *handle // unsigned handle pointer int nLPFLevel // Low pass filter // 0: 210 kHz, default value is 210 kHz // 1: 105 kHz // 2: 52 kHz // 3: 26 kHz // 4: 13 kHz Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetLPFLevel(void *handle, int nLPFLevel); /********************************************************* * No: No052 * Function Name: HBI_GetLPFLevel * Function Description: // Get pass filter * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // Low pass filter // 0: 210 kHz, default value is 210 kHz // 1: 105 kHz // 2: 52 kHz // 3: 26 kHz // 4: 13 kHz * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetLPFLevel(void *handle); /********************************************************* * No: No053 * Function Name: HBI_SetBinning * Function Description: Binning mode setting * Parameter Description: In: void *handle // unsigned handle pointer unsigned int nbin // Binning mode // 1: 1x1 // 2: 2x2 // 3: 3x3 // 4: 4x4 Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetBinning(void *handle, unsigned int bin); /********************************************************* * No: No054 * Function Name: HBI_GetBinning * Function Description: // Get binning mode setting value * Parameter Description: In: void *handle // unsigned handle pointer unsigned int *nbin // Binning mode // 1: 1x1 // 2: 2x2 // 3: 3x3 // 4: 4x4 Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetBinning(void *handle, unsigned int *bin); /********************************************************* * No: No055 * Function Name: HBI_SetPreviewMode * Function Description: Preview mode setting * Parameter Description: In: void *handle - // unsigned handle pointer int inTriggMode 1-Soft trigger 3-High voltage trigger 4-FreeAED 5-Dynamic:Hvg Sync Mode 6-Dynamic:Fpd Sync Mode 7-Dynamic:Fpd Continue 8-SAEC Other not supported。 int inPreviewMode // Image acquire and display mode // 0: normal image, // 1: preview image // 2: preview + normal image Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetPreviewMode(void *handle, int inTriggMode, int inPreviewMode); /********************************************************* * No: No056 * Function Name: HBI_GetPreviewMode * Function Description: // Get preview mode setting value * Parameter Description: In: void *handle // unsigned handle pointer Out: int *outmode // Image acquire and display mode [0~2] // 0: normal image, // 1: preview image // 2: preview + normal image * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetPreviewMode(void *handle, int *outMode); /********************************************************* * No: No057 * Function Name: HBI_SAecModeApply * Function Description: // SAEC mode setting * Parameter Description: In: void *handle // unsigned handle pointer int inPreviewMode // 0: Normal image // 1: Preview image int inPerTime // FPD pre ready delay time int inPostTime // FPD post ready delay time Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: 1. inPreviewMode=0(normal image) 2. inPreviewMode=1(preview image), user define inPerTime and inPostTime *********************************************************/ HBI_FPD_DLL int HBI_SAecModeApply(void *handle, int inPreviewMode, int inPerTime = 0, int inPostTime = 0); /********************************************************* * No: No058 * Function Name: HBI_SAecAcq * Function Description: // SAEC image acquisition * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SAecAcq(void *handle); /********************************************************* * No: No059 * Function Name: HBI_RegProgressCallBack * Function Description: // Register callback function, feedback template or firmware downloading progress status * Parameter Description: In: void *handle // unsigned handle pointer USER_CALLBACK_HANDLE_PROCESS handleStatusfun // Register callback function void *pObject // Object pointer, Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_RegProgressCallBack(void *handle, USER_CALLBACK_HANDLE_PROCESS handleStatusfun, void* pObject); /********************************************************* * No: No060 * Function Name: HBI_GenerateTemplate * Function Description: // Quick generate offset, gain, defect template * Parameter Description: In: void *handle // unsigned handle pointer EnumIMAGE_ACQ_MODE _mode // Type of template OFFSET_TEMPLATE_MODE // Offset template GAIN_TEMPLATE_MODE // Gain template DEFECT_ACQ_GROUP1, // Defect template with group1 image DEFECT_ACQ_GROUP2, // Defect template with group2 image DEFECT_ACQ_AND_TEMPLATE // Defect template with group3 image and generate template Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: * 1、OFFSET_TEMPLATE: Generate a dark field template, note that the ball tube is closed, and the firmware collects a set of dark field images and generates an Offset template * 2、GAIN_TEMPLATE: To generate a gain correction template, it is necessary to open the ball tube, adjust the dose switch, and start the plate to collect bright field images and generate a gain template * 3、DEFECT_TEMPLATE_ GROUP1: To generate a bad spot correction template, it is necessary to open the ball tube, adjust the dose, and start collecting the first group of bright field images on the flat panel * 4、DEFECT_TEMPLATE_ GROUP2: To generate a bad spot correction template, it is necessary to open the ball tube, adjust the dose, and start collecting the second group of bright field images on the flat panel * 5、DEFECT_TEMPLATE_ GROUP3: To generate a bad spot correction template, it is necessary to open the ball tube, adjust the dose, and start the plate to collect the third group of bright field images and generate a bad template * 6、SOFTWARE_OFFSET_TEMPLATE: Generate a dark field template. Note that the ball tube is closed. The SDK collects a set of dark field images and generates an Offset template *********************************************************/ HBI_FPD_DLL int HBI_GenerateTemplate(void *handle, EnumIMAGE_ACQ_CMD _mode); /********************************************************* * No: No061 * Function Name: HBI_DownloadTemplate * Function Description: // Download calibration template * Parameter Description: In: void *handle // unsigned handle pointer DOWNLOAD_FILE *downloadfile // Template file object pointer emUPLOAD_FILE_TYPE emfiletype-Template type(OFFSET_TMP-offset template.GAIN_TMP-gain template,DEFECT_TMP-defect template) int nBinningtype-template binning type(1-binning1*1,2-binning2*2,3-binning3*3,4-binning4*4) char filepath-Template absolute path Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_DownloadTemplate(void *handle, DOWNLOAD_FILE *downloadfile); /********************************************************* * No: No062 * Function Name: HBI_DownloadTemplateEx * Function Description: // Download calibration template * Parameter Description: In: void *handle // unsigned handle pointer DOWNLOAD_MODE *downloadmode - Download template file link list pointer DOWNLOAD_FILE *downloadfile - Template file object pointer emUPLOAD_FILE_TYPE emfiletype-Template type(OFFSET_TMP-offset template.GAIN_TMP-gain template,DEFECT_TMP-defect template) int nBinningtype-template binning type(1-binning1*1,2-binning2*2,3-binning3*3,4-binning4*4) char filepath-Template absolute path Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_DownloadTemplateEx(void *handle, DOWNLOAD_MODE *downloadmode); /********************************************************* * No: No063 * Function Name: HBI_DownloadTemplateByType * Function Description: // Download calibration template by template type * Parameter Description: In: void *handle // unsigned handle pointer int infiletype //Download file types 0-gain template, 1-defect template, 2-offset template, others - not supported. Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_DownloadTemplateByType(void *handle, int infiletype); /********************************************************* * No: No064 * Function Name: HBI_StopDownloadTemplate * Function Description: // Stop download calibration template * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_StopDownloadTemplate(void *handle); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /********************************************************* * No: No065 * Function Name: HBI_UpgradeFirmware * Function Description: Update firmware information or wireless embedded software * Parameter Description: In: void *handle // unsigned handle pointer char *binfile - Bin file path int filetype - 0: FPGA software, 1: Embedded software, 2:pcie driver Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_UpgradeFirmware(void *handle, char *binfile, int filetype=0); /********************************************************* * No: No066 * Function Name: HBI_StopUpdateFirmware * Function Description: Stop updating firmware * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_StopUpdateFirmware(void *handle); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /********************************************************* * No: No067 * Function Name: HBI_Dumping * Function Name: Clear command * Parameter Description: In: void *handle // unsigned handle pointer Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_Dumping(void *handle); /********************************************************* * No: No068 * Function Name: HBI_GetSysParamCfg * Function Description: Read back the system RAM/ROM parameters, asynchronous events, and feed back the parameters in the callback function * Parameter Description: In: void *handle - unsigned handle pointer int cmd - rom or ram int type - user or admin Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetSysParamCfg(void *handle, int cmd, int type); /********************************************************* * No: No069 * Function Name: HBI_SetSysParamCfg * Function Description: Set system RAM/ROM parameters * Parameter Description: In: void *handle - unsigned handle pointer int cmd - int type - RegCfgInfo* pRegCfg - Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetSysParamCfg(void *handle, int cmd, int type, RegCfgInfo* pRegCfg); /********************************************************* * No: No070 * Function Name: HBI_SetGigabitEther * Function Description: Set network information parameters * Parameter Description: In: void *handle - unsigned handle pointer EtherInfo* pEther,refer to <>。 Out:None * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetGigabitEther(void *handle, EtherInfo* pEther); /********************************************************* * No: No071 * Function Name: HBI_RetransMissPacket * Function Description: Single packet loss retransmission * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_RetransMissPacket(void *handle); /********************************************************* * No: No072 * Function Name: HBI_RetransMissFrame * Function Description: Entire frame retransmission * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_RetransMissFrame(void *handle); /********************************************************* * No: No073 * Function Name: HBI_IsConnect * Function Description: Determine whether the detector is connected * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:int 1 - connect 0 - disconnect * Comment: *********************************************************/ HBI_FPD_DLL int HBI_IsConnect(void *handle); /********************************************************* * No: No074 * Function Name: HBI_GetCurFPDStatus * Function Description: Get the current status of the detector * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0 - idle status,Idle state 1 - busy status,Busy state,Reject the operation * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetCurFPDStatus(void *handle); /********************************************************* * No: No075 * Function Name: HBI_SetCapacity * Function Description: Set buffer capacity (size) * Parameter Description: In: void *handle - unsigned handle pointer unsigned int nframesize - The number of frames that can be stored, The buffer size is equal to the frame size multiplied by the number of frames。 Out: Null * Return Value:int 0: Success Non-0: Failure,Reference error code ‘HbiError.h' * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetCapacity(void *handle, unsigned int nframesize); /********************************************************* * No: No076 * Function Name: HBI_SetRawStyle * Function Description: Set whether to save the image and the image file format * Parameter Description: In: void *handle - unsigned handle pointer bool bsave - Save or display,false:Display without saving,true:Save Don't Display bool bsingleraw - Save in a single file or multiple files, false: 1 frame data can be saved in one file, true: multiple frame data can be saved in one file Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetRawStyle(void *handle, bool bsave, bool bsingleraw = false); /********************************************************* * No: No077 * Function Name: HBI_SetAqcProperty * Function Description: Set collection properties * Parameter Description: In: void *handle - unsigned handle pointer FPD_AQC_MODE _mode - Acquisition mode and parameters Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetAqcProperty(void *handle, FPD_AQC_MODE _mode); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /********************************************************* * No: No078 * Function Name: HBI_SetDebugMode * Function Description: Switch debugging mode and production mode - used to debug PCIE interface * Parameter Description: In: void *handle - unsigned handle pointer int mode - 0: production mode, 1-PCIE debugging mode Out: Null * Return Value:int 0: Success Non-0: Failure * Comment:Debug PCIE interface *********************************************************/ HBI_FPD_DLL int HBI_SetDebugMode(void *handle, int mode); /********************************************************* * No: No079 * Function Name: HBI_PcieSendBuff * Function Description: Send data to PCIE address, valid only in PCIE debugging mode * Parameter Description: In: void *handle - unsigned handle pointer ePCIE_WR_TYPE etype - 'Bar' address or 'ddr' address type long addr - 'Bar' address or 'ddr' address unsigned char *szSndBuff - Write Buffer int nlen - Buffer data length Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_PcieSendBuff(void *handle, ePCIE_WR_TYPE etype, long addr, unsigned char *szSndBuff, int nlen); /********************************************************* * No: No080 * Function Name: HBI_PcieRecvBuff * Function Description: Read PCIE address data, valid only in PCIE debug mode * Parameter Description: In: void *handle - unsigned handle pointer ePCIE_WR_TYPE etype - 'Bar' address or 'ddr' address type long addr - 'Bar' address or 'ddr' address unsigned char *szRcvbuff - Receive Buffer int nlen - Buffer data length Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_PcieRecvBuff(void *handle, ePCIE_WR_TYPE _type, long addr, unsigned char *szRcvbuff, int nlen); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Distributed generation template is used for template testing. For integration, please refer to the interface of rapid generation template ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /********************************************************* * No: No081 * Function Name: HBI_InitOffsetMode * Function Description: Initialize dark field template * Parameter Description: In: void *handle - unsigned handle pointer CALIBRATE_INPUT_PARAM calibrate_param,refer to <>。 Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_InitOffsetMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param); /********************************************************* * No: No082 * Function Name: HBI_InsertOffsetMode * Function Description: Insert data into offset correction model * Parameter Description: In: void *handle - unsigned handle pointer int group_id - group ID char *filepath - File path Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_InsertOffsetMode(void *handle, int group_id, char *filepath); /********************************************************* * No: No083 * Function Name: HBI_ClearOffsetMode * Function Description: Clear offset correction model * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ClearOffsetMode(void *handle); /********************************************************* * No: No084 * Function Name: HBI_GenerateOffsetTemp * Function Description: Generate offset template * Parameter Description: In: void *handle - unsigned handle pointer int raw_num - Number of dark field pictures int bprevew - Whether to generate preview template, 1-generate, 0-do not generate Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GenerateOffsetTemp(void *handle, int raw_num, int bprevew = 0); /********************************************************* * No: No085 * Function Name: HBI_InitGainMode * Function Description: Initialize gain correction model * Parameter Description: In: void *handle - unsigned handle pointer CALIBRATE_INPUT_PARAM calibrate_param -Correction parameters Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_InitGainMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param); /********************************************************* * No: No086 * Function Name: HBI_InsertGainMode * Function Description: Insert data into the gain correction model * Parameter Description: In: void *handle - unsigned handle pointer int group_id - group ID char *filepath - File path Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_InsertGainMode(void *handle, int group_id, char *filepath); /********************************************************* * No: No087 * Function Name: HBI_ClearGainMode * Function Description: Empty gain correction model * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ClearGainMode(void *handle); /********************************************************* * No: No088 * Function Name: HBI_GenerateGainTemp * Function Description: Generate gain template * Parameter Description: In: void *handle - unsigned handle pointer int group_sum - groups int per_group_num - Generate the number of pictures in each group of gain template int bprevew - Whether to generate preview template, 1-generate, 0-do not generate Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GenerateGainTemp(void *handle, int group_sum, int per_group_num, int bprevew = 0); /********************************************************* * No: No089 * Function Name: HBI_InitDefectMode * Function Description: Initialize the defect correction model * Parameter Description: In: void *handle - unsigned handle pointer CALIBRATE_INPUT_PARAM calibrate_param - Correction parameters Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_InitDefectMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param); /********************************************************* * No: No090 * Function Name: HBI_InsertDefectMode * Function Description: Insert data into the defect correction model * Parameter Description: In: void *handle - unsigned handle pointer int group_id - group ID char *filepath - File path Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_InsertDefectMode(void *handle, int group_id, char *filepath); /********************************************************* * No: No091 * Function Name: HBI_ClearDefectMode * Function Description: Empty the defect correction model * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ClearDefectMode(void *handle); /********************************************************* * No: No092 * Function Name: HBI_GenerateDefectTemp * Function Description: Generate defect template * Parameter Description: In: void *handle - unsigned handle pointer int group_sum - groups int per_group_num - Number of pictures in each group int bprevew - Whether to generate preview template, 1-generate, 0-do not generate Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GenerateDefectTemp(void *handle, int group_sum, int per_group_num, int bprevew = 0); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // File working directory address management, not yet support ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////********************************************************* ////* No: No093 ////* Function Name: HBI_SetFileDirectory ////* Function Description: Set file storage path ////* Parameter Description: //// In: void *handle - unsigned handle pointer //// HBI_FILE_TYPE filetype - File type, enumeration class //// 0 IMAGE_FILE //// 1 TEMPLATE_FILE //// char *dirpath - File path //// Out: Null ////* Return Value:int //// 0: Success //// Non-0: Failure ////* Comment: ////*********************************************************/ ////HBI_FPD_DLL int HBI_SetFileDirectory(void *handle, HBI_FILE_TYPE filetype, char *dirpath); /********************************************************* * No: No094 * Function Name: HBI_GetFileDirectory * Function Description: Get the current file storage path * Parameter Description: In: void *handle - unsigned handle pointer HBI_FILE_TYPE filetype - File type, enumeration class 0 IMAGE_ FILE - image file directory 1 TEMPLATE_ FILE - Calibration template file directory (refers to gain and defect template file path) 2 TEMPLATE_ IMG-calibration template middle image data file directory Out: Null * Return Value:int NULL - Failure char* - return path * Comment: *********************************************************/ HBI_FPD_DLL char* HBI_GetFileDirectory(void *handle, HBI_FILE_TYPE filetype); /********************************************************* * No: No095 * Function Name: HBI_GetCurTempFileFullDirectory * Function Description: Get the full directory of the current template file according to the template type * Parameter Description: In: void *handle - unsigned handle pointer In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template; Out: Null * Return Value:char* NULL - Failure char* - Return directory path * Comment: *********************************************************/ HBI_FPD_DLL char* HBI_GetCurTempFileFullDirectory(void *handle, int temptype=0); /********************************************************* * No: No096 * Function Name: HBI_IsBusyNow * Function Description: Judge whether the current SDK is being processed. The current operation is not allowed * Parameter Description: In: void *handle - unsigned handle pointer eventtype - Generate template type 1 Distribution generation template processing 2. Rapid template generation is in progress 3. During collection 4. During parameter setting Out: Null * Return Value:int 0 - idle status,Indicates that the operation can be performed 1 - busy status,Indicates that the operation is refused because the status is busy * Comment: *********************************************************/ HBI_FPD_DLL int HBI_IsBusyNow(void *handle, int eventtype); /********************************************************* * No: No097 * Function Name: HBI_SetCuttingImageRect * Function Description: set rect of cutting image * Parameter Description: In: void *handle - unsigned handle pointer In: CuttingImageRect *roi - The param of 'rect of cutting image' * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetCuttingImageRect(void *handle, CuttingImageRect*roi); /********************************************************* * No: No098 * Function Name: HBI_GetCuttingImageRect * Function Description: get rect of cutting image * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:CuttingImageRect* NULL - Failure Non-NULL - Success,The param of 'rect of cutting image' * Comment: *********************************************************/ HBI_FPD_DLL CuttingImageRect* HBI_GetCuttingImageRect(void *handle); ////////////////////////////////////////////////////////////////////////// // User Mode Development add by mhyang 20230327 ////////////////////////////////////////////////////////////////////////// /********************************************************* * No: No099 * Function Name: HBI_GetCurModeList * Function Description: Get Mode List * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:FPD_MODE_LIST* NULL - Failure Non-NULL - Success,The param of User Acquisition Mode Parameter Configuration * Comment: *********************************************************/ HBI_FPD_DLL FPD_MODE_LIST* HBI_GetCurModeList(void* handle); /********************************************************* * No: No100 * Function Name: HBI_UpdateModeList * Function Description: Update Mode List * Parameter Description: In: void *handle - unsigned handle pointer FPD_MODE_LIST* modelist -User Acquisition Mode Parameter Configuration * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_UpdateModeList(void* handle, FPD_MODE_LIST* modelist); /********************************************************* * No: No101 * Function Name: HBI_GetCurModeData * Function Description: Obtain the current Mode Data * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:FPD_MODE_DATA* NULL - Failure Non-NULL - Success,The param of fpd mode data information * Comment: *********************************************************/ HBI_FPD_DLL FPD_MODE_DATA* HBI_GetCurModeData(void* handle); /********************************************************* * No: No102 * Function Name: HBI_UpdateCurModeData * Function Description: Update current Mode Data * Parameter Description: In: void *handle - unsigned handle pointer FPD_MODE_DATA* mode -fpd mode data information * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_UpdateCurModeData(void* handle, FPD_MODE_DATA* mode); /********************************************************* * No: No103 * Function Name: HBI_UpdateModeData * Function Description: Update Mode Item Data through Mode ID * Parameter Description: In: void *handle - unsigned handle pointer FPD_MODE_DATA* mode -fpd mode data information unsigned int id - mode id * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_UpdateModeData(void* handle, FPD_MODE_DATA* mode, unsigned int id = 0); /********************************************************* * No: No104 * Function Name: HBI_GetModeData * Function Description: Obtain Mode Data through Mode ID * Parameter Description: In: void *handle - unsigned handle pointer unsigned int id - mode id * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL FPD_MODE_DATA* HBI_GetModeData(void* handle, unsigned int id = 0); /********************************************************* * No: No105 * Function Name: HBI_GetModeListSize * Function Description: Obtain the number of items for Mode * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL unsigned int HBI_GetModeListSize(void* handle); /********************************************************* * No: No106 * Function Name: HBI_GetCurModeID * Function Description: Obtain the current Mode ID * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetCurModeID(void* handle); /********************************************************* * No: No107 * Function Name: HBI_SwitchUserMode * Function Description: Switch Mode * Parameter Description: In: void *handle - unsigned handle pointer unsigned int modeid - mode id FPD_MODE_DATA *PMODEDATA - fpd mode data information * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SwitchUserMode(void* handle, unsigned int modeid = 0, FPD_MODE_DATA *PMODEDATA=NULL); /********************************************************* * No: No108 * Function Name: HBI_ModeExists * Function Description: Determine whether the mode exists * Parameter Description: In: void *handle - unsigned handle pointer FPD_MODE_DATA mode - fpd mode data information * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ModeExists(void* handle, FPD_MODE_DATA mode); /********************************************************* * No: No109 * Function Name: HBI_CheckCurtMode * Function Description: Judge whether the mode is normal * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL bool HBI_CheckCurtMode(void* handle); /********************************************************* * No: No110 * Function Name: HBI_ModeCorrectTempalteEnable * Function Description: The calibration template of Mode is effective or not effective * Parameter Description: In: void *handle - unsigned handle pointer unsigned int id - mode id bool bEnable - 1 - vailid, 0-invaild * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ModeCorrectTempalteEnable(void* handle, unsigned int id, bool bEnable = true); /********************************************************* * No: No111 * Function Name: HBI_AllModeCorrectTempalteEnable * Function Description: All calibration templates for Mode items are valid or not valid * Parameter Description: In: void *handle - unsigned handle pointer bool bEnable - 1 - vailid, 0-invaild * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_AllModeCorrectTempalteEnable(void* handle, bool bEnable = true); /********************************************************* * No: No112 * Function Name: HBI_SaveModeList2File * Function Description: Save the current user mode list * Parameter Description: In: void *handle - unsigned handle pointer char* szPath - file path * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SaveModeList2File(void* handle, char* szPath = NULL); /********************************************************* * No:No113 * Function name: HBI_DownloadModeTemplate (new) * Function description: Download template based on Mode parameter * Parameter Description: In: void * handle - Handle (unsigned pointer) Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported Out: None * Return value: int 0- Success Non 0- Failed * Note: Download template add by mhyang 20230606 *********************************************************/ HBI_FPD_DLL int HBI_DownloadModeTemplate(void* handle, DOWNLOAD_MODE_FILE downloadfile); /********************************************************* * No:No114 * Function name: HBI_ DownloadModeTemplateByType (new) * Function description: Download correction template files by template type (default to current Mode Id) * Parameter Description: In: void * handle - Handle (unsigned pointer) Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported Out: None * Return value: int 0- Success Non 0- Failed * Note: Download template add by mhyang 20230606 *********************************************************/ HBI_FPD_DLL int HBI_DownloadModeTemplateByType(void* handle, int intemptype); /********************************************************* * No:No115 * Function name: HBI_DownloadModeTemplateByIdAndType (new) * Function description: Download correction template files according to Mode Id and template type * Parameter Description: In: void * handle - Handle (unsigned pointer) Unsigned int modeid - Mode Id [0,9] Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported Out: None * Return value: int 0- Success Non 0- Failed * Note: Download template add by mhyang 20230605 *********************************************************/ HBI_FPD_DLL int HBI_DownloadModeTemplateByIdAndType(void* handle, unsigned int modeid, int intemptype); /********************************************************* * No:No116 * Function Name: HBI_GetCurModeTemplateStatus(new) * Function Description: 获取当前Mode项的固件校正模板状态 * Parameter Description: In: void *handle - unsigned handle pointer unsigned int modeid - Mode Id [0,9] int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - not supported Out: None * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetCurModeTemplateStatus(void* handle, int* nTempStatus); ////////////////////////////////////////////////////////////////////////// // User Mode Development add by mhyang 20230328 ////////////////////////////////////////////////////////////////////////// /********************************************************* * No:No117 * Function Name: HBI_GetCurrentCorrectFilePath * Function Description: Obtain the absolute path of the current template file according to the template type * Parameter Description: In: void *handle - unsigned handle pointer In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template; Out: Null * Return Value:char* NULL - Failure char* - Return absolute path * Comment: *********************************************************/ HBI_FPD_DLL char* HBI_GetCurrentCorrectFilePath(void *handle, int tempType=0); /********************************************************* * No:No118 * Function name: HBI_DetectorPrimaryAuthor * Function description: 略 * Parameter Description: In: void * handle - Handle (unsigned pointer) Int pcode - Out: None * Return value: int 0- Success Non 0- Failed * Note: add by mhyang 20211228 *********************************************************/ HBI_FPD_DLL int HBI_DetectorPrimaryAuthor(void *handle, char *pcode); /********************************************************* * No:No119 * Function name: HBI_DetectorSecondaryAuthor * Function description: 略 * Parameter Description: In: void * handle - Handle (unsigned pointer) Int pcode - Out: None * Return value: int 0- Success Non 0- Failed * Note: add by mhyang 20220211 *********************************************************/ HBI_FPD_DLL int HBI_DetectorSecondaryAuthor(void *handle, char *pcode); /********************************************************* * No: No120 * Function Name: HBI_DownloadImage * Function Description: Download image (wireless detector) * Parameter Description: In: void *handle - unsigned handle pointer int beginnumber - Download start image sequence number * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_DownloadImage(void *handle, int beginnumber = 1); /********************************************************* * No: No121 * Function Name: HBI_SetSleepState * Function Description: Set the detector to sleep (wireless detector) * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetSleepState(void *handle); /********************************************************* * No: No122 * Function Name: HBI_WakeUpFpd * Function Description: Wake up tablet from sleep (wireless detector) * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_WakeUpFpd(void *handle); /********************************************************* * No: No123 * Function Name: HBI_EnableEmmcStorage * Function Description: Emmc storage image enable (wireless detector) * Parameter Description: In: void *handle - unsigned handle pointer int nenable - 1: Save, others: not save * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_EnableEmmcStorage(void *handle, int nenable = 0); /********************************************************* * No: No124 * Function Name: HBI_ReflashBatteryStatusInfo * Function Description: Refresh battery information (wireless detector) * Parameter Description: In: void *handle - unsigned handle pointer * Return Value:int 0: Success Non-0: Failure * Comment: Asynchronous function, feedback through callback function *********************************************************/ HBI_FPD_DLL int HBI_ReflashBatteryStatusInfo(void *handle); /********************************************************* * No: No125 * Function Name: HBI_GetBatteryStatusInfo * Function Description: Get battery information (wireless detector) * Parameter Description: In: void *handle - unsigned handle pointer BATTERY_STATUS_INFO *pBatteryStatus - Battery status information, refer to <> Out:BATTERY_STATUS_INFO *pBatteryStatus * Return Value:int 0: Success Non-0: Failure * Comment:Synchronization function, parameters are synchronized and fed back to the upper computer through input parameters *********************************************************/ HBI_FPD_DLL int HBI_GetBatteryStatusInfo(void *handle, BATTERY_STATUS_INFO *pBatteryStatus); ///////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////// /********************************************************* * No: No126 * Function Name: HBI_TriggerBinningAcqTime * Function Description: // Work mode, binning, frame speed setting * Parameter Description: In: void *handle // unsigned handle pointer int triggerMode // Work mode // Static: // 01: Software trigger mode; // 02: Clear; // 03: High voltage generator(hvg) trigger mode; // 04: Auto exposure detection mode. // Dynamic: // 05: Hvg pulse sync in trigger mode; // 06: Fpd pulse sync out trigger Mode; // 07: Free run mode. unsigned char binning // 1: 1x1, // 2: 2x2, // 3: 3x3, // 4: 4x4, int time // Live acquisition span time, unit: ms // For example: 1000ms (1fps), 500ms (2fps), 250ms (4fps),125ms (8fps) Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_TriggerBinningAcqTime(void *handle, int triggerMode, unsigned char binning, int acqtime, int nfeedback = 0); /********************************************************* * No: No127 * Function Name: HBI_PgaBinningAcqTime * Function Description: // PGA gain stage, binning, frame speed setting * Parameter Description: In: void *handle // unsigned handle pointer int nPgaLevel // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. unsigned char binning // 1: 1x1, // 2: 2x2, // 3: 3x3, // 4: 4x4, int acqtime // Live acquisition span time, unit: ms int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_PgaBinningAcqTime(void *handle, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0); /********************************************************* * No: No128 * Function Name: HBI_TriggerPgaBinningAcqTime * Function Description: // trigger mode, PGA gain stage, binning type, frame speed setting * Parameter Description: In: void *handle // unsigned handle pointer int triggerMode // Work mode // Static: // 01: Software trigger mode; // 02: Clear; // 03: High voltage generator(hvg) trigger mode; // 04: Auto exposure detection mode. // Dynamic: // 05: Hvg pulse sync in trigger mode; // 06: Fpd pulse sync out trigger Mode; // 07: Free run mode. int nPgaLevel // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. unsigned char binning // 1: 1x1, // 2: 2x2, // 3: 3x3, // 4: 4x4, int acqtime // Live acquisition span time, unit: ms int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_TriggerPgaBinningAcqTime(void *handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0); /********************************************************* * No: No129 * Function Name: HBI_PgaAcqTime * Function Description: // PGA gain stage, frame speed setting * Parameter Description: In: void *handle // unsigned handle pointer int nPgaLevel // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. int acqtime // Live acquisition span time, unit: ms int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_PgaAcqTime(void *handle, int nPgaLevel, int acqtime, int nfeedback = 0); /********************************************************* * No: No130 * Function Name: HBI_SwitchNetTypeWlanMode * Function Description: Switch wireless 2.4G/5G network and WLAN AP/Client Mode (wireless flat panel detector) * Parameter Description: In: void *handle - unsigned handle pointer int nNetType - Wireless network type,1-2.4G,2-5G,Other - invalid int nWlanMode- Wireless mode,1-AP Mode,2-Client Mode,3-Wired Mode,Other - invalid * Return Value:int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SwitchNetTypeWlanMode(void *handle, int nNetType, int nWlanMode); /********************************************************* * No: No131 * Function Name: HBI_ReadPcieVersion * Function Description: Get PCIe card version number * Parameter Description: In: void *handle - unsigned handle pointer In/Out: char *szVersion,At least 16 bytes * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ReadPcieVersion(void *handle, char *szVersion); /********************************************************* * No: No132 * Function Name: HBI_GeneratePreviewTemplate * Function Description: Quickly generate Preview image template * Parameter Description: In: void *handle - unsigned handle pointer EnumIMAGE_ACQ_CMD _mode - Template Type OFFSET_TEMPLATE_TYPE preview-offset Template GAIN_TEMPLATE_TYPE preview-gain Template DEFECT_TEMPLATE_GROUP1, preview-defect Template Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GeneratePreviewTemplate(void *handle, EnumIMAGE_ACQ_CMD _mode); /********************************************************* * No: No133 * Function Name: HBI_SetImageRotateAndFlip * Function Description: Rotate 90 ° or enable mirroring (SDK processing, applicable to low frame rate or small resolution tablets) * Parameter Description: In: void *handle - unsigned handle pointer In: int nRotate - 0-Do nothing;1-Left Rotate 90°;02-"Right Rotate 90°; In: int nFlip - 0-Do nothing;1-Horizontal mirror;2-Mirror vertically; Out: Null * Return Value:int 0: Success Non-0: Failure * Comment:image processing,By default, rotate before mirro *********************************************************/ HBI_FPD_DLL int HBI_SetImageRotateAndFlip(void *handle, int nRotate, int nFlip); /********************************************************* * No: No134 * Function Name: HBI_Switch2Bit8Image * Function Description: Switch or cancel Bit8 image, cancel automatic switch to Bit16 image (normal image) * Parameter Description: In: void *handle - unsigned handle pointer int nbit8 - Bit8 Image switch control parameters, 0-Bit16 image, 1-Bit8 image, other - Bit16 image int nwindowwidth - window width,0~65535(Bit8 Image validation) int nwindowleveling - window level~65535(Bit8 Image validation) * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_Switch2Bit8Image(void *handle, int nbit8, int nwindowwidth, int nwindowleveling); // /********************************************************* // * No: No135 // * Function Name: HBI_OpenTemplateWizard // * Function Description: Open the correction template generation tool // * Parameter Description: // In: void *handle - unsigned handle pointer // * Return Value:int // 0: Success // Non-0: Failure // * Comment: // *********************************************************/ // HBI_FPD_DLL int HBI_OpenTemplateWizard(void *handle); /********************************************************* * No: No136 * Function Name: HBI_ReadFromUserDdr * Function Description: Read user ddr information (customized) * Parameter Description: In: void *handle - unsigned handle pointer unsigned char *szRcvbuff - Receive Buffer,size=1024 int/out *nlen - Buffer data length pointer(<=1024),The initial value is szRcvbuff size Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_ReadFromUserDdr(void* handle, unsigned char* szRcvBuff, int *nlen); /********************************************************* * No: No137 * Function Name: HBI_WriteToUserDdr * Function Description: Write content to user ddr (user-defined) * Parameter Description: In: void *handle - unsigned handle pointer unsigned char *szSndBuff - Write Buffer int nlen - Buffer data length(<=1024) Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_WriteToUserDdr(void* handle, unsigned char* szSndBuff, int nlen); /********************************************************* * No: No138 * Function Name: HBI_SetRoiMode * Function Description: -silicon ROI region setting function. * Currentlyonly 1613-125um、3030-140um、4343-100um、2530-100um are supported. * Parameter Description: In: void *handle - unsigned handle pointer int nMode - ROI mode for example,1613-125um:0-Normal Image,w*h(1248*1024), Rect(0,0,1247,1023); 1-w*h(32*1024), Rect(608,0,639,1023); 2-w*h(1248*32), Rect(0,496,1247,527); 3-w*h(1248*64), Rect(0,480,1247,543); 4-w*h(1248*128),Rect(0,448,1247,575); Others-Normal Image。 3030-140um:0-Normal Image,w*h(2048*2048), Rect(0,0,2047,2047); 1-w*h(1024*2048),Rect(512,0,1535,2047); Others-Normal Image。 4343-100um:0-Normal Image,w*h(4288*4288), Rect(0,0,4287,4287); 1-w*h(4288*800),Rect(0,1743,4287,2544); Others-Normal Image。 2530-100um:0-Normal Image,w*h(2432*3072), Rect(0,0,2431,3071); 1-w*h(1808*1800),Rect(316,636,2115,2435); 2-w*h(1312*1300),Rect(566,886,1865,2185); Others-Normal Image。 int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status Out: Null * Return Value:int 0: Success Non-0: Failure * Comment:only 1613-125um、3030-140um、4343-100um、2530-100um are supported。 *********************************************************/ HBI_FPD_DLL int HBI_SetRoiMode(void* handle, int nMode, int nfeedback=1); /********************************************************* * No: No139 * Function Name: HBI_SetZoomModeRect * Function Description: The ZOOM Mode region setting function for CMOS tablets * currently supports only CMOS - 1412-50um and CMOS - 0606-50um ,1917-120umtablet types. * Parameter Description: In: void *handle - unsigned handle pointer CMOS_ZOOM_RECT stZoomRect - Zoom region The region is represented by left, top, right, and bottom. for example, when left, top, right and bottom are illegal values, the image will display the full image by default, 1>When left=top=right=bottom=0, the whole picture is displayed; 2>When eft<0 or left>width, the whole picture will be displayed, and others are the same. int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: currently supports only CMOS - 1412-50um and CMOS - 0606-50um 1917-120um tablet types. *********************************************************/ HBI_FPD_DLL int HBI_SetZoomModeRect(void* handle, CMOS_ZOOM_RECT stZoomRect, int nfeedback = 1); /********************************************************* * No: No140 * Function Name: HBI_SetCorrectFileDirectory * Function Description: User set correction file home directory * If this interface is not called, the calibration file defaults to the DLL directory * Setting failed. The default is the current path * Parameter Description: In: void *handle - unsigned handle pointer char *pUserDir - User defined correction file directory,for example, ”E:\\***\\***\\ ” Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetCorrectFileDirectory(void* handle, char *pUserDir); /********************************************************* * No: No141 * Function Name: HBI_GetCorrectFileDirectory * Function Description: Obtain the home directory of user correction files * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL char* HBI_GetCorrectFileDirectory(void* handle); /********************************************************* * No: No142 * Function Name: HBI_RestoreCorrectDefaultDirectory * Function Description: Restore correction file default path * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_RestoreCorrectDefaultDirectory(void* handle); /********************************************************* * No: No143 * Function Name: HBI_SSGCTRegCallbackFunc(newly increased) * Function Description: Register single-step template callback handler * Parameter Description: In: void *handle - unsigned handle pointer SSGCT_CALLBACK_FUNC callbackfun - Registering Callbacks void *pContext- Object pointer. Generally, the upper computer software transfers the object pointer of a module to the SDK, and the callback function feeds back to the upper computer so that static or global functions can access other objects. It can also be null pointer. Out: Null * Return Value:int 0: Success Non-0: Failure * Comment:Single Step Generate Template-SSGT *********************************************************/ HBI_FPD_DLL int HBI_SSGCTRegCallbackFunc(void* handle, SSGCT_CALLBACK_FUNC callbackfun, void* pObject); /********************************************************* * No: No144 * Function Name: HBI_SSCGTEnableMode(newly increased) * Function Description: The single-frame acquisition preparation command activates the single-step image acquisition generation template mode or restores the normal image acquisition mode * Parameter Description: In: void *handle - unsigned handle pointer Int nMode - (1): generate offset template; (2) : Generate gain template; (3) : generate a defect template; (4) : generate gain and defect templates; (0 or other): Exit the single-step template generation mode and return to the normal drawing mode; Int nGroups - Number of groups Int nPreGroup - Number of images captured per group Out: Null * Return Value:int 0: Success Non-0: Failure * Comment:Single Step Generate Correction Template-SSGT *********************************************************/ HBI_FPD_DLL int HBI_SSGCTEnableMode(void* handle, int nMode, int nGroups=3, int nPreGroup=3); /********************************************************* * No: No145 * Function Name: HBI_SSGCTPrepare(newly increased) * Function Description: Single frame acquisition preparation instruction * Parameter Description: In : void* handle - unsigned handle pointer Out : None * Return Value: int 0: Success Non-0: Failure * Comment: Single Step Generate Correction Template-SSGT *********************************************************/ HBI_FPD_DLL int HBI_SSGCTPrepare(void* handle); /********************************************************* * No: No146 * Function Name: HBI_SSGCTSingleShot(newly increased) * Function Description: Single frame acquisition * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: Single Step Generate Correction Template-SSGT *********************************************************/ HBI_FPD_DLL int HBI_SSGCTSingleShot(void* handle); /********************************************************* * No: No147 * Function Name: HBI_SSGCTGenerateTemplate(newly increased) * Function Description: Generate Template * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: Single Step Generate Correction Template-SSGT *********************************************************/ HBI_FPD_DLL int HBI_SSGCTGenerateTemplate(void* handle); /********************************************************* * No: No148 * Function Name: HBI_SSGCTDownloadTemplate(newly increased) * Function Description: Download calibration template * Parameter Description: In: void *handle - unsigned handle pointer int infiletype -Download file types: 1-offset template, 2-gain template, 3-defect template, others - not supported Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: Single Step Generate Correction Template-SSGT *********************************************************/ HBI_FPD_DLL int HBI_SSGCTDownloadTemplate(void* handle, int infiletype); /********************************************************* * No: No149 * Function Name: HBI_UpdateWirelessNetwork(newly increased) * Function Description: Update wireless network configuration * Parameter Description: In: void *handle - unsigned handle pointer EtherInfo ether - Network configuration parameter structure, refer to <> Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: wireless FPD network config *********************************************************/ HBI_FPD_DLL int HBI_UpdateWirelessNetwork(void* handle, EtherInfo ether); /********************************************************* * No: No150 * Function Name: HBI_GetWirelessNetWork(newly increased) * Function Description: Get wireless network configuration (asynchronous message, callback function feedback) * Parameter Description: In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: wireless FPD network config *********************************************************/ HBI_FPD_DLL int HBI_GetWirelessNetwork(void* handle); /********************************************************* * No: No151 * Function Name: HBI_UpdateWirelessSecurityKey(newly increased) * Function Description: Modify wireless network security key * Parameter Description: In: void *handle - unsigned handle pointer int wirelessmode - Wireless network mode,1-AP mode,2-Client mode char *pkey - Security key int nkeylen - Security key length (10 significant characters) Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: wireless FPD network config *********************************************************/ HBI_FPD_DLL int HBI_UpdateWirelessSecurityKey(void* handle, int wirelessmode, char *pkey, int nkeylen); /********************************************************* * No: No152 * Function Name: HBI_UpdateSaveOption * Function Description: Update Save Image Options * Parameter Description: In: void *handle - unsigned handle pointer SAVE_IMAGE saveimge - Structure parameters unsigned char m_bySaveType; // 0-show image only,1-save image only,2-show and save image; unsigned char m_bySaveFileType; // 0-image,1-video; unsigned short m_bySaveNumber; // Number of images included in the video Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_UpdateSaveOption(void* handle, SAVE_IMAGE saveimge); /********************************************************* * No: No153 * Function Name: HBI_SetPacketIntervalTime * Function Description: Set Package Interval * Parameter Description: In: void *handle - unsigned handle pointer int *in_itime - TIME,UNIT:um Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetPacketIntervalTime(void* handle, int in_itime); /********************************************************* * No: No154 * Function Name: HBI_GetPacketIntervalTime(newly increased) * Function Description: Get Package Interval * Parameter Description: In: void *handle - unsigned handle pointer out:int *out_time - Time in microseconds * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetPacketIntervalTime(void* handle, int* out_time); /********************************************************* * No: No155 * Function Name: HBI_SetDummyParameter(newly increased) * Function Description: Update Dummy parameters (parameters required for Dummy correction) * Parameter Description: In: void *handle - unsigned handle pointer int nDummyStartCol - The region start column of Dummy int nDummyEndCol - The Region End Column of Dummy int nDummyConstant - The constant of Dummy * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetDummyParameter(void* handle, int nDummyStartCol, int nDummyEndCol, int nDummyConstant); /********************************************************* * No: No156 * Function Name: HBI_AutoWindowWidthWindowLevel * Function Description: The automatic window width and window level algorithm converts 16bits data into 8-bit unsigned data through window width and window level processing, and users can directly display 8-bit data. * Parameter Description: In: void *handle - unsigned handle pointer In/Out: unsigned char *imgbuff,Source data (16 bit unsigned small end data), destination data (8-bit unsigned data) In/Out: int *nbufflen, Buffer data length (halve the data size after conversion) In: int nwidth - Image data width In: int nheight - Image data high Out: Null * Return Value:int 0: Success Non-0: Failure * Comment:**************************************/ HBI_FPD_DLL int HBI_AutoWindowWidthWindowLevel(void* handle, unsigned char* imgbuff, int* nbufflen, int nwidth, int nheight); /********************************************************* * No: No157 * Function Name: HBI_UnRegProgressCallBack * Function Description: Unregister progress registration callback function * Parameter Description: Process firmware upgrade feedback In: void *handle - unsigned handle pointer Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_UnRegProgressCallBack(void* handle); /********************************************************* * No: No158 * Function Name: HBI_SetUdpMtuPacketType(newly increased) * Function Description: Set the packet type of UDP maximum transmission unit * Parameter Description: In: void *handle - unsigned handle pointer In: int npacketType - 0-udp packet;1-udp packet jumbo;others-"udp packet°; * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_SetUdpMtuPacketType(void* handle, int npacketType); /********************************************************* * No: No159 * Function Name: HBI_Rotate90AndFlip(newly increased) * Function Description: Image rotation and image processing (only applicable to 16-bit unsigned image data, which is rotated first and then mirrored by default) * Parameter Description: In: void *handle - unsigned handle pointer In/Out: unsigned char *imgbuff - Pointer type input and output parameters, source data (16-bit unsigned small-end data), destination data (16-bit unsigned small-end data) In: int nbufflen - Buffer data length In/Out: int *nwidth - Pointer type input and output parameters, pointer address storage image data width In/Out: int *nheight - Pointer type input and output parameters, pointer address storage image data high In: int nClockwise - Rotate 90 °, 1 - right rotation, 2 - left rotation, other - no processing In: int nVertical - Mirror processing, 1-vertical mirror, 2-horizontal mirror, other - no processing * Return Value:int 0: Success Non-0: Failure * Comment:By default, rotate before mirror *********************************************************/ HBI_FPD_DLL int HBI_Rotate90AndFlip(void *handle, unsigned char* imgbuff, int nbufflen, int* pnwidth, int* pnheight, int nClockwise, int nVertical); /********************************************************* * No: No160 * Function Name: HBI_ResetCorrectTemplate(newly increased) * Function Description: Reset the calibration template file - rotate, mirror, reverse process and save, generally complete the process before downloading to the firmware * 1、Find the generated calibration template file according to the current rotation and mirroring parameters (the template file has been rotated and mirrored); * 2、Reverse process the calibration template file (mirror first and then reverse rotation); * 3、Automatically store the rotated calibration template file according to multi-template management rules; * Parameter Description: In: void *handle - unsigned handle pointer In: int nTemplateType - 0-offset template(16-bits);1-gain template(32-bits);2-defect template(16-bits); * Return Value:int 0: Success Non-0: Failure * Comment:The purpose is to solve the problem that the firmware calibration calibration file is not synchronized. The firmware uses the generated calibration template file that has not been rotated and mirrored by the dynamic library *********************************************************/ HBI_FPD_DLL int HBI_ResetCorrectTemplate(void* handle, int nTemplateType); /********************************************************* * No: No161 * Function Name: HBI_IsExistsOfCurCorrectTemplate(newly increased) * Function Description:Judge whether the current template file exists according to the template type * Parameter Description: In: void *handle - unsigned handle pointer In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template; * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_IsExistsOfCurCorrectTemplate(void* handle, int tempType=0); /********************************************************* * No: No162 * Function Name: HBI_GetCurZoomData (newly increased) * Function Description: Get the current ZOOM area size data * Parameter Description: In: void *handle - unsigned handle pointer Out: unsigned int *pZoomLeft - Zoom Rect Left unsigned int *pZoomTop - Zoom Rect Top unsigned int *pZoomWidth - Zoom Rect Width unsigned int *pZoomHeight - Zoom Rect Height * Return Value:int 0: Success Non-0: Failure * Comment:Rect data, where all are 0, indicating the full picture. *********************************************************/ HBI_FPD_DLL int HBI_GetCurZoomRect(void* handle, unsigned int *pZoomLeft, unsigned int *pZoomTop, unsigned int * pZoomWidth, unsigned int *pZoomHeight); /********************************************************* * No: No163 * Function Name: HBI_GetCurrentCorrectFileName (newly increased) * Function Description: Get the current template file name * Parameter Description: In: void *handle - unsigned handle pointer In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template; * Return Value:char* NULL - Failure char* - Return file name * Comment: *********************************************************/ HBI_FPD_DLL char* HBI_GetCurrentCorrectFileName(void* handle, int tempType=0); /********************************************************* * No: No164 * Function Name: HBI_GetHbiUserCode * Function Description: Get customer name information * Parameter Description: In: void *handle - unsigned handle pointer In/Out: char *szUserCode - A buff greater than 8 bytes is passed in, and the customer name information is backfilled after success * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetHbiUserCode(void* handle, char* szUserCode); /********************************************************* * No: No165 * Function Name: HBI_GetHbiProductCode * Function Description: Get client product number * Parameter Description: In: void *handle - unsigned handle pointer In/Out: char *szProductCode -Get the customer name information, pass in a buff greater than 16 bytes, and backfill the client product number after success * Return Value:int 0: Success Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_GetHbiProductCode(void* handle, char* szProductCode); /********************************************************* * No: No166 * Function name: HBI_ SetWorkModeOfComs (new) * Function description: Set the working mode of COMS chip * Parameter Description: In: void * handle - Handle (unsigned point) int nMode - The operating mode of the COMS chip [0] - Indicators DRS mode [1] - Indicators DDS mode Out: None * Return value: int 0- Success Non 0- Failed * Remarks: ***************************************************/ HBI_FPD_DLL int HBI_SetWorkModeOfComs(void* handle, int nMode); /********************************************************* * No: No167 * Function name: HBI_GetWorkModeOfComs * Function description: Obtain the working mode of COMS chip (newly added) * Parameter Description: In: void * handle - Handle (unsigned pointer) Out: None * Return value: int [0] - Indicates DRS mode [1] - Indicates DDS mode *Remarks: *********************************************************/ HBI_FPD_DLL int HBI_GetWorkModeOfComs(void* handle); /********************************************************* * No: No168 * Function name: HBI_GetMtuAndReceiveBuffers * Function description: Obtain network MTU size and receive buffer size (newly added) * Parameter Description: In: void * handle - Handle (unsigned pointer) Out: None * Return value: int 0- Success Non 0- Failed *Remarks: *********************************************************/ HBI_FPD_DLL int HBI_GetMtuAndReceiveBuffers(void* handle, unsigned long* mtusize, int* rcvsize); /********************************************************* * No: No169 * Function name: HBI_RetransmitPacketEnable * Function description: Continuous acquisition retransmission enable (newly added) * Parameter Description: In: void * handle - Handle (unsigned pointer) unsigned int nRetransmitted - data retransmission type,0:Re-Transmit Data,other:Prohibit data retransmission. Out: None * Return value: int 0- Success Non 0- Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_RetransmitPacketEnable(void* handle, unsigned int nRetransmitted); /********************************************************* * No: No170 * Function name: HBI_SetFpsOfTime(new) * Function description: Set frame rate control time, support subtle * Parameter Description: In: void *handle - Handle (unsigned pointer) unsigned int untimems - time interval,Unit is milliseconds,> 0ms unsigned short ustimeus - time interval,The unit is microseconds,>= 0ms.[0,999] Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks:比如16帧,ntimems=62ms, ntimeus=8um *********************************************************/ HBI_FPD_DLL int HBI_SetFpsOfTime(void* handle, unsigned int untimems, unsigned short ustimeus =0); /********************************************************* * No: No171 * Function name: HBI_SetFirmwareOvrelay(new) * Function description: Set firmware overlay frame rate * Parameter Description: In: void *handle - Handle (unsigned pointer) unsigned int noverlaynum -[0,255],0-Firmware not stacked,>0-Overlay frame rate Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_SetFirmwareOverlay(void* handle, unsigned int noverlaynum=0); /********************************************************* * No: No172 * Function name: HBI_RetransMissFrameEx(new) * Function description: Full frame retransmission * Parameter Description: In: void *handle - Handle (unsigned pointer) unsigned int frameid -Frame number to be retransmitted Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_RetransMissFrameEx(void* handle, unsigned int frameid); /********************************************************* * No: No173 * Function name: HBI_TriggerPgaBinningAcqTimeCorrect * Function description: trigger mode, PGA gain stage, binning type, frame speed, correction enabling setting * Parameter Description: In: void *handle - Handle (unsigned pointer) int triggerMode // Work mode // Static: // 01: Software trigger mode; // 02: Clear; // 03: High voltage generator(hvg) trigger mode; // 04: Auto exposure detection mode. // Dynamic: // 05: Hvg pulse sync in trigger mode; // 06: Fpd pulse sync out trigger Mode; // 07: Free run mode. int nPgaLevel // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. unsigned char binning // 1: 1x1, // 2: 2x2, // 3: 3x3, // 4: 4x4, int acqtime // Live acquisition span time, unit: ms IMAGE_CORRECT_ENABLE* pCorrect,refer to <> int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_TriggerPgaBinningAcqTimeCorrect(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, IMAGE_CORRECT_ENABLE* pCorrect); /********************************************************* * No: No174 * Function name: HBI_SetLogSwitch * Function description: Log Switch * Parameter Description: In: bool bwrite - true:write a log,false:do not write logs * Return value:None * Remarks: *********************************************************/ HBI_FPD_DLL void HBI_SetLogSwitch(bool bwrite = true); /********************************************************* * No: No175 * Function name: HBI_RetransMissPacketEx(new) * Function description: Single/multiple packet retransmission * Parameter Description: In: void *handle - Handle (unsigned pointer) unsigned int frameid -Frame number to be retransmitted unsigned int startpackagenum -Starting package number unsigned int endpackagenum -结End package number Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_RetransMissPacketEx(void* handle, unsigned int frameid, unsigned int startpackagenum, unsigned int endpackagenum); /********************************************************* * No: No176 * Function name: HBI_FirmwareReset(new) * Function description: Firmware reset * Parameter Description: In: void *handle - Handle (unsigned pointer) Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks:Phenomenon - Frame Number Zeroing *********************************************************/ HBI_FPD_DLL int HBI_FirmwareReset(void* handle); /********************************************************* * No: No177 * Function name: HBI_FirmwareManagementTempalteType(new) * Function description: Firmware template management template method * Parameter Description: In: void * handle - Handle (unsigned pointer) unsigned int uType - Firmware template management template method 0-by binning type, 1-by Muti-Mode type others-by binning type Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_FirmwareManagementTempalteType(void* handle, unsigned int uType); /********************************************************* * No: No178 * Function name: HBI_SetValidModeItemNumber(new) * Function description: Set the number of valid Mode items * Parameter Description: In: void * handle - Handle (unsigned pointer) unsigned int uNumber - Mode item number,[0,10] Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_SetValidModeItemNumber(void* handle, unsigned int uNumber); //////////////////////////////////////////////////////////////////////// // 以下HBI_M***new接口函数,除更新当前固件控制参数,另外同步当前Mode项中的参数 // The following HBI_ M* interface function not only updates the current firmware control parameters, but also synchronizes the parameters in the current Mode item //////////////////////////////////////////////////////////////////////// /********************************************************* * No: No179 * Function name: HBI_MUpdateTriggerMode(new) * Function description: trigger mode setting * Parameter Description: In: void *handle - Handle (unsigned pointer) int _triggerMode- trigger mode // 1: Software trigger mode // 3: High voltage generator trigger mode // 4: AED trigger mode // 5-Dynamic:Hvg Sync Mode // 6-Dynamic:Fpd Sync Mode // 7-Dynamic:Fpd Continue // 8-SAEC。 // others-invaild Out:None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_MUpdateTriggerMode(void* handle, int _triggerMode); /********************************************************* * No: No180 * Function name: HBI_MSetBinning(new) * Function description: Binning mode setting * Parameter Description: In: void *handle - Handle (unsigned pointer) unsigned int ubinning - 1:1x1,2:2x2,3:3x3,4:4x4 Out:None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_MSetBinning(void* handle, unsigned int ubinning); /********************************************************* * No: No181 * Function name: HBI_MSetPGALevel(new) * Function description: PGA gain stage setting * Parameter Description: In: void *handle - Handle (unsigned pointer) int mode // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_MSetPGALevel(void* handle, int nGainLevel); /********************************************************* * No: No182 * Function name: HBI_MSetRoiMode(new) * Function Description: -silicon ROI region setting function. * Currentlyonly 1613-125um、3030-140um、4343-100um、2530-100um are supported. * Parameter Description: In: void *handle - unsigned handle pointer int nMode - ROI mode for example,1613-125um:0-Normal Image,w*h(1248*1024), Rect(0,0,1247,1023); 1-w*h(32*1024), Rect(608,0,639,1023); 2-w*h(1248*32), Rect(0,496,1247,527); 3-w*h(1248*64), Rect(0,480,1247,543); 4-w*h(1248*128),Rect(0,448,1247,575); Others-Normal Image。 3030-140um:0-Normal Image,w*h(2048*2048), Rect(0,0,2047,2047); 1-w*h(1024*2048),Rect(512,0,1535,2047); Others-Normal Image。 4343-100um:0-Normal Image,w*h(4288*4288), Rect(0,0,4287,4287); 1-w*h(4288*800),Rect(0,1743,4287,2544); Others-Normal Image。 2530-100um:0-Normal Image,w*h(2432*3072), Rect(0,0,2431,3071); 1-w*h(1808*1800),Rect(316,636,2115,2435); 2-w*h(1312*1300),Rect(566,886,1865,2185); Others-Normal Image。 int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status Out: Null * Return Value:int 0: Success Non-0: Failure * Comment:only 1613-125um、3030-140um、4343-100um、2530-100um are supported。 *********************************************************/ HBI_FPD_DLL int HBI_MSetRoiMode(void* handle, int nMode, int nfeedback = 1); /********************************************************* * No: No183 * Function name: HBI_MSetZoomModeRect(new) * Function Description: The ZOOM Mode region setting function for CMOS tablets * currently supports only CMOS - 1412-50um and CMOS - 0606-50um ,1917-120umtablet types. * Parameter Description: In: void *handle - unsigned handle pointer CMOS_ZOOM_RECT stZoomRect - Zoom region The region is represented by left, top, right, and bottom. for example, when left, top, right and bottom are illegal values, the image will display the full image by default, 1>When left=top=right=bottom=0, the whole picture is displayed; 2>When eft<0 or left>width, the whole picture will be displayed, and others are the same. int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status Out: Null * Return Value:int 0: Success Non-0: Failure * Comment: currently supports only CMOS - 1412-50um and CMOS - 0606-50um 1917-120um tablet types. *********************************************************/ HBI_FPD_DLL int HBI_MSetZoomModeRect(void* handle, CMOS_ZOOM_RECT stZoomRect, int nfeedback = 1); /********************************************************* * No: No184 * Function name: HBI_MSetSelfDumpingTime(new) * Function Description: // Self dumping span time setting * Parameter Description: In: void *handle // unsigned handle pointer int time // Self dumping span time, unit: ms Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_MSetSelfDumpingTime(void* handle, int time); /********************************************************* * No: No185 * Function name: HBI_MSetLiveAcquisitionTime(new) * Function Description: // Live acquisition span time setting (apply to static and wireless type FPD) * Parameter Description: In: void *handle // unsigned handle pointer int time // Live acquisition span time, unit: ms Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_MSetLiveAcquisitionTime(void* handle, int time); /********************************************************* * No: No186 * Function name: HBI_MSetSinglePrepareTime(new) * Function Description: // Prepare delay time setting, which is also called exposure window * Parameter Description: In: void *handle // unsigned handle pointer Out: int *out_itime // Time(0~10000), unit: ms // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command are combined to realize single image acquisition // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command. * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_MSetSinglePrepareTime(void* handle, int in_itime); /********************************************************* * No: No187 * Function name: HBI_MSetFpsOfTime(new) * Function description: Set frame rate control time, support subtle * Parameter Description: In: void *handle - Handle (unsigned pointer) unsigned int untimems - time interval,Unit is milliseconds,> 0ms unsigned short ustimeus - time interval,The unit is microseconds,>= 0ms.[0,999] Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks:比如16帧,ntimems=62ms, ntimeus=8um *********************************************************/ HBI_FPD_DLL int HBI_MSetFpsOfTime(void* handle, unsigned int untimems, unsigned short ustimeus = 0); /********************************************************* * No: No188 * Function name: HBI_MPgaAcqTime(new) * Function Description: // PGA gain stage, frame speed setting * Parameter Description: In: void *handle // unsigned handle pointer int nPgaLevel // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. int acqtime // Live acquisition span time, unit: ms int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_MPgaAcqTime(void* handle, int nPgaLevel, int acqtime, int nfeedback = 0); /********************************************************* * No: No189 * Function name: HBI_MPgaBinningAcqTime(new) * Function Description: // PGA gain stage, binning, frame speed setting * Parameter Description: In: void *handle // unsigned handle pointer int nPgaLevel // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. unsigned char binning // 1: 1x1, // 2: 2x2, // 3: 3x3, // 4: 4x4, int acqtime // Live acquisition span time, unit: ms int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_MPgaBinningAcqTime(void* handle, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0); /********************************************************* * No: No190 * Function name: HBI_MTriggerAndCorrectApplay(new) * Function Description: // Work mode and image calibration setting * Parameter Description: In: void *handle // unsigned handle pointer int _triggerMode // 1: Software trigger mode // 3: High voltage generator trigger mode // 4: AED trigger mode // 5-Dynamic:Hvg Sync Mode // 6-Dynamic:Fpd Sync Mode // 7-Dynamic:Fpd Continue // 8-SAEC。 IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>> Out: Null * Return Value: int // 0: Success // Non-0: Failure,refer to<> * Comment: *********************************************************/ HBI_FPD_DLL int HBI_MTriggerAndCorrectApplay(void* handle, int _triggerMode, IMAGE_CORRECT_ENABLE* pCorrect); /********************************************************* * No: No191 * Function name: HBI_MTriggerBinningAcqTime(new) * Function Description: // Work mode, binning, frame speed setting * Parameter Description: In: void *handle // unsigned handle pointer int triggerMode // Work mode // Static: // 01: Software trigger mode; // 02: Clear; // 03: High voltage generator(hvg) trigger mode; // 04: Auto exposure detection mode. // Dynamic: // 05: Hvg pulse sync in trigger mode; // 06: Fpd pulse sync out trigger Mode; // 07: Free run mode. unsigned char binning // 1: 1x1, // 2: 2x2, // 3: 3x3, // 4: 4x4, int time // Live acquisition span time, unit: ms // For example: 1000ms (1fps), 500ms (2fps), 250ms (4fps),125ms (8fps) Out: Null * Return Value: int // 0: Success // Non-0: Failure * Comment: *********************************************************/ HBI_FPD_DLL int HBI_MTriggerBinningAcqTime(void* handle, int triggerMode, unsigned char binning, int acqtime, int nfeedback = 0); /********************************************************* * No: No192 * Function name: HBI_MTriggerPgaBinningAcqTime(new) * Function description: trigger mode, PGA gain stage, binning type, frame speed setting * Parameter Description: In: void *handle - Handle (unsigned pointer) int triggerMode // Work mode // Static: // 01: Software trigger mode; // 02: Clear; // 03: High voltage generator(hvg) trigger mode; // 04: Auto exposure detection mode. // Dynamic: // 05: Hvg pulse sync in trigger mode; // 06: Fpd pulse sync out trigger Mode; // 07: Free run mode. int nPgaLevel // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. unsigned char binning // 1: 1x1, // 2: 2x2, // 3: 3x3, // 4: 4x4, int acqtime // Live acquisition span time, unit: ms int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_MTriggerPgaBinningAcqTime(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0); /********************************************************* * No: No193 * Function name: HBI_MTriggerPgaBinningAcqTimeCorrect(new) * Function description: trigger mode, PGA gain stage, binning type, frame speed, correction enabling setting * Parameter Description: In: void *handle - Handle (unsigned pointer) int triggerMode // Work mode // Static: // 01: Software trigger mode; // 02: Clear; // 03: High voltage generator(hvg) trigger mode; // 04: Auto exposure detection mode. // Dynamic: // 05: Hvg pulse sync in trigger mode; // 06: Fpd pulse sync out trigger Mode; // 07: Free run mode. int nPgaLevel // PGA gain stage //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC. unsigned char binning // 1: 1x1, // 2: 2x2, // 3: 3x3, // 4: 4x4, int acqtime // Live acquisition span time, unit: ms IMAGE_CORRECT_ENABLE* pCorrect,refer to <> int nfeedback // 1: Automatic feedback config parameters if setting is successful // Non-1: Feedback setting success status * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_MTriggerPgaBinningAcqTimeCorrect(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, IMAGE_CORRECT_ENABLE* pCorrect); /********************************************************* * No: No194 * Function name: HBI_IsMutilMode(new) * Function description: Check if the current firmware supports multiple modes * Parameter Description: In: void *handle - Handle (unsigned pointer) * Return value:bool true - support false - Not Supported * Remarks:The essence of Mode mode is that the firmware manages templates differently *********************************************************/ HBI_FPD_DLL bool HBI_IsMutilMode(void* handle); /********************************************************* * No: No195 * Function name: HBI_SetTICOFImageType(new) * Function description: Switching between normal and grayscale images * Parameter Description: In: void *handle - Handle (unsigned pointer) unsigned int nImageType -Image type,2-gray image,1-normal image,others-normal image Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_SetTICOFImageType(void* handle, unsigned int nImageType); /********************************************************* * No: No196 * Function name: HBI_ImportCfgFile2Detector(new) * Function description: Importing configuration files into firmware * Parameter Description: In: void *handle - Handle (unsigned pointer) int cmd -command code, EDL_COMMON_TYPE_SET_RAM_PARAM_CFG -Set RAM parameters EDL_COMMON_TYPE_SET_ROM_PARAM_CFG -Set ROM parameters EDL_COMMON_TYPE_SET_FACTORY_PARAM_CFG -Set FACTORY parameters char* cfgfile -firmware configuration file absolute path,file extension *.csv or *.txt Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks:configuration file format:Register_xxxx,Reserved,0x-- *********************************************************/ HBI_FPD_DLL int HBI_ImportCfgFile2Detector(void* handle, int cmd, char* cfgfile); /********************************************************* * No: No197 * Function name: HBI_ExportDetectorCfg2File(new) * Function description: Export firmware parameters to a file * Parameter Description: In: void *handle - Handle (unsigned pointer) int cmd -command code, EDL_COMMON_TYPE_GET_RAM_PARAM_CFG -Get RAM parameters EDL_COMMON_TYPE_GET_ROM_PARAM_CFG -Get ROM parameters EDL_COMMON_TYPE_GET_FACTORY_PARAM_CFG -Get FACTORY parameters char* cfgfile -firmware configuration file absolute path,file extension *.csv or *.txt Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks:configuration file format:Register_xxxx,Reserved,0x-- *********************************************************/ HBI_FPD_DLL int HBI_ExportDetectorCfg2File(void* handle, int cmd, char* cfgfile); /********************************************************* * No: No198 * Function name: HBI_InitDetectorParams(new) * Function description: initialize the basic parameters of the flat panel detector * Parameter Description: In: void *handle - Handle (unsigned pointer) DETECTOR_INIT_PARAMS param -refer to《HbiType.h》 param._ucmodeid; //mode id [0,9]; param._uctriggerType; //1-soft trigger,3-hvg trigger,4-FreeAED,5-Dynamic:Hvg Sync Mode,6-Dynamic:Fpd Sync Mode,7-Dynamic:Fpd Continue,8-SAEC; //Only vaild in Binning mode,invaild in multi-mode mode,purpose compatible with diffrent version. param._ucOffsetCorrection;//0-No Offset Correction;1-Software PreOffset Correction;2-Firmware PostOffset Correction;3-Firmware PreOffset Correction; param._ucGainCorrection; //0-No Gain Correction;1-Software Gain Correction;2-Firmware Gain Correction; param._ucDefectCorrection;//0-No Defect Correction;1-Software Defect Correction;2-Firmware Defect Correction; param._ucDummyCorrection; //0-No Dummy Correction;1-Software Dummy Correction;2-Firmware Dummy Correction; Out: None * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_InitDetectorParams(void* handle, DETECTOR_INIT_PARAMS param); /********************************************************* * No: No199 * Function name: HBI_UpdateFPDSerialNumber * Function Descriptio: Update product serial number * Parameter Description: In: void *handle - unsigned handle pointer In/Out: char *szSn,length=14 * Return value:int 0 - Success Non 0 - Failed * Remarks: * 编 号: No199 * 函 数 名: HBI_UpdateFPDSerialNumber * 功能描述: 更新产品序列号 * 参数说明: In: void *handle - 句柄(无符号指针) In/Out: char *szSn,长度14位 * 返 回 值:int 0 - 成功 非0 - 失败 * 备 注: *********************************************************/ HBI_FPD_DLL int HBI_UpdateFPDSerialNumber(void* handle, char* szSn); /********************************************************* * No: No200 * Function name: HBI_WindowWidthWindowLevel(new) * Function Description: The automatic window width and window level algorithm converts 16bits data into 8-bit unsigned data through window width and window level processing, and users can directly display 8-bit data. * Parameter Description: In: void *handle - unsigned handle pointer In/Out: unsigned char *imgbuff,Source data (16 bit unsigned small end data), destination data (8-bit unsigned data) In/Out: int *nbufflen, Buffer data length (halve the data size after conversion) In: int nwidth - Image data width In: int nheight - Image data high In: int nWindow - window width In: int nLeveling - window leveling * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_WindowWidthWindowLevel(void* handle, unsigned char* imgbuff, int* nbufflen, int nwidth, int nheight, int nWindow, int nLeveling); /********************************************************* * No: No201 * Function name: HBI_WaitForReadyStatus(new) * Function Description: Waiting for panel ready status. * Parameter Description: In: void *handle - unsigned handle pointer In: unsigned int tm - Wait timeout,default 1200ms * Return value:int 0 - Success Non 0 - Failed * Remarks: *********************************************************/ HBI_FPD_DLL int HBI_WaitForReadyStatus(void* handle, unsigned int tm=1200); HBI_FPD_DLL int HBI_SetSelfDumpingTimeEx(void* handle, unsigned int untimems, unsigned short ustimeus); HBI_FPD_DLL int HBI_UpdatePcieDeviceId(void* handle, unsigned short udeviceid); HBI_FPD_DLL int HBI_GetCurFirmwareTemplate(void* handle, unsigned char command); HBI_FPD_DLL int HBI_GetCurTemperatureBatteryInfo(void* handle); HBI_FPD_DLL int HBI_IsInSleepMode(void* handle); HBI_FPD_DLL int HBI_Set2SleepMode(void* handle, int nmode = 1); HBI_FPD_DLL int HBI_GetUdpMtuPacketType(void* handle, int* npacketType); HBI_FPD_DLL int HBI_SetWindowMode(void* handle, bool isWindowMode); HBI_FPD_DLL int HBI_GetWindowMode(void* handle, bool* isWindowMode); HBI_FPD_DLL int HBI_SetBinningDivisor(void* handle, unsigned char binDiv); HBI_FPD_DLL int HBI_GetBinningDivisor(void* handle, unsigned char* binDiv); HBI_FPD_DLL int HBI_SetTiCofDAC(void* handle, unsigned short dacV); HBI_FPD_DLL int HBI_GetTiCofDAC(void* handle, unsigned short* dacV); HBI_FPD_DLL int HBI_IsEnableReturnImage(void* handle); HBI_FPD_DLL int HBI_EnableReturnImage(void* handle, int nEnable = 1); HBI_FPD_DLL int HBI_FrameLossDetectEnable(void* handle, unsigned int nDetectEnable); HBI_FPD_DLL int HBI_RestartPcieDevice(void* handle); HBI_FPD_DLL int HBI_SetRetransMissPacket(void* handle, unsigned int startpackagenum, unsigned int endpackagenum); HBI_FPD_DLL bool HBI_GetEnableStatusOfFrameLoss(void* handle); HBI_FPD_DLL int HBI_EnableFrameLossCheck(void* handle, bool bcheck); HBI_FPD_DLL int HBI_FeedbackFrameLoss(void* handle); HBI_FPD_DLL int HBI_SaveFrameLossInfo(void* handle); HBI_FPD_DLL int HBI_UpdateFPDSerialNumberEx(void* handle, char* szSn, int cmd); HBI_FPD_DLL int HBI_RomCfg2FactoryCfg(void* handle); //////////////////////////////////////////////////////////////////////////////////////// // The export class is currently undeveloped and will not be provided //////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////// class hbi_fpd { public: HBI_FPD_DLL hbi_fpd(unsigned int ufpdid, COMM_CFG commcfg); HBI_FPD_DLL virtual ~hbi_fpd(); public: HBI_FPD_DLL int hbi_init_fpd(); HBI_FPD_DLL void hbi_destroy_fpd(); void *m_inst; unsigned int m_ufpdid; bool m_bOpen; COMM_CFG m_commcfgSt; }; //////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////// #ifdef __cplusplus } #endif #endif // __HBI_FPD_H_