AxsFunc.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. #ifndef AXSFUNC_H
  2. #define AXSFUNC_H
  3. #include "Pegasus.h"
  4. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_RegisterProgressionCallback)(PEGASUS_ProgressionEventCallback* pProgressionCallBack);
  5. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_Initialize)(PEGASUS_EventRegistrationCallback* pRegistrationCallBack);
  6. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_QuickInitialize)(
  7. PEGASUS_EventRegistrationCallback* pRegistrationCallBack,
  8. PEGASUS_Context targetContext,
  9. bool isSkipEoConfig);
  10. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_Shutdown)(void);
  11. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_LoadContext)(PEGASUS_Context context);
  12. //Detail information °üº¬ informationÖеÄÐÅÏ¢
  13. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_DetailedInformation)(PEGASUS_DetailedInfo* pDetailedInfo);
  14. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_Information)(PEGASUS_Info* pInfo);
  15. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_SystemDetailedInformation)(PEGASUS_SystemDetailedInfo* pSystemDetailedInfo);
  16. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_CalibrationInformation)(PEGASUS_CalibrationInfo* pCalibrationInfo);
  17. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetCalibrationInformation)(
  18. const char* pCalibrationType,
  19. int index,
  20. PEGASUS_CalibrationStats* pCalibrationStats);
  21. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetCalibrationInformationUsingType)(
  22. PEGASUS_CalibrationType calibrationType,
  23. int index,
  24. PEGASUS_CalibrationStats* pCalibrationStats);
  25. typedef __declspec(dllimport) bool(*AXS_PEGASUS_IsReadyForExposure)(void);
  26. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_Acquire)(
  27. PEGASUS_TargetFilter targetFilter,
  28. PEGASUS_Image* pAecData,
  29. PEGASUS_Image* pResultImage);
  30. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_AbortAcquire)(void);
  31. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_StartContinuousAcquisition)(
  32. PEGASUS_TargetFilter targetFilter,
  33. bool isAecMode,
  34. PEGASUS_Context context,
  35. PEGASUS_MultiEventRegistrationCallback* pMultiEventRegistrationCallback);
  36. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_StartContinuousAcquisitionEx)(
  37. PEGASUS_AcquisitionProperties* pAcquisitionProperties,
  38. PEGASUS_MultiEventRegistrationCallback* pMultiEventRegistrationCallback);
  39. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_ChangeContinuousAcquisitionProperties)(
  40. PEGASUS_TargetFilter targetFilter,
  41. bool isAecMode,
  42. PEGASUS_Context context);
  43. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_ChangeContinuousAcquisitionPropertiesEx)(PEGASUS_AcquisitionProperties* pAcquisitionProperties);
  44. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetContinuousAcquisitionProperties)(
  45. PEGASUS_TargetFilter* pTargetFilter,
  46. bool* pIsAecMode,
  47. PEGASUS_Context* pCurrentContext,
  48. int* pCurrentSequenceId);
  49. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetContinuousAcquisitionPropertiesEx)(
  50. PEGASUS_AcquisitionProperties* pAcquisitionProperties,
  51. int* pCurrentSequenceId);
  52. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_OverrideTargetFilter)(int sequenceId,PEGASUS_TargetFilter targetFilter);
  53. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetAecImage)(int sequenceId,PEGASUS_Image* pAecImage);
  54. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetCorrectedImage)(int sequenceId,int imageIndex,PEGASUS_Image* pCorrectedImage);
  55. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetInformationOfFirstAvailableImage)(PEGASUS_ImageInformation* pImageInformation);
  56. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_StartSingleAcquisition)(
  57. PEGASUS_AcquisitionProperties* pAcquisitionProperties,
  58. PEGASUS_MultiEventRegistrationCallback* pMultiEventRegistrationCallback);
  59. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_PrepareForExposure)(int timeout);
  60. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_TriggerAcquisition)(int exposeWindowWidth);
  61. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_RecoverImage)(
  62. int sequenceId,
  63. PEGASUS_TargetFilter targetFilter,
  64. PEGASUS_Context context,
  65. PEGASUS_MultiEventRegistrationCallback* pMultiEventRegistrationCallback);
  66. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_RecoverImageEx)(
  67. int sequenceId,
  68. PEGASUS_AcquisitionProperties* pAcquisitionProperties,
  69. PEGASUS_MultiEventRegistrationCallback* pMultiEventRegistrationCallback);
  70. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_CancelImageRecovery)(int sequenceId);
  71. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_RecoverLastSequenceID)(int* pSequenceId);
  72. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_Calibrate)(PEGASUS_Image* deprecated);
  73. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_CalibrateEx)(int numberOfSequences);
  74. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetNbrCalImagesLeft)(int* pNbrCalImagesLeft);
  75. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_AbortCalibration)(void);
  76. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_AddImageToCalibration)(void);
  77. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_RejectCalibrationImage)(void);
  78. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_AutoCalibrate)(char calibrationType[PEGASUS_MAX_STRING_LENGTH]);
  79. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_CalibrateUsingType)(PEGASUS_CalibrationType calibrationType,int numberOfSequences);
  80. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_StopComServer)(void);
  81. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetLogLevel)(PEGASUS_LogLevel* pLogLevel);
  82. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_SetLogLevel)(PEGASUS_LogLevel logLevel);
  83. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_SelfTest)(PEGASUS_SelfTestType selftTestType);
  84. typedef __declspec(dllimport) void(*AXS_PEGASUS_Sleep)(int timeoutMsec);
  85. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_ServiceImageInformation)(
  86. PEGASUS_ServiceImageType imageType,
  87. int* pImageCount,
  88. PEGASUS_ServiceImageInfo* pInfo);
  89. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetServiceImage)(
  90. PEGASUS_ServiceImageType imageType,
  91. int imageIndex,
  92. PEGASUS_Context context,
  93. PEGASUS_Image* pServiceImage);
  94. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_UpdateDefectMap)(
  95. PEGASUS_DefectType defectType,
  96. bool isAddDefect,
  97. int column,
  98. int row,
  99. PEGASUS_Context context);
  100. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetWeakDefect)(
  101. PEGASUS_Context context,
  102. unsigned int* pInOutItemCount,
  103. PEGASUS_WeakDefect* pOutWeakDefectArray);
  104. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_UpdateWeakDefect)(
  105. PEGASUS_Context context,
  106. bool isAddWeakDefect,
  107. PEGASUS_WeakDefect* pWeakDefect);
  108. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetErrorDescription)(
  109. PEGASUS_ErrorCode errorCode,
  110. char shortDescription[PEGASUS_MAX_STRING_LENGTH],
  111. char longDescription[PEGASUS_MAX_STRING_LENGTH]);
  112. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetEventDescription)(
  113. PEGASUS_EventType eventCode,
  114. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  115. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetMultiEventDescription)(
  116. PEGASUS_MultiEventType eventCode,
  117. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  118. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetDebugDump)(void);
  119. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetDetectorTypeDescription)(
  120. PEGASUS_DetectorType detectorType,
  121. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  122. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetProductTypeDescription)(
  123. PEGASUS_ProductType productType,
  124. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  125. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetContextCodeDescription)(
  126. PEGASUS_Context contextCode,
  127. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  128. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetDetectorStateDescription)(
  129. PEGASUS_DetectorState detectorState,
  130. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  131. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetPegasusStateDescription)(
  132. PEGASUS_State pegasusState,
  133. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  134. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetLogLevelCodeDescription)(
  135. PEGASUS_LogLevel logLevelCode,
  136. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  137. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetSelfTestTypeDescription)(
  138. PEGASUS_SelfTestType selfTestType,
  139. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  140. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetTargetFilterTypeDescription)(
  141. PEGASUS_TargetFilter targetFilterType,
  142. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  143. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetFocusTypeDescription)(
  144. PEGASUS_FocusType focusType,
  145. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  146. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetServiceImageTypeDescription)(
  147. PEGASUS_ServiceImageType serviceImageType,
  148. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  149. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetPixelFormatDescription)(
  150. PEGASUS_PixelFormat pixelFormat,
  151. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  152. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetDefectTypeDescription)(
  153. PEGASUS_DefectType defectType,
  154. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  155. typedef __declspec(dllimport) void(*AXS_PEGASUS_GetCalibrationTypeDescription)(
  156. PEGASUS_CalibrationType calibrationType,
  157. char shortDescription[PEGASUS_MAX_STRING_LENGTH]);
  158. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_GetAvailableContext)(int* pArrayLen, PEGASUS_Context* pContextArray);
  159. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_Entry)();
  160. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_Exit)();
  161. typedef __declspec(dllimport) PEGASUS_ErrorCode(*AXS_PEGASUS_TerminateAcquisition)();
  162. #endif // AXSFUNC_H