AerosdkStruct.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. //============================================================================//
  2. // ProjectName : AeroSDK
  3. // FileName : AerosdkStruct.h
  4. // Outline : Structure definnition for user interface functions
  5. // Copyright (C) 2011 KONICA MINOLTA, INC. All rights reserved.
  6. //============================================================================//
  7. #pragma once
  8. //============================================================================//
  9. // Log setting information.
  10. // The structure for a user program to set log conditions to AeroSDK.
  11. // It is used in AeroSDK open function (AerosdkOpen).
  12. //
  13. // intLogLevel : Log output mode
  14. // AEROSDK_LOG_NONE : No log output
  15. // AEROSDK_LOG_NORMAL: Log output at normal level
  16. // AEROSDK_LOG_DETAIL: Log output at detailed level
  17. // AEROSDK_LOG_DEBUG : Log output at debug level
  18. // charSdkLog : Full path to the AeroSDK log file
  19. // When a character string is NULL, there is no log output.
  20. // charKmfLog : Full path to the AeroSDK Panel control system log file
  21. // When a character string is NULL, there is no log output.
  22. //============================================================================//
  23. typedef struct {
  24. int intLogLevel;
  25. char strSdkLog[512];
  26. char strKmfLog[512];
  27. } StAerosdkLogInfo;
  28. //============================================================================//
  29. // Panel setting information.
  30. // The structure for a user program to receive Panel setting information.
  31. // It is used in Panel setting information acquisition function (AerosdkGetPanelSettingInfo).
  32. //
  33. // strPanelId : Panel ID
  34. // intPanelSize : Panel size type
  35. // AEROSDK_PANEL_SIZE_8X10 : 8�~10
  36. // AEROSDK_PANEL_SIZE_10X12 : 10�~12
  37. // AEROSDK_PANEL_SIZE_11X14 : 11�~14
  38. // AEROSDK_PANEL_SIZE_14X14 : 14�~14
  39. // AEROSDK_PANEL_SIZE_14X17 : 14�~17
  40. // AEROSDK_PANEL_SIZE_17X17 : 17�~17
  41. // AEROSDK_PANEL_SIZE_18X24S: 18�~24S
  42. // AEROSDK_PANEL_SIZE_24X30S: 24�~30S
  43. // intScintilatorType : Scintillator type
  44. // AEROSDK_SCINTILATOR_CSI1: CSI1�FHQ type
  45. // AEROSDK_SCINTILATOR_CSI2: CSI2�FS type
  46. // AEROSDK_SCINTILATOR_GOS : GOS
  47. // ucharIpAddressLan : Wired LAN IP address
  48. // ushortSendPortLan : Wired LAN IP send port number
  49. // ushortRecievePortLan : Wired LAN IP recieve port number
  50. // ucharIpAddressWLan : Wireless LAN IP address
  51. // ushortSendPortWLan : Wireless LAN IP send port number
  52. // ushortRecievePortWLan : Wireless LAN IP recieve port number
  53. // ucharSubnetMask : Subnet mask
  54. // ucharDefaultGateWay : Default gateway IP address
  55. // ucharCcLan : IP address of the destination to notify of Auto tracking information
  56. // ushortCcPort : Port number of the destination to notify of Auto Tracking information.
  57. // ulongCertify : Wireless LAN authentication method
  58. // ucharSsid : Wireless LAN SSID
  59. // ucharPassPhrase : Wireless LAN passphrase
  60. //============================================================================//
  61. typedef struct {
  62. char strPanelId[68];
  63. int intPanelSize;
  64. int intScintilatorType;
  65. unsigned char ucharIpAddressLan[4];
  66. unsigned short ushortSendPortLan;
  67. unsigned short ushortReceivePortLan;
  68. unsigned char ucharIpAddressWLan[4];
  69. unsigned short ushortSendPortWLan;
  70. unsigned short ushortReceivePortWLan;
  71. unsigned char ucharSubnetMask[4];
  72. unsigned char ucharDefaultGateWay[4];
  73. unsigned char ucharCcLan[4];
  74. unsigned short ushortCcPort;
  75. unsigned long ulongCertify;
  76. unsigned char ucharSsid[36];
  77. unsigned char ucharPassPhrase[64];
  78. } StAerosdkPanelSettingInfo;
  79. //============================================================================//
  80. // Panel version information.
  81. // The structure for a user program to receive Panel version information.
  82. // It is used in Panel version information acquisition function (AerosdkGetPanelVersionInfo).
  83. //
  84. // ucharDllVersion : Panel firmware DLL version information
  85. // ucharAllVersion : Generic version information of the following versions
  86. // ucharFwComnBootVersion : Communication control boot version information
  87. // ucharFwComnVersion : Communication control firmware version information
  88. // ucharFwPowerBootVersion : Power control boot version information
  89. // ucharFwPowerVersion : Power control firmware version information
  90. // ucharFpgaVersion : FPGA version information
  91. //============================================================================//
  92. typedef struct {
  93. unsigned char ucharDllVersion[4];
  94. unsigned char ucharAllVersion[4];
  95. unsigned char ucharFwComnBootVersion[4];
  96. unsigned char ucharFwComnVersion[4];
  97. unsigned char ucharFwPowerBootVersion[4];
  98. unsigned char ucharFwPowerVersion[4];
  99. unsigned char ucharFpgaVersion[4];
  100. } StAerosdkPanelVersionInfo;
  101. //============================================================================//
  102. // XGBOX status information.
  103. // The structure for a user program to receive XGBOX status information.
  104. // It is used in XGBOX status information acquisition function (AerosdkGetXgboxStatusInfo).
  105. //
  106. // intWsNo : WS number
  107. // intPrepare : Prepare signal (AEROSDK_ON / AEROSDK_OFF)
  108. // intExposure : Exposure signal (AEROSDK_ON / AEROSDK_OFF)
  109. // intMainGate : MainGate signal (AEROSDK_ON / AEROSDK_OFF)
  110. // intKM_Ready : KM_Ready signal (AEROSDK_ON / AEROSDK_OFF)
  111. // intPanelConnection : Connection to Panel
  112. // AEROSDK_ON : Panel and XGBOX connected
  113. // AEROSDK_OFF: Panel and XGBOX disconnected
  114. // intCrMode : CR mode status
  115. // AEROSDK_ON : CR mode (X-ray Generator is not linked)
  116. // AEROSDK_OFF: DR mode (X-ray Generator is linked)
  117. //============================================================================//
  118. typedef struct {
  119. int intWsNo;
  120. int intPrepare;
  121. int intExposure;
  122. int intMainGate;
  123. int intKM_Ready;
  124. int intPanelConnection;
  125. int intCrMode;
  126. int intModeSetting;
  127. } StAerosdkXgboxStatusInfo;
  128. //============================================================================//
  129. // Setting information for the connection between AeroSDK and XGBOX.
  130. // The structure for a user program to receive setting information for the connection between AeroSDK and XGBOX.
  131. // It is used in XGBOX setting information acquisition function (AerosdkGetXgboxSettingInfo).
  132. //
  133. // ucharIpAddress : Wired IP address (for AeroSDK-XGBOX connection)
  134. // ucharSubnetMask : Subnet mask
  135. // ucharDefaultGateWay : Default gateway IP address
  136. // ushortDefaultPort : Wired port number (for AeroSDK-XGBOX connection)
  137. //============================================================================//
  138. typedef struct {
  139. unsigned char ucharIpAddress[4];
  140. unsigned char ucharSubnetMask[4];
  141. unsigned char ucharDefaultGateWay[4];
  142. unsigned short ushortDefaultPort;
  143. } StAerosdkXgboxSettingInfo;
  144. //============================================================================//
  145. // XGBOX conservation information structure.
  146. // The structure for a user program to receive XGBOX conservation information.
  147. // It is used in XGBOX conservation information acquisition function (AerosdkGetXgboxConservationInfo).
  148. //
  149. // intWsNo : WS number
  150. // intCountPrepare : The number (total number) of Prepare signals that XGBOX has received from X-ray Generator via XIF specified by WS number [WsNo] until then.
  151. // intCountExposure : The number (total number) of Exposure signals that XGBOX has received from X-ray Generator via XIF specified by WS number [WsNo] until then.
  152. // intCountMainGate : The number (total number) of MainGate signals that XGBOX has received from X-ray Generator via XIF specified by WS number [WsNo] until then.
  153. // intCountKM_Ready : The number (total number) of KM_Ready signals that XGBOX has received from X-ray Generator via XIF specified by WS number [WsNo] until then.
  154. //============================================================================//
  155. typedef struct {
  156. int intWsNo[3];
  157. int intCountPrepare[3];
  158. int intCountExposure[3];
  159. int intCountMainGate[3];
  160. int intCountKM_Ready[3];
  161. } StAerosdkXgboxConservationInfo;
  162. //============================================================================//
  163. // XGBOX version information.
  164. // The structure for a user program to receive XGBOX version information.
  165. // It is used in XGBOX version information acquisition function (AerosdkGetXgboxVersionInfo).
  166. //
  167. // ucharTotalVersion : Generic version information of the following versions
  168. // ucharBootVersion : Boot version information
  169. // ucharSystemVersion : System version information
  170. // ucharCpldVersion : CPLD version information
  171. //============================================================================//
  172. typedef struct {
  173. unsigned char ucharTotalVersion[4];
  174. unsigned char ucharBootVersion[4];
  175. unsigned char ucharSystemVersion[4];
  176. unsigned char ucharCpldVersion[4];
  177. } StAerosdkXgboxVersionInfo;
  178. //============================================================================//
  179. // PANEL alignment information.
  180. // The structure for a user program to receive Panel alignment information.
  181. // It is used in Panel information acquisition function (AerosdkGetPanelAlignmentInfo).
  182. //
  183. // intEnabled : Flag to judge whether Panel angle information is valid.
  184. // AEROSDK_ON : Panel angle information is valid,
  185. // AEROSDK_OFF: Panel angle information is invalid.
  186. // intRollAngle : Current roll angle of Panel.
  187. // Value range:from -900 to 900 [0.1deg]
  188. // intPitchAngle : Current pitch angle of Panel.
  189. // Value range:from -900 to 900 [0.1deg]
  190. //============================================================================//
  191. typedef struct {
  192. int intEnabled;
  193. int intRollAngle;
  194. int intPitchAngle;
  195. } StAerosdkPanelAlignmentInfo;