00001 #ifndef SCAN_HEADER__H 00002 #define SCAN_HEADER__H 00003 00004 #include "dataTypes.h" 00005 #include "CommonWithDsp/processor.h" 00006 #include "Sct/AbcdModule.h" 00007 00008 //The current version of the ScanHeader 00009 #define CURRENT_SCANHEADER_VERSION 2 00010 00014 struct ScanHeader { 00015 UINT16 version; 00016 UINT16 length; 00017 UINT32 runNumber; 00018 UINT32 scanNumber; 00019 00020 char moduleName[16]; 00021 00022 char startTime[16]; 00023 char endTime[16]; 00024 00025 UINT16 scanType; 00026 UINT16 npoints; 00027 00028 UINT32 size; 00029 UINT16 dataType; 00030 UINT16 width; 00031 00032 ABCDModule config; 00033 00034 UINT32 pntPoints; 00035 UINT32 pntEvents; 00036 UINT32 pntErrors; 00037 UINT32 pntData; 00038 }; 00039 00043 struct scan_result_ptrs { 00044 ScanHeader header; 00045 00046 FLOAT32* points; 00047 UINT32* nEvents; 00048 UINT32* nErrorEvents; 00049 void* data; 00050 }; 00051 00052 #endif