HaoBoInterface.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. #include "include/HbiFpd.h"
  2. //typedef int (__stdcall *API_HBI_InitDual)(void** handle1, void** handle2);
  3. //typedef int (__stdcall *API_HBI_InitEx)(HBI_HANDLE* pHandArr, int nArrSize);
  4. //typedef void (__stdcall *API_HBI_DestroyEx)();
  5. //typedef void* (__stdcall *API_HBI_GetDetectorHandle)(int fpdid);
  6. //typedef int (__stdcall *API_HBI_GetDetectorId)(void* handle);
  7. //typedef int (__stdcall *API_HBI_ActivateDetector)(void* handle);
  8. typedef void* (__stdcall *API_HBI_Init)(int fpdid);//初始化
  9. typedef void (__stdcall *API_HBI_Destroy)(void* handle);//释放
  10. typedef int (__stdcall *API_HBI_ConnectDetector)(void* handle, COMM_CFG commCfg, int doOffsetTemp);//连接探测器
  11. //typedef int (__stdcall *API_HBI_ConnectDetectorUdp)(void* handle, char* szDetectorIp, unsigned short usDetectorPort, char* szlocalIp, unsigned short usLocalPort, int doOffsetTemp);//有线标准UDP
  12. //typedef int (__stdcall *API_HBI_ConnectDetectorJumbo)(void* handle, char* szDetectorIp, unsigned short usDetectorPort, char* szlocalIp, unsigned short usLocalPort, int doOffsetTemp);//有线标准UDP JUMBO
  13. //typedef int (__stdcall *API_HBI_ConnectDetectorWlan)(void* handle, char* szDetectorIp, unsigned short usDetectorPort, char* szlocalIp, unsigned short usLocalPort, int doOffsetTemp);//有线标准UDP wireless
  14. //typedef int (__stdcall *API_HBI_ConnectDetectorPcie)(void* handle, int doOffsetTemp);//光口通信
  15. //typedef int (__stdcall *API_HBI_ConnectDetectorEx)(void* handle);
  16. typedef int (__stdcall *API_HBI_DisConnectDetector)(void* handle);//断开探测器的连接
  17. typedef int (__stdcall *API_HBI_RegEventCallBackFun)(void* handle, USER_CALLBACK_HANDLE_ENVENT handleEventfun, void* pContext);//注册回调
  18. //typedef int (__stdcall *API_HBI_ResetDetector)(void* handle);//重置探测器
  19. //typedef int (__stdcall *API_HBI_ResetFirmware)(void* handle);
  20. typedef int (__stdcall *API_HBI_GetFPDSerialNumber)(void* handle, char* szSn);//获取探测器序列号
  21. typedef int (__stdcall *API_HBI_GetSDKVerion)(void* handle, char* szVer);//获取SDK版本
  22. typedef int (__stdcall *API_HBI_GetFirmareVerion)(void* handle, char* szFirmwareVer);//获取探测器硬件版本
  23. typedef const char* (__stdcall *API_HBI_GetError)(const CodeStringTable* inTable, int count, int recode);//获取错误信息
  24. typedef int (__stdcall *API_HBI_GetFpdCfgInfo)(void* handle, RegCfgInfo* pRegCfg);//获取ROM参数 API_HBI_GetSysParamCfg
  25. //typedef int (__stdcall *API_HBI_GetDevCfgInfo)(void* handle, RegCfgInfo* pRegCfg);
  26. typedef int (__stdcall *API_HBI_GetImageProperty)(void* handle, IMAGE_PROPERTY* img_pro);//获取图像信息
  27. //typedef int (__stdcall *API_HBI_GetPreviewImageProperty)(void* handle, IMAGE_PROPERTY* img_pro);
  28. //typedef int (__stdcall *API_HBI_SinglePrepare)(void* handle);//单帧采集prepare(静态板)
  29. //typedef int (__stdcall *API_HBI_Prepare)(void* handle, EnumIMAGE_ACQ_CMD acqcmd);
  30. //typedef int (__stdcall *API_HBI_SingleAcquisition)(void* handle, FPD_AQC_MODE _mode);//单帧采集Start(静态板)
  31. typedef int (__stdcall *API_HBI_LiveAcquisition)(void* handle, FPD_AQC_MODE _mode);//可单帧采集,可连续采集
  32. typedef int (__stdcall *API_HBI_StopAcquisition)(void* handle);//停止连续采集
  33. //typedef int (__stdcall *API_HBI_SetSinglePrepareTime)(void* handle, int in_itime);//单帧采集时是否延时or调HBI_SinglePrepare和HBI_SingleAcquisition完成采集
  34. //typedef int (__stdcall *API_HBI_GetSinglePrepareTime)(void* handle, int* out_itime);
  35. //typedef int (__stdcall *API_HBI_SetLiveAcquisitionTime)(void* handle, int time);//设置采集时间间隔 进而设置采集帧率(静态平板)
  36. //typedef int (__stdcall *API_HBI_GetLiveAcquisitionTime)(void* handle, int* out_time);
  37. typedef int (__stdcall *API_HBI_SetSelfDumpingTime)(void* handle, int time);//设置采集时间间隔 进而设置采集帧率(动态平板)
  38. //typedef int (__stdcall *API_HBI_GetSelfDumpingTime)(void* handle, int* out_time);
  39. typedef int (__stdcall *API_HBI_TriggerAndCorrectApplay)(void* handle, int _triggerMode, IMAGE_CORRECT_ENABLE* pCorrect);//设置触发模式和固件图像校正使能
  40. typedef int (__stdcall *API_HBI_UpdateTriggerMode)(void* handle, int _triggerMode);//单独设置触发模式
  41. typedef int (__stdcall *API_HBI_UpdateCorrectEnable)(void* handle, IMAGE_CORRECT_ENABLE* pCorrect);//单独更新图像固件校正使能
  42. //typedef int (__stdcall *API_HBI_GetCorrectEnable)(void* handle, IMAGE_CORRECT_ENABLE* pCorrect);
  43. //typedef int (__stdcall *API_HBI_SetSoftwareCorrect)(void* handle, SOFTWARE_CALIBRATE_ENABLE inEnable);//设置软件校正使能
  44. //typedef int (__stdcall *API_HBI_GetSoftwareCorrect)(void* handle, SOFTWARE_CALIBRATE_ENABLE* inEnable);
  45. //typedef int (__stdcall *API_HBI_SetAedIntegrateTm)(void* handle, int time);//设置AED积分时间
  46. //typedef int (__stdcall *API_HBI_GetAedIntegrateTm)(void* handle, int* out_time);
  47. //typedef int (__stdcall *API_HBI_SetAedThreshold)(void* handle, int in_ivalue);//设置AED阈值
  48. //typedef int (__stdcall *API_HBI_GetAedThreshold)(void* handle, int* out_ivalue);
  49. //typedef int (__stdcall *API_HBI_SetSaturationValue)(void* handle, int in_ivalue);//设置饱和值
  50. //typedef int (__stdcall *API_HBI_GetSaturationValue)(void* handle, int* out_ivalue);
  51. //typedef int (__stdcall *API_HBI_SetClippingValue)(void* handle, int in_ivalue);//设置图像剪裁值
  52. //typedef int (__stdcall *API_HBI_GetClippingValue)(void* handle, int* out_ivalue);
  53. //typedef int (__stdcall *API_HBI_SetPGALevel)(void* handle, int nGainLevel);//设置增益挡位,即设置可编程积分电容档位,提高灵敏度
  54. //typedef int (__stdcall *API_HBI_GetPGALevel)(void* handle);
  55. //typedef int (__stdcall *API_HBI_SetLPFLevel)(void* handle, int nLPFLevel);//设置低通滤波器档位参数
  56. //typedef int (__stdcall *API_HBI_GetLPFLevel)(void* handle);
  57. typedef int (__stdcall *API_HBI_SetBinning)(void* handle, unsigned int bin);//设置图像binning方式
  58. //typedef int (__stdcall *API_HBI_GetBinning)(void* handle, unsigned int* bin);
  59. //typedef int (__stdcall *API_HBI_SetPreviewMode)(void* handle, int inTriggMode, int inPreviewMode);//设置Preview预览或取消预览
  60. //typedef int (__stdcall *API_HBI_GetPreviewMode)(void* handle, int* outMode);
  61. //typedef int (__stdcall *API_HBI_SAecModeApply)(void* handle, int inPreviewMode, int inPerTime, int inPostTime);
  62. //typedef int (__stdcall *API_HBI_SAecAcq)(void* handle);
  63. //typedef int (__stdcall *API_HBI_RegProgressCallBack)(void* handle, USER_CALLBACK_HANDLE_PROCESS handleStatusfun, void* pObject);//固件升级时注册回调后可以收到消息
  64. typedef int (__stdcall *API_HBI_GenerateTemplate)(void* handle, EnumIMAGE_ACQ_CMD _mode, int bprevew);//快速生成校正模板
  65. //typedef int (__stdcall *API_HBI_DownloadTemplate)(void* handle, DOWNLOAD_FILE* downloadfile);
  66. //typedef int (__stdcall *API_HBI_DownloadTemplateEx)(void* handle, DOWNLOAD_MODE* downloadmode);
  67. //typedef int (__stdcall *API_HBI_DownloadTemplateByType)(void* handle, int infiletype);
  68. //typedef int (__stdcall *API_HBI_StopDownloadTemplate)(void* handle);
  69. //typedef int (__stdcall *API_HBI_UpgradeFirmware)(void* handle, char* binfile, int filetype);
  70. //typedef int (__stdcall *API_HBI_StopUpdateFirmware)(void* handle);
  71. //typedef int (__stdcall *API_HBI_Dumping)(void* handle);//清空指令
  72. //typedef int (__stdcall *API_HBI_GetSysParamCfg)(void* handle, int cmd, int type);//回读系统RAM/ROM参数,异步事件,参数在回调函数中反馈
  73. //typedef int (__stdcall *API_HBI_SetSysParamCfg)(void* handle, int cmd, int type, RegCfgInfo* pRegCfg);
  74. //typedef int (__stdcall *API_HBI_SetGigabitEther)(void* handle, EtherInfo* pEther);
  75. //typedef int (__stdcall *API_HBI_RetransMissPacket)(void* handle);
  76. //typedef int (__stdcall *API_HBI_RetransMissFrame)(void* handle);
  77. typedef int (__stdcall *API_HBI_IsConnect)(void* handle);//判断平板是否为连接状态
  78. typedef int (__stdcall *API_HBI_GetCurFPDStatus)(void* handle);//获取平板当前状态
  79. //typedef int (__stdcall *API_HBI_SetCapacity)(void* handle, unsigned int nframesize);//设置缓冲区容量(大小)
  80. //typedef int (__stdcall *API_HBI_SetRawStyle)(void* handle, bool bsave, bool bsingleraw);//设置是否保存图像以及图像文件形式(单帧文件、多帧文件)
  81. typedef int (__stdcall *API_HBI_SetAqcProperty)(void* handle, FPD_AQC_MODE _mode);//设置采集属性
  82. //typedef int (__stdcall *API_HBI_SetDebugMode)(void* handle, int mode);
  83. //typedef int (__stdcall *API_HBI_PcieSendBuff)(void* handle, ePCIE_WR_TYPE etype, long addr, unsigned char* szSndBuff, int nlen);
  84. //typedef int (__stdcall *API_HBI_PcieRecvBuff)(void* handle, ePCIE_WR_TYPE _type, long addr, unsigned char* szRcvbuff, int nlen);
  85. //typedef int (__stdcall *API_HBI_InitOffsetMode)(void* handle, CALIBRATE_INPUT_PARAM calibrate_param);//分步生成模板
  86. //typedef int (__stdcall *API_HBI_InsertOffsetMode)(void* handle, int group_id, char* filepath);
  87. //typedef int (__stdcall *API_HBI_ClearOffsetMode)(void* handle);
  88. //typedef int (__stdcall *API_HBI_GenerateOffsetTemp)(void* handle, int raw_num, int bprevew);
  89. //typedef int (__stdcall *API_HBI_InitGainMode)(void* handle, CALIBRATE_INPUT_PARAM calibrate_param);
  90. //typedef int (__stdcall *API_HBI_InsertGainMode)(void* handle, int group_id, char* filepath);
  91. //typedef int (__stdcall *API_HBI_ClearGainMode)(void* handle);
  92. //typedef int (__stdcall *API_HBI_GenerateGainTemp)(void* handle, int group_sum, int per_group_num, int bprevew);
  93. //typedef int (__stdcall *API_HBI_InitDefectMode)(void* handle, CALIBRATE_INPUT_PARAM calibrate_param);
  94. //typedef int (__stdcall *API_HBI_InsertDefectMode)(void* handle, int group_id, char* filepath);
  95. //typedef int (__stdcall *API_HBI_ClearDefectMode)(void* handle);
  96. //typedef int (__stdcall *API_HBI_GenerateDefectTemp)(void* handle, int group_sum, int per_group_num, int bprevew);
  97. //typedef char* (__stdcall *API_HBI_GetFileDirectory)(void* handle, HBI_FILE_TYPE filetype);
  98. //typedef char* (__stdcall *API_HBI_GetCurTempFileFullDirectory)(void* handle, int temptype);
  99. typedef int (__stdcall *API_HBI_IsBusyNow)(void* handle, int eventtype);//判断当前SDK是否正处理中,不允许当前操作
  100. //typedef int (__stdcall *API_HBI_SetCuttingImageRect)(void* handle, CuttingImageRect* roi);
  101. //typedef CuttingImageRect* (__stdcall *API_HBI_GetCuttingImageRect)(void* handle);
  102. //typedef FPD_MODE_LIST* (__stdcall *API_HBI_GetCurModeList)(void* handle);//获取当前探测器的采集模式列表
  103. //typedef int (__stdcall *API_HBI_UpdateModeList)(void* handle, FPD_MODE_LIST* modelist);
  104. //typedef FPD_MODE_DATA* (__stdcall *API_HBI_GetCurModeData)(void* handle);//获取当前采集模式的信息
  105. //typedef int (__stdcall *API_HBI_UpdateCurModeData)(void* handle, FPD_MODE_DATA* mode);
  106. //typedef int (__stdcall *API_HBI_UpdateModeData)(void* handle, FPD_MODE_DATA* mode, unsigned int id);
  107. //typedef FPD_MODE_DATA* (__stdcall *API_HBI_GetModeData)(void* handle, unsigned int id);
  108. //typedef unsigned int (__stdcall *API_HBI_GetModeListSize)(void* handle);
  109. //typedef int (__stdcall *API_HBI_GetCurModeID)(void* handle);
  110. //typedef int (__stdcall *API_HBI_SwitchUserMode)(void* handle, unsigned int modeid, FPD_MODE_DATA* PMODEDATA);
  111. //typedef int (__stdcall *API_HBI_ModeExists)(void* handle, FPD_MODE_DATA mode);
  112. //typedef bool (__stdcall *API_HBI_CheckCurtMode)(void* handle);
  113. typedef int (__stdcall *API_HBI_ModeCorrectTempalteEnable)(void* handle, unsigned int id, bool bEnable);//当前Mode项的校准模板生效或不生效
  114. typedef int (__stdcall *API_HBI_AllModeCorrectTempalteEnable)(void* handle, bool bEnable);
  115. //typedef int (__stdcall *API_HBI_SaveModeList2File)(void* handle, char* szPath);
  116. //typedef int (__stdcall *API_HBI_DownloadModeTemplate)(void* handle, DOWNLOAD_MODE_FILE downloadfile);
  117. //typedef int (__stdcall *API_HBI_DownloadModeTemplateByType)(void* handle, int intemptype);
  118. //typedef int (__stdcall *API_HBI_DownloadModeTemplateByIdAndType)(void* handle, unsigned int modeid, int intemptype);
  119. typedef int (__stdcall *API_HBI_GetCurModeTemplateStatus)(void* handle, int* nTempStatus);
  120. //typedef char* (__stdcall *API_HBI_GetCurrentCorrectFilePath)(void* handle, int tempType);
  121. //typedef int (__stdcall *API_HBI_DetectorPrimaryAuthor)(void* handle, char* pcode);
  122. //typedef int (__stdcall *API_HBI_DetectorSecondaryAuthor)(void* handle, char* pcode);
  123. //typedef int (__stdcall *API_HBI_DownloadImage)(void* handle, int beginnumber);//下载图像(无线平板)
  124. //typedef int (__stdcall *API_HBI_SetSleepState)(void* handle);//设置平板为休眠状态(无线平板)
  125. //typedef int (__stdcall *API_HBI_WakeUpFpd)(void* handle);
  126. //typedef int (__stdcall *API_HBI_EnableEmmcStorage)(void* handle, int nenable);
  127. //typedef int (__stdcall *API_HBI_ReflashBatteryStatusInfo)(void* handle);
  128. typedef int (__stdcall *API_HBI_GetBatteryStatusInfo)(void* handle, BATTERY_STATUS_INFO* pBatteryStatus);
  129. typedef int (__stdcall *API_HBI_TriggerBinningAcqTime)(void* handle, int triggerMode, unsigned char binning, int acqtime, int nfeedback);//设置触发模式、binning方式以及帧率(采集图像时间间隔)
  130. //typedef int (__stdcall *API_HBI_PgaBinningAcqTime)(void* handle, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback);//设置PGA档位、binning方式以及帧率(采集图像时间间隔)
  131. //typedef int (__stdcall *API_HBI_TriggerPgaBinningAcqTime)(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback);//设置触发模式、PGA档位、binning方式以及帧率(采集图像时间间隔)
  132. //typedef int (__stdcall *API_HBI_PgaAcqTime)(void* handle, int nPgaLevel, int acqtime, int nfeedback);//设置PGA档位、及帧率(采集图像时间间隔)
  133. //typedef int (__stdcall *API_HBI_SwitchNetTypeWlanMode)(void* handle, int nNetType, int nWlanMode);
  134. //typedef int (__stdcall *API_HBI_ReadPcieVersion)(void* handle, char* szVersion);
  135. //typedef int (__stdcall *API_HBI_GeneratePreviewTemplate)(void* handle, EnumIMAGE_ACQ_CMD _mode);
  136. //typedef int (__stdcall *API_HBI_SetImageRotateAndFlip)(void* handle, int nRotate, int nFlip);//旋转90°或镜像使能,默认先旋转后镜像
  137. //typedef int (__stdcall *API_HBI_Switch2Bit8Image)(void* handle, int nbit8, int nwindowwidth, int nwindowleveling);
  138. //typedef int (__stdcall *API_HBI_OpenTemplateWizard)(void* handle);
  139. //typedef int (__stdcall *API_HBI_ReadFromUserDdr)(void* handle, unsigned char* szRcvBuff, int* nlen);
  140. //typedef int (__stdcall *API_HBI_WriteToUserDdr)(void* handle, unsigned char* szSndBuff, int nlen);
  141. //typedef int (__stdcall *API_HBI_SetRoiMode)(void* handle, int nMode, int nfeedback);//非晶硅ROI区域设置函数
  142. //typedef int (__stdcall *API_HBI_SetZoomModeRect)(void* handle, CMOS_ZOOM_RECT stZoomRect, int nfeedback);
  143. //typedef int (__stdcall *API_HBI_SetCorrectFileDirectory)(void* handle, char* pUserDir);
  144. //typedef char* (__stdcall *API_HBI_GetCorrectFileDirectory)(void* handle);
  145. //typedef int (__stdcall *API_HBI_RestoreCorrectDefaultDirectory)(void* handle);
  146. //typedef int (__stdcall *API_HBI_SSGCTRegCallbackFunc)(void* handle, SSGCT_CALLBACK_FUNC callbackfun, void* pObject);
  147. //typedef int (__stdcall *API_HBI_SSGCTEnableMode)(void* handle, int nMode, int nGroups, int nPreGroup);
  148. //typedef int (__stdcall *API_HBI_SSGCTPrepare)(void* handle);
  149. //typedef int (__stdcall *API_HBI_SSGCTSingleShot)(void* handle);
  150. //typedef int (__stdcall *API_HBI_SSGCTGenerateTemplate)(void* handle);
  151. //typedef int (__stdcall *API_HBI_SSGCTDownloadTemplate)(void* handle, int infiletype);
  152. //typedef int (__stdcall *API_HBI_UpdateWirelessNetwork)(void* handle, EtherInfo ether);
  153. //typedef int (__stdcall *API_HBI_GetWirelessNetwork)(void* handle);
  154. //typedef int (__stdcall *API_HBI_UpdateWirelessSecurityKey)(void* handle, int wirelessmode, char* pkey, int nkeylen);
  155. //typedef int (__stdcall *API_HBI_UpdateSaveOption)(void* handle, SAVE_IMAGE saveimge);
  156. //typedef int (__stdcall *API_HBI_SetPacketIntervalTime)(void* handle, int in_itime);
  157. //typedef int (__stdcall *API_HBI_GetPacketIntervalTime)(void* handle, int* out_time);
  158. //typedef int (__stdcall *API_HBI_SetDummyParameter)(void* handle, int nDummyStartCol, int nDummyEndCol, int nDummyConstant);
  159. //typedef int (__stdcall *API_HBI_AutoWindowWidthWindowLevel)(void* handle, unsigned char* imgbuff, int* nbufflen, int nwidth, int nheight);
  160. //typedef int (__stdcall *API_HBI_UnRegProgressCallBack)(void* handle);
  161. //typedef int (__stdcall *API_HBI_SetUdpMtuPacketType)(void* handle, int npacketType);
  162. //typedef int (__stdcall *API_HBI_Rotate90AndFlip)(void* handle, unsigned char* imgbuff, int nbufflen, int* pnwidth, int* pnheight, int nClockwise, int nVertical);//图像旋转和镜像处理(仅适用于16位无符号类型图像数据,默认先旋转后镜像)
  163. //typedef int (__stdcall *API_HBI_ResetCorrectTemplate)(void* handle, int nTemplateType);//重置校准模板文件-旋转、镜像逆向处理并保存,一般在下载到固件前完成处理
  164. typedef int (__stdcall *API_HBI_IsExistsOfCurCorrectTemplate)(void* handle, int tempType);//根据模板类型判断当前模板文件是否存在
  165. //typedef int (__stdcall *API_HBI_GetCurZoomRect)(void* handle, unsigned int* pZoomLeft, unsigned int* pZoomTop, unsigned int* pZoomWidth, unsigned int* pZoomHeight);
  166. //typedef char* (__stdcall *API_HBI_GetCurrentCorrectFileName)(void* handle, int tempType);
  167. //typedef int (__stdcall *API_HBI_GetAPI_HBIUserCode)(void* handle, char* szUserCode);
  168. //typedef int (__stdcall *API_HBI_GetAPI_HBIProductCode)(void* handle, char* szProductCode);
  169. //typedef int (__stdcall *API_HBI_SetWorkModeOfComs)(void* handle, int nMode);
  170. //typedef int (__stdcall *API_HBI_GetWorkModeOfComs)(void* handle);
  171. //typedef int (__stdcall *API_HBI_GetMtuAndReceiveBuffers)(void* handle, unsigned long* mtusize, int* rcvsize);
  172. //typedef int (__stdcall *API_HBI_RetransmitPacketEnable)(void* handle, unsigned int nRetransmitted);
  173. //typedef int (__stdcall *API_HBI_SetFpsOfTime)(void* handle, unsigned int untimems, unsigned short ustimeus);
  174. //typedef int (__stdcall *API_HBI_SetFirmwareOverlay)(void* handle, unsigned int noverlaynum);
  175. //typedef int (__stdcall *API_HBI_RetransMissFrameEx)(void* handle, unsigned int frameid);
  176. //typedef int (__stdcall *API_HBI_TriggerPgaBinningAcqTimeCorrect)(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, IMAGE_CORRECT_ENABLE* pCorrect);//设置触发模式、PGA档位、binning方式以及帧率(采集图像时间间隔)、矫正使能
  177. typedef void (__stdcall *API_HBI_SetLogSwitch)(bool bwrite);//日志开关
  178. //typedef int (__stdcall *API_HBI_RetransMissPacketEx)(void* handle, unsigned int frameid, unsigned int startpackagenum, unsigned int endpackagenum);
  179. //typedef int (__stdcall *API_HBI_FirmwareReset)(void* handle);
  180. //typedef int (__stdcall *API_HBI_FirmwareManagementTempalteType)(void* handle, unsigned int uType);
  181. //typedef int (__stdcall *API_HBI_SetValidModeItemNumber)(void* handle, unsigned int uNumber);
  182. //typedef int (__stdcall *API_HBI_MUpdateTriggerMode)(void* handle, int _triggerMode);//设置触发模式
  183. //typedef int (__stdcall *API_HBI_MSetBinning)(void* handle, unsigned int ubinning);
  184. //typedef int (__stdcall *API_HBI_MSetPGALevel)(void* handle, int nGainLevel);
  185. //typedef int (__stdcall *API_HBI_MSetRoiMode)(void* handle, int nMode, int nfeedback);
  186. //typedef int (__stdcall *API_HBI_MSetZoomModeRect)(void* handle, CMOS_ZOOM_RECT stZoomRect, int nfeedback);
  187. //typedef int (__stdcall *API_HBI_MSetSelfDumpingTime)(void* handle, int time);
  188. //typedef int (__stdcall *API_HBI_MSetLiveAcquisitionTime)(void* handle, int time);//设置采集时间间隔(即可设置帧率)(静态平板)
  189. //typedef int (__stdcall *API_HBI_MSetSinglePrepareTime)(void* handle, int in_itime);
  190. //typedef int (__stdcall *API_HBI_MSetFpsOfTime)(void* handle, unsigned int untimems, unsigned short ustimeus);
  191. //typedef int (__stdcall *API_HBI_MPgaAcqTime)(void* handle, int nPgaLevel, int acqtime, int nfeedback);
  192. //typedef int (__stdcall *API_HBI_MPgaBinningAcqTime)(void* handle, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback);
  193. //typedef int (__stdcall *API_HBI_MTriggerAndCorrectApplay)(void* handle, int _triggerMode, IMAGE_CORRECT_ENABLE* pCorrect);
  194. //typedef int (__stdcall *API_HBI_MTriggerBinningAcqTime)(void* handle, int triggerMode, unsigned char binning, int acqtime, int nfeedback);
  195. //typedef int (__stdcall *API_HBI_MTriggerPgaBinningAcqTime)(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback);
  196. //typedef int (__stdcall *API_HBI_MTriggerPgaBinningAcqTimeCorrect)(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, IMAGE_CORRECT_ENABLE* pCorrect);
  197. typedef bool (__stdcall *API_HBI_IsMutilMode)(void* handle);//查询当前固件是否支持多Mode(多Mode方式本质是固件对模板的管理方式不同)
  198. //typedef int (__stdcall *API_HBI_SetTICOFImageType)(void* handle, unsigned int nImageType);
  199. //typedef int (__stdcall *API_HBI_ImportCfgFile2Detector)(void* handle, int cmd, char* cfgfile);
  200. //typedef int (__stdcall *API_HBI_ExportDetectorCfg2File)(void* handle, int cmd, char* cfgfile);
  201. //typedef int (__stdcall *API_HBI_InitDetectorParams)(void* handle, DETECTOR_INIT_PARAMS param);//初始化平板探测器基础参数
  202. //typedef int (__stdcall *API_HBI_UpdateFPDSerialNumber)(void* handle, char* szSn);
  203. //typedef int (__stdcall *API_HBI_WindowWidthWindowLevel)(void* handle, unsigned char* imgbuff, int* nbufflen, int nwidth, int nheight, int nWindow, int nLeveling);
  204. //typedef int (__stdcall *API_HBI_WaitForReadyStatus)(void* handle, unsigned int tm);//等待平板ready状态
  205. //typedef int (__stdcall *API_HBI_SetSelfDumpingTimeEx)(void* handle, unsigned int untimems, unsigned short ustimeus);//平板自清空时间设置(增加了微妙)
  206. //typedef int (__stdcall *API_HBI_RestartPcieDevice)(void* handle);