PZMedicalLib.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. #ifndef PZMEDICALLIB_H
  2. #define PZMEDICALLIB_H
  3. #include "NetCom.h"
  4. //----------------- Initialization and image acquisition process
  5. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Init)();// Initialize the configurations, network resource and environment for SDK.
  6. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_List)(TComFpList*);//Get a list which include all connected detector, struct “TComFpList” is defined in the next chapter.
  7. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ListAdd)(CHAR* psn);//Add detecotr to the detector list
  8. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ListDel)(CHAR* psn);// Delete detector from the detector list
  9. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ListClr)();//: Clear detector list
  10. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Open)(CHAR* psn);// Try to connect detector, if the detector is connected, you will get a “Link up” event after calling it
  11. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Close)();
  12. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_StopNet)();//Stop the network, you will get a “Link down” event 6 seconds later. Calling it when you need to change network configuration.
  13. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_StartNet)();//Start the network, you will get a “Link up” event after calling it. Calling it together with COM_StopNet and after network configure done
  14. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_RegisterEvCallBack)(CHAR, FP_EVENT_CALLBACK);
  15. //EVENT_LINKUP:detector connected after COM_Open being called.
  16. //EVENT_LINKDOWN:detector disconnected after COM_Open being called.
  17. //EVENT_IMAGEVALID:image received.
  18. //EVENT_HEARTBEAT: heart beat received after COM_Open being called.
  19. //EVENT_LINKUPEX:detector connected, used in multiple detectors situation.
  20. //EVENT_LINKDOWNEX:detector disconnected, used in multiple situation.
  21. //EVENT_HEARTBEATEX:heart beat received, used in multiple situation.
  22. //EVENT_EXPOSE : X - ray detected.
  23. //EVENT_EXPEND:X - ray end.
  24. //EVENT_READY: detector is ready for exposue, effective in HST mode, after COM_ExposeReq being called.
  25. //EVENT_AED_A1:detector come to AED1 state, effective in AED mode
  26. //EVENT_AED_A2:detector come to AED2 stateand ready for exposure, effective in AED mode
  27. //EVENT_AEC_STOP : the Aec stops.
  28. //EVENT_OFFSETDONE : The offset template in the FP has been refreshed, and the event will only be triggered by sending the prep command.
  29. //EVENT_AED_PREP_DONE:When the COM_AedPrep interface is called, the fp sends the eventand returns to the idle state after performing the preparation.
  30. //EVENT_INFO_MODIFIED : When the FP configuration is changed by NFC, the FP immediately sends this EVENT to notify the top user.In this event, we can call the interface(COM_GetInfoModified)to get the information about the modification.
  31. //EVENT_UPLOADFILESTEP:Related event callbacks generated during the process of uploading template files.
  32. //EVENT_IMAGESTART:The event of start to transmit image data.
  33. //EVENT_IMAGEEND : The event of end to transmit image data.
  34. //EVENT_BATTLOW1 : Low battery alarm event.
  35. //EVENT_BATTLOW2 : Low battery alarm event.The remaining battery power is smaller than the EVENT_BATTLOW1 event
  36. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetPreCalibMode)(CHAR nCalMode);// Set detector calibration mode, called before the image acquisition. After setting, the image received will be calibrated in this mode
  37. typedef __declspec(dllimport) CHAR(__stdcall* PZ_COM_GetPreCalibMode)();//get calibration mode from detector.
  38. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetCalibMode)(CHAR nCalMode);//Set SDK calibration mode, called before the image acquisition. After setting, the image received will be calibrated in this mode.
  39. typedef __declspec(dllimport) CHAR(__stdcall* PZ_COM_GetCalibMode)();//get calibration mode from SDK
  40. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_HstAcq)();//切换到手动模式
  41. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Trigger)();//Acquire an image in HST mode, this command involve clearing TFT, updating offset calibration templateand acquiring image.
  42. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Prep)();//刷暗场 In hst mode, trigger the FP to refresh the offset template(
  43. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Acq)();// Test command, Just acquire an image in HST mode
  44. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_PrepAcq)();// Test command, Clear TFTand acquire an image in HST mode.
  45. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ComAcq)(); //Test command, ask CB generate hand switch signals to simulate a true exposure request.
  46. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetAcq)();
  47. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ExposeReq)();// Acquire images as COM_Trigger, this command will generate ready event in HST mode.
  48. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_AedAcq)();//切换到AED工作模式
  49. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_AedTrigger)();//Simulate an exposure. It is only effective in AED mode
  50. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_AedPrep)();
  51. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Aed2Acq)();//The FP immediately enters the aed2 state.
  52. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Stop)(); // 停止工作模式,进入空闲模式
  53. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Dst)();//Only for dynamic detector. Set detector to DST mode. It is only effective in Idle state.
  54. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Dacq)();// Only for dynamic detector. Acquire images according to configures in DST mode.
  55. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Cbct)();//Only for dynamic detector. Wait for trigger from input synchronization signals, acquire images in DST mode
  56. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_Dexit)();//Only for dynamic detector. Stop acquisition or Cbct mode, make detector go to DST mode.It is only effective in DST / CBCT mode.
  57. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetImageMode)(TImageMode* ptImageMode); // Get image format, usually being called when image valid event comes
  58. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetImageModeV)(TImageMode* ptImageMode);
  59. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetImageName)(CHAR* name);//:Memory address for storing image name, buffer should contain 256 bytes at least.
  60. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetImage)(CHAR*);//获取探测器原图
  61. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetImageV)(CHAR*);
  62. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetImageID)(UINT32* pimgID);
  63. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ResetFP)();//Reset the detector
  64. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_FpTurnOff)();
  65. typedef __declspec(dllimport) INT32(__stdcall* PZ_COM_GetErrNo)();
  66. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_AedAcqOffLine)();//The detector enters offline aed mode
  67. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_AcqOffLineImage)();//Get Image taken offline.
  68. typedef __declspec(dllimport) UINT32(__stdcall* PZ_COM_GetNumOffLineImg)();
  69. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetPreImg)();// Get the last image 无出参???用法不详
  70. //----------------- Configuration Related
  71. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetCfgFilePath)(CHAR* path);
  72. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetFPConf)(TFPUserCfg* ptFpUserCfg);
  73. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPConf)(TFPUserCfg* ptFpUserCfg);//获取探测器配置信息
  74. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetRBConf)(TRBConf* ptRbConf);
  75. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetRBConf)(TRBConf* ptRbConf);
  76. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetWifiMode)(BOOL ApMode);//Set detector wifi mode as AP or Station or turn off.
  77. typedef __declspec(dllimport) CHAR(__stdcall* PZ_COM_GetWifiMode)();
  78. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetWifiConf)(TWifiConf* ptWifiConf);
  79. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetWifiConf)(TWifiConf* ptWifiConf);
  80. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetWifiConfEx)(TWifiConf* ptWifiConfAp, TWifiConf* ptWifiConfSta);
  81. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetWifiConfEx)(TWifiConf* ptWifiConfAp, TWifiConf* ptWifiConfSta);
  82. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetWifiCountry)(CHAR* pCountry);
  83. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetWifiCountry)(CHAR* pCountry);
  84. //Set wifi country of AP mode. The countries or regions that can be supported are shown in the table below.
  85. //00, AD, AE, AF, AI, AL, AM, AN, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG,
  86. //BH, BL, BM, BN, BO, BR, BS, BT, BY, BZ, CA, CF, CH, CI, CL, CN, CO, CR, CU, CX,
  87. //CY, CZ, DE, DK, DM, DO, DZ, EC, EE, EG, ES, ET, FI, FM, FR, GB, GD, GE, GF, GH,
  88. //GL, GP, GR, GT, GU, GY, HK, HN, HR, HT, HU, ID, IE, IL, IN, IR, IS, IT, JM, JO,
  89. //JP, KE, KH, KN, KP, KR, KW, KY, KZ, LB, LC, LI, LK, LS, LT, LU, LV, MA, MC, MD,
  90. //ME, MF, MH, MK, MN, MO, MP, MQ, MR, MT, MU, MV, MW, MX, MY, NG, NI, NL, NO, NP,
  91. //NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PR, PT, PW, PY, QA, RE, RO, RS, RU, RW,
  92. //SA, SE, SG, SI, SK, SN, SR, SV, SY, TC, TD, TG, TH, TN, TR, TT, TW, TZ, UA, UG,
  93. //US, UY, UZ, VC, VE, VI, VN, VU, WF, WS, YE, YT, ZA, ZW
  94. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetApEssid)(CHAR* pessid);//Set wireless ESSID for detector
  95. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetApEssid)(CHAR* pessid);
  96. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DefFPConf)();//Detector configuration reset to factory default.
  97. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DefRBConf)();
  98. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetXwin)(USHORT xwin);//Set exposure window. Detector would not save this parameter.
  99. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetXwin)(USHORT* xwin);
  100. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetDynamicPara)(USHORT xwin, CHAR repeat, CHAR binMode);
  101. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetBinningMode)(CHAR cbinningMode);// Only for dynamic detector. Set bin mode to detector.
  102. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetBinningMode)(CHAR* cbinningMode);
  103. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetIfsRef)(CHAR cbinningMode, UCHAR cIfs, UCHAR cRef);// Set the ifs and ref values corresponding to the binning mode.
  104. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetIfsRef)(CHAR cbinningMode, UCHAR* cIfs, UCHAR* cRef);//cbinningMode can be BINNING_1x1, BINNING_2x2 etc.
  105. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetGainValue)(CHAR cbinningMode, UCHAR ucGain);//: Set gain level of image. ucGain: gain level, the value can be 0-5.
  106. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetGainValue)(CHAR cbinningMode, UCHAR* ucGain);
  107. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetPacketPauseTime)(USHORT pauseT_us);
  108. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPType)();
  109. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetFPType)(CHAR ucFpType);
  110. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPLicense)(TLicenseInfo* tLicenseInfo);
  111. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetFpSelfStart)(CHAR enableflag);//Set the detector to automatically turn on after power on, 0:disable ,1:enable
  112. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetFpTime2TurnOffAfterDisc)(UINT32 time_mins);//Set the detector to automatically shut down after time_mins minutes of disconnection.
  113. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetFpAutoAedOffline)(CHAR enableflag);//: Set the detector to automatically enter the AED off line mode after turning on
  114. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetMetaData)(TMetaData tMetaData);
  115. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetMetaData)(TMetaData* ptMetaData);
  116. typedef __declspec(dllimport) UCHAR(__stdcall* PZ_COM_GetFpWorkState)();
  117. typedef __declspec(dllimport) UCHAR(__stdcall* PZ_COM_GetFpPendingState)();
  118. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ClearPendingState)();
  119. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_TplPathSet)(CHAR* path);//: Specify指定 a template path.
  120. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_TplPathGet)(CHAR* path);
  121. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ImgPathSet)(CHAR* path);
  122. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ImgPathGet)(CHAR* path);//Get the directory path of image
  123. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_LogPathSet)(CHAR* path);
  124. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_LogPathGet)(CHAR* path);//Get the directory path of log.
  125. typedef __declspec(dllimport) INT32(__stdcall* PZ_COM_BatLow1Get)();// Get the first battery low level power threshold.
  126. typedef __declspec(dllimport) INT32(__stdcall* PZ_COM_BatLow2Get)();//Get the second battery low level power threshold.
  127. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_BatLow1Set)(INT32 iBatLow);
  128. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_BatLow2Set)(INT32 iBatLow);
  129. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DhcpActivate)(CHAR enableflag);
  130. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DhcpSetCfg)(TDhcpCfg* tDhcpCfg);
  131. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DhcpGetCfg)(TDhcpCfg* tDhcpCfg);
  132. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetFpIpNetmask)(UINT32 Ip, UINT32 netmask);//IP format: If the dotted decimal IP is “192.168.11.248”, then the 4-byte IP is 0xC0A80BF8. Netmaskand IP maintain the same format.
  133. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetSenValue)(USHORT senValue, CHAR* ppassword);
  134. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetSenValue)(USHORT* psenValue);//Get the Value of sensitivity. 敏感度
  135. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetClientSn)(CHAR* pClientSn, CHAR* ppassword);
  136. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetClientSn)(CHAR* pClientSn);//: The buffer of Client SN. The buffer size is at least 32 bytes.
  137. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetClientPn)(CHAR* pClientPn, CHAR* ppassword);//The buffer of Client PN. The buffer size is 32 bytes.
  138. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetClientPn)(CHAR* pClientPn);
  139. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetNickname)(CHAR* pNickname);//The buffer of NickName. The buffer size is 32 bytes.
  140. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetNickname)(CHAR* pNickname);
  141. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetExtBattDefaultCapacity)(int iCapacity);//Set default capacity of external battery.
  142. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetExtBattDefaultCapacity)(int* piCapacity);
  143. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetAecEnable)(UINT16 aecGroup);
  144. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetAecThreshold)(CHAR aecNum, UINT16 valueset);
  145. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetInfoModified)(CHAR* pInfo);
  146. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_QuaternionActivate)(CHAR enableflag);
  147. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SdkLog)(BOOL on);//: Turn on or off the log recording function, calling it before COM_Init().
  148. //----------------- Calibration and Templates
  149. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetAllTpl)();//: Load all the templetes,including offset,defect and gain templete.
  150. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DefFPTpl)();//Detector templates reset to factory default.
  151. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_UploadOffsetTpl)(char* path);//Upload offset template to detector, the parameter is the local template path
  152. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DownloadOffsetTpl)(char* path);
  153. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_UploadGainTpl)(char* path);
  154. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DownloadGainTpl)(char* path);
  155. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DownloadDefectTpl)(char* path);
  156. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_UploadFPZMTpl)(CHAR TplType, CHAR* Tplpath);
  157. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DownLoadFPZMTpl)(CHAR TplType, CHAR* Tplpath);
  158. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DownloadDefectMap)(char* pData);
  159. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_DownloadDefectMapV)(char* pData);
  160. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetOffsetTpl)(char* path);//Set offset template for local use. The parameter is local template path.
  161. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetGainTpl)(char* path);
  162. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetDefectTpl)(char* path);
  163. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GenOffsetTpl)();//Generate offset template
  164. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GenGainTpl)();
  165. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GenDefectTpl)();
  166. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_CalibOffsetTpl)(CHAR* pData);//Do offset calibration to original image, Input parameter: Pointer to image data
  167. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_CalibGainTpl)(CHAR* pData);
  168. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_CalibDefectTpl)(CHAR* pData);
  169. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_EditDefectTpl)(UINT16 x, UINT16 y, BOOL valid);
  170. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_EditLineDefectTpl)(UINT16 line, BOOL bRow, BOOL valid);
  171. //----------------- Status and Information
  172. typedef __declspec(dllimport) CHAR(__stdcall* PZ_COM_GetFPCompatibleVer)();//Get compatible verion of current detector
  173. //FP_COMPATIBLE_VER the first compatible version(old)
  174. //ZM_COMPATIBLE_VER the second compatible version(new)
  175. //ERR_COMPATIBLE_VER the wrong compatible version
  176. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetDllVer)(char* SDKVer);//Get SDK version
  177. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPInfo)(TFPInfo* ptFPInfo);// 获取探测器固件版本等信息
  178. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPStatus)(TFPStat* ptFPStatus);//温度湿度,wifi信息,电池信息
  179. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPStatusEx)(CHAR* Psn, TFPStat* ptFPStatus);
  180. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPStatusP)(TFPStatex* ptFPStatex);//温度湿度,wifi信息,电池信息(更详细)
  181. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPStatusPex)(TFPStatex* ptFPStatex, CHAR* psn);
  182. typedef __declspec(dllimport) CHAR(__stdcall* PZ_COM_GetFPCurStatus)();// 获取探测器工作状态
  183. //STATUS_NULL status invalid
  184. //STATUS_IDLE status idle
  185. //STATUS_HST hand switch working status
  186. //STATUS_AED1 AED working status of refreshing preoffset template
  187. //STATUS_AED2 AED working status
  188. //STATUS_RECOVER Recover status
  189. typedef __declspec(dllimport) CHAR(__stdcall* PZ_COM_GetFPCurStatusEx)(CHAR* Psn);
  190. typedef __declspec(dllimport) CHAR(__stdcall* PZ_COM_GetFPWireState)();// Get the FPD connection state Return Value: the state of FPD connection(CONNECT_WIFI or CONNECT_WIRE)
  191. typedef __declspec(dllimport) CHAR(__stdcall* PZ_COM_GetFPWireStateEx)(CHAR* Psn);
  192. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPsn)(CHAR*);
  193. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPsnEx)(CHAR index, CHAR* Psn);
  194. typedef __declspec(dllimport) UINT32(__stdcall* PZ_COM_GetFpPowerMode)();// get the FP power mode. The specific information is expressed in bits, for example, 0x11 indicates that the adapter is working normally. 0x22 means battery 1 is working normally, 0x44 means battery 2 is working normally.
  195. typedef __declspec(dllimport) UINT32(__stdcall* PZ_COM_GetFpPowerModeEx)(CHAR* Psn);//get the FP power mode. Use in muti-panel systems.
  196. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPMotionFeatures)(TMotionFeatures* tMotionFeatures);// Get the motion and quaternion features data.(行为特征)
  197. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetFPShock)(TShockInfo* pShockInfo);//Get the collision information of the FP.(碰撞信息)
  198. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_ClearFPShock)(CHAR* ppassword);
  199. //----------------- V4.1.21SDK文档中没有的接口
  200. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GetImageShiftMode)(TImageShiftMode*);
  201. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_GenAEDParam)(); // 触发AED校正
  202. typedef __declspec(dllimport) BOOL(__stdcall* PZ_COM_SetAedCorrKB)(); // AED校正时向探测器发送校正信息
  203. #endif // PZMEDICALLIB_H