IRayEnumDef_MAM.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. /**
  2. * File: IRayEnumDef_MAM.h
  3. *
  4. * Purpose: IRay enum definition
  5. *
  6. *
  7. * @author Haitao.Ning
  8. * @version 1.0 2015/4/23
  9. *
  10. * Copyright (C) 2009, 2015, iRay Technology (Shanghai) Ltd.
  11. *
  12. */
  13. #ifndef _IRAY_ENUM_DEF_H_
  14. #define _IRAY_ENUM_DEF_H_
  15. //*
  16. //** Parsed content begin
  17. //*
  18. enum Enm_EventLevel
  19. {
  20. Enm_EventLevel_Info = 0,
  21. Enm_EventLevel_Warn = 1,
  22. Enm_EventLevel_Error = 2,
  23. Enm_EventLevel_Notify = 3,
  24. };
  25. enum Enm_LogLevel
  26. {
  27. Enm_LogLevel_Debug = 0,
  28. Enm_LogLevel_Info = 1,
  29. Enm_LogLevel_Warn = 2,
  30. Enm_LogLevel_Error = 3,
  31. Enm_LogLevel_Always = 4,
  32. };
  33. enum Enm_Authority
  34. {
  35. Enm_Authority_Basic = 0x00000000,
  36. Enm_Authority_RawImage = 0x00000001, // Bit_1
  37. Enm_Authority_UserDetConfig = 0x00000002, // Bit_2
  38. Enm_Authority_Tomo = 0x00000004, // Bit_3
  39. Enm_Authority_Test = 0x00002000, // Bit_14
  40. Enm_Authority_FactoryConfig = 0x00004000, // Bit_15
  41. Enm_Authority_WriteSN = 0x00008000, // Bit_16
  42. Enm_Authority_EMS = 0x00010000, // Bit_17
  43. Enm_Authority_RemoveGrid = 0x00020000, // Bit_18
  44. Enm_Authority_VirtualGrid = 0x00040000, // Bit_19
  45. Enm_Authority_DynaNoiseReduct = 0x00080000, // Bit_20
  46. Enm_Authority_OEM = 0x00007FFF, // Bit_1..15
  47. Enm_Authority_Full = 0x7FFFFFFF, // Bit_1..31
  48. };
  49. enum Enm_AuthMode
  50. {
  51. Enm_AuthMode_Null = 0,
  52. Enm_AuthMode_PCID = 1,
  53. Enm_AuthMode_UserCode = 2,
  54. Enm_AuthMode_DetSN = 3,
  55. };
  56. enum Enm_Switch
  57. {
  58. Enm_Off = 0,
  59. Enm_On = 1,
  60. };
  61. enum Enm_DetectorState
  62. {
  63. Enm_State_Unknown = 0,
  64. Enm_State_Ready = 1,
  65. Enm_State_Busy = 2,
  66. };
  67. enum Enm_Transaction
  68. {
  69. Enm_Transaction_Null = 0,
  70. Enm_Transaction_GainGen = 1, // Generating Gain calibration templage
  71. Enm_Transaction_DefectGen = 2, // Generating Defect calibration templage
  72. };
  73. enum Enm_ConnectionState
  74. {
  75. Enm_ConnState_Unknown = 0, // not initialized
  76. Enm_ConnState_HardwareBreak = 1, // specified communication hardware can not find, or been plugged out
  77. Enm_ConnState_NotConnected = 2, // hardware exist but not ready for communication
  78. Enm_ConnState_LowRate = 3, // connected but in bad situation
  79. Enm_ConnState_OK = 4, // normal connected
  80. };
  81. enum Enm_ImageTag
  82. {
  83. Enm_ImageTag_Width = 0x0100, // Tiff tag: image width in pixels
  84. Enm_ImageTag_Height = 0x0101, // Tiff tag: image height in pixels
  85. Enm_ImageTag_BitsPerSample = 0x0102, // Tiff tag: bits per channel (sample)
  86. Enm_ImageTag_Compression = 0x0103, // Tiff tag: data compression technique
  87. Enm_ImageTag_PhotoMetric = 0x0106, // Tiff tag: photometric interpretation
  88. Enm_ImageTag_Description = 0x010E, // Tiff tag: info about image
  89. Enm_ImageTag_Maker = 0x010F, // Tiff tag: scanner manufacturer name
  90. Enm_ImageTag_Model = 0x0110, // Tiff tag: scanner model name/number
  91. Enm_ImageTag_StripOffsets = 0x0111, // Tiff tag: offsets to data strips
  92. Enm_ImageTag_Orientation = 0x0112, // Tiff tag: image orientation
  93. Enm_ImageTag_SamplePerPixel = 0x0115, // Tiff tag: samples per pixel
  94. Enm_ImageTag_RowsPerStrip = 0x0116, // Tiff tag: rows per strip of data
  95. Enm_ImageTag_StripByteCounts = 0x0117, // Tiff tag: bytes counts for strips
  96. Enm_ImageTag_XResolution = 0x011A, // Tiff tag: pixels/resolution in x
  97. Enm_ImageTag_YResolution = 0x011B, // Tiff tag: pixels/resolution in y
  98. Enm_ImageTag_ResolutionUnit = 0x0128, // Tiff tag: units of resolutions
  99. Enm_ImageTag_Software = 0x0131, // Tiff tag: name & release
  100. Enm_ImageTag_DateTime = 0x0132, // Tiff tag: creation date and time
  101. Enm_ImageTag_FrameNo = 0x8001, // Extern tag:
  102. Enm_ImageTag_Temperature = 0x8002, // Extern tag:
  103. Enm_ImageTag_RealFrequency = 0x8003, // Extern tag:
  104. Enm_ImageTag_ExposureDelay = 0x8004, // Extern tag:
  105. Enm_ImageTag_AcquireTime = 0x8005, // Extern tag:
  106. Enm_ImageTag_KV = 0x8006, // Extern tag:
  107. Enm_ImageTag_MA = 0x8007, // Extern tag:
  108. Enm_ImageTag_MS = 0x8008, // Extern tag:
  109. Enm_ImageTag_SID = 0x8009, // Extern tag:
  110. Enm_ImageTag_Dose = 0x800A, // Extern tag:
  111. Enm_ImageTag_ExposureLine = 0x800B, // Extern tag:
  112. Enm_ImageTag_CorrectFlag = 0x800C, // Extern tag:
  113. Enm_ImageTag_BinningMode = 0x800D, // Extern tag:
  114. Enm_ImageTag_XRayWindow = 0x800E, // Extern tag:
  115. Enm_ImageTag_FrameRate = 0x800F, // Extern tag:
  116. Enm_ImageTag_BodyPartSection = 0x8010, // Extern tag:
  117. Enm_ImageTag_BodyPart = 0x8011, // Extern tag:
  118. Enm_ImageTag_DoseRate = 0x8012, // Extern tag:
  119. Enm_ImageTag_AvgValue = 0x8013, // Extern tag:
  120. Enm_ImageTag_CenterValue = 0x8014, // Extern tag:
  121. Enm_ImageTag_ImageQualityNG = 0x8015, // Extern tag: Image quality not good, caused by Long-delay-time, vibration, or invalid correction, etc.
  122. Enm_ImageTag_LagPositionNG = 0x8016, // Extern tag: Exposure time not good for lag calibration template image
  123. Enm_ImageTag_Annotation = 0xA001, // Extern tag:
  124. Enm_ImageTag_FirmwareVer = 0xA002, // Extern tag:
  125. Enm_ImageTag_SoftwareVer = 0xA003, // Extern tag:
  126. Enm_ImageTag_FpdSerialNo = 0xA004, // Extern tag:
  127. Enm_ImageTag_Filter = 0xA005, // Extern tag:
  128. Enm_ImageTag_CheckID = 0xA006, // Extern tag:
  129. Enm_ImageTag_PatientID = 0xA007, // Extern tag:
  130. Enm_ImageTag_PatientName = 0xA008, // Extern tag:
  131. Enm_ImageTag_PatientGender = 0xA009, // Extern tag:
  132. Enm_ImageTag_PatientAge = 0xA00A, // Extern tag:
  133. Enm_ImageTag_PatientWeight = 0xA00B, // Extern tag:
  134. Enm_ImageTag_PatientHeight = 0xA00C, // Extern tag:
  135. Enm_ImageTag_PatientSize = 0xA00D, // Extern tag:
  136. };
  137. enum Enm_TriggerMode
  138. {
  139. Enm_TriggerMode_Outer = 0,
  140. Enm_TriggerMode_Soft = 2,
  141. Enm_TriggerMode_Prep = 3,
  142. Enm_TriggerMode_AED = 6,
  143. Enm_TriggerMode_SyncOut = 8,
  144. };
  145. enum Enm_Binning
  146. {
  147. Enm_Binning_Null = 0, // No binning
  148. Enm_Binning_2x2 = 1, // 2x2 binning
  149. };
  150. enum Enm_Dig_Binning
  151. {
  152. Enm_DigBin_Null = 0, // No binning
  153. Enm_DigBin_32x32 = 1, // 32x32 binning
  154. Enm_DigBin_64x64 = 1, // 64x64 binning
  155. Enm_DigBin_128x128 = 1, // 128x128 binning
  156. };
  157. enum Enm_Zoom
  158. {
  159. Enm_Zoom_Null = 0, // No zoom
  160. Enm_Zoom_1024x640 = 1,
  161. Enm_Zoom_1024x320 = 2,
  162. Enm_Zoom_1024x4 = 3,
  163. Enm_Zoom_1024x2 = 4,
  164. Enm_Zoom_1024x1 = 5,
  165. Enm_Zoom_512x512 = 6,
  166. Enm_Zoom_256x256 = 7,
  167. Enm_Zoom_3072x3072 = 8,
  168. Enm_Zoom_2048x2048 = 9,
  169. Enm_Zoom_1536x1536 = 10,
  170. Enm_Zoom_1024x1024 = 11,
  171. };
  172. enum Enm_DynaFlag
  173. {
  174. Enm_DynaFlag_Static = 0,
  175. Enm_DynaFlag_Dynamic = 1,
  176. };
  177. enum Enm_CorrectOption
  178. {
  179. Enm_CorrectOp_HW_PreOffset = 0x0001,
  180. Enm_CorrectOp_HW_PostOffset = 0x0002,
  181. Enm_CorrectOp_HW_Gain = 0x0004,
  182. Enm_CorrectOp_HW_Defect = 0x0010,
  183. Enm_CorrectOp_HW_Ghost = 0x0020,
  184. Enm_CorrectOp_HW_Lag = 0x0040,
  185. Enm_CorrectOp_HW_MicroPhony = 0x0080,
  186. Enm_CorrectOp_HW_GridRemoval = 0x0100,
  187. Enm_CorrectOp_HW_VirtualGrid = 0x0200,
  188. Enm_CorrectOp_HW_Shading = 0x0400,
  189. Enm_CorrectOp_SW_PreOffset = 0x00010000,
  190. Enm_CorrectOp_SW_PostOffset = 0x00020000,
  191. Enm_CorrectOp_SW_Gain = 0x00040000,
  192. Enm_CorrectOp_SW_Defect = 0x00100000,
  193. Enm_CorrectOp_SW_Ghost = 0x00200000,
  194. Enm_CorrectOp_SW_Lag = 0x00400000,
  195. Enm_CorrectOp_SW_MicroPhony = 0x00800000,
  196. Enm_CorrectOp_SW_GridRemoval = 0x01000000,
  197. Enm_CorrectOp_SW_VirtualGrid = 0x02000000,
  198. Enm_CorrectOp_SW_Shading = 0x40000000,
  199. };
  200. enum Enm_SubProductNo
  201. {
  202. Enm_SubProductNo_GoS = 0,
  203. Enm_SubProductNo_CsI = 1,
  204. Enm_SubProductNo_CsI400 = 2,
  205. Enm_SubProductNo_CsI550 = 3,
  206. Enm_SubProductNo_CsI500 = 4,
  207. Enm_SubProductNo_CsI600 = 5,
  208. };
  209. enum Enm_SignalLevel
  210. {
  211. Enm_SignalLevel_Low = 0,
  212. Enm_SignalLevel_High = 1,
  213. };
  214. enum Enm_FluroSync
  215. {
  216. Enm_FluroSync_FreeRun = 0,
  217. Enm_FluroSync_SyncIn = 1,
  218. Enm_FluroSync_SyncOut = 2,
  219. };
  220. enum Enm_PGA
  221. {
  222. Enm_PGA_0 = 0,
  223. Enm_PGA_1 = 1,
  224. Enm_PGA_2 = 2,
  225. Enm_PGA_3 = 3,
  226. Enm_PGA_4 = 4,
  227. Enm_PGA_5 = 5,
  228. Enm_PGA_6 = 6,
  229. Enm_PGA_7 = 7,
  230. Enm_PGA_8 = 8,
  231. };
  232. enum Enm_HWOffsetType
  233. {
  234. Enm_OffsetType_Null = 0,
  235. Enm_OffsetType_Post = 1,
  236. Enm_OffsetType_Pre = 2,
  237. };
  238. enum Enm_AppMode
  239. {
  240. Enm_Contact = 0x00,
  241. Enm_Magnification = 0x01,
  242. Enm_Stereo = 0x02,
  243. Enm_Tomo = 0x03,
  244. };
  245. enum Enm_ExpMode
  246. {
  247. Enm_ExpMode_Null = 0x00,
  248. Enm_ExpMode_Manual = 0x01,
  249. Enm_ExpMode_AEC = 0x02,
  250. Enm_ExpMode_Tomo_Manual = 0x03,
  251. Enm_ExpMode_Tomo_AEC = 0x04,
  252. };
  253. enum Enm_ExpModeEx
  254. {
  255. Enm_Null = 0x00,
  256. Enm_Manual = 0x01,
  257. Enm_AEC = 0x02,
  258. Enm_Tomo_Manual = 0x03,
  259. Enm_Tomo_AEC = 0x04,
  260. Enm_Stereo_Manual = 0x05,
  261. Enm_AED = 0x06,
  262. };
  263. enum Enm_Filter
  264. {
  265. Enm_Filter1 = 0,
  266. Enm_Filter2 = 1,
  267. Enm_Filter3 = 2,
  268. Enm_Filter4 = 3,
  269. Enm_Filter5 = 4,
  270. };
  271. enum Enm_PrepCapMode
  272. {
  273. Enm_Flush = 0,
  274. Enm_ClearAcq = 1,
  275. Enm_Acq2 = 2,
  276. };
  277. enum Enm_OutModeCapTrig
  278. {
  279. Enm_OutModeCapTrig_X_ON = 0,
  280. Enm_OutModeCapTrig_Prep = 1,
  281. };
  282. enum Enm_ImgChType
  283. {
  284. Enm_ImgCh_Ethernet = 0,
  285. Enm_ImgCh_Cameralink = 1,
  286. Enm_ImgCh_GigeVision = 2,
  287. };
  288. enum Enm_EthernetProtocol
  289. {
  290. Enm_Ethernet_UDP = 0,
  291. Enm_Ethernet_TCP = 1,
  292. };
  293. enum Enm_FW_DeviceType
  294. {
  295. Enm_FW_DeviceType_MainFPGA = 0x01,
  296. Enm_FW_DeviceType_ReadFPGA1 = 0x02,
  297. Enm_FW_DeviceType_ReadFPGA2 = 0x03,
  298. Enm_FW_DeviceType_ControlBox = 0x04,
  299. Enm_FW_DeviceType_MCU1 = 0x10,
  300. Enm_FW_DeviceType_AllInOne = 0xF0,
  301. Enm_FW_DeviceType_None = 0xFF,
  302. };
  303. enum Enm_CaliDataState
  304. {
  305. Enm_CaliDataState_NoData = 0,
  306. Enm_CaliDataState_Valid = 1,
  307. Enm_CaliDataState_ValidWarn = 2,
  308. Enm_CaliDataState_OutOfDate = 3,
  309. Enm_CaliDataState_ParamMisMatch = 4,
  310. };
  311. enum Enm_FileTypes
  312. {
  313. Enm_File_Offset = 0x01,
  314. Enm_File_Gain = 0x02,
  315. Enm_File_Defect = 0x04,
  316. Enm_File_Lag = 0x05,
  317. Enm_File_GridRemoval = 0x06,
  318. Enm_File_ArmLog = 0xA0,
  319. Enm_File_Firmware = 0xA1,
  320. };
  321. enum Enm_FreesyncSubFlow
  322. {
  323. Enm_FreesyncSubFlow_Reserved = 0,
  324. Enm_FreesyncSubFlow_NFNR = 1, // ISync plus: Single ExpLine
  325. Enm_FreesyncSubFlow_FFNR = 2,
  326. Enm_FreesyncSubFlow_3 = 3, // FSync Dual Gate: Multi ExpLine (distinguish odd/even column)
  327. Enm_FreesyncSubFlow_4 = 4, // FSync Single Gate: Multi ExpLine (whole line)
  328. Enm_FreesyncSubFlow_5 = 5, // ISync plus:Single ExpLine for PreOffset
  329. };
  330. enum Enm_InnerSubFlow
  331. {
  332. Enm_InnerSubFlow_ClearAcq = 0, // Normal mode
  333. Enm_InnerSubFlow_CycleAcq = 1, // Cycle self acquisition as freesync implementation
  334. };
  335. enum Enm_NetworkBand
  336. {
  337. Enm_NetworkBand_1G = 1, // 1Gbps network band
  338. Enm_NetworkBand_2_5G = 2, // 2.5Gbps network band
  339. Enm_NetworkBand_5G = 3, // 5Gbps network band
  340. Enm_NetworkBand_10G = 4, // 10Gbps network band
  341. };
  342. enum Enm_ProdType
  343. {
  344. Enm_Prd_Mammo1012P = 0x005F, // Mammo1012P
  345. Enm_Prd_Mammo1012X = 0x0094, // Mammo1012X
  346. Enm_Prd_Mammo1012F2 = 0x0093, // Mammo1012F2
  347. Enm_Prd_Mammo1012C = 0x0095, // Mammo1012C
  348. };
  349. //*
  350. //** Parsed content end
  351. //*
  352. #endif