18 #include "sr_group_interface.h"
20 #define BATCH_SUPPORTED (1)
22 #ifdef BATCH_SUPPORTED
23 #include "batch_interface.h"
26 #define DRE_INST_TYPE 62 // versadac
27 #define MAX_NO_OF_ALARMS_PER_POINT 2
29 #define DRE_ALM_OFF 0 // inavtive
30 #define DRE_PNT_ALM_ON_ACK 1 // active and acknowledged
31 #define DRE_PNT_ALM_ON_NO_ACK_1 2 // safe but unacknowledged
32 #define DRE_PNT_ALM_ON_NO_ACK_2 3 // active but unacknowledged
54 static uint32 niceFactor(uint32 z_period, uint32 z_ticksPerSec);
55 static void emptyDreHistory();
61 void sendEmptyAllGroups();
62 bool sendEmptyAllGroupsAndWait();
63 void sendTimeChangedMessage(
double z_prevTicks);
64 uint8 getCurrentStatus(uint8 z_group);
68 void sendHistoryEraseMessage(
char * z_messageKey);
73 #ifdef BATCH_SUPPORTED
74 void genBatchHdr( uint16 z_group, uint8 z_start);
75 void sendBatchStart( uint16 z_group );
76 void sendBatchStop( uint16 z_group );
79 void disableMinmax(uint16 z_group);
81 void sendAlarmIfChange();
85 void genPtHdr(uint16 z_uPt);
90 void sendStop(
double z_time);
91 void sendGroupSlowedMessage(
double z_time, uint8 z_group, uint32 z_factor);
92 void updateABSelects();
99 #ifdef BATCH_SUPPORTED
100 batch_data_t *m_batch_data;
104 sint32 m_memSizeGuide;
105 uint32 m_fileSizeGuide;
106 uint32 m_blockSizeGuide;
107 uint16 m_minFlushPeriod;
109 bool **m_pColourBSelects;
110 bool **m_pColourBGroupSelects;
112 bool **m_pSpanZoneBSelects;
113 bool **m_pSpanZoneBGroupSelects;
115 bool **m_pRecordSpeedBGroupSelects;
129 bool *m_rec_job_wired;
134 uc_string_20 m_areaName;
135 uc_string_20 m_dstStart;
136 uc_string_20 m_dstEnd;
137 uc_string_20 m_timezone;
138 uc_string_5 m_language;
139 uc_string_5 m_country;
145 uc_string_5 m_oldLanguage;
146 uc_string_5 m_oldCountry;
147 uc_string_5 m_oldTimezone;
148 uc_string_20 m_oldDstStart;
149 uc_string_20 m_oldDstEnd;
159 uint16 m_numAlmsPerPt;
160 uc_char m_acAreaNameDflt[DRE_UHH_INSTR_NAME_L+1];
161 bool m_bWhenRecordingDisabledRecordText;
162 bool m_bHistoryEraseFromUpdateAllowed;
166 bool m_bHighCompress;
172 static uint16 m_serialNumber;
184 sint32 m_timeSegment;
186 uint8 m_fastestGroup;
187 uint32 m_fastestUpdatePeriod;
188 uint32 m_checkOverflowPeriod;
189 bool *m_abOldAckReqd;
191 bool m_bFirstQueueOverflow;
192 bool m_bRequestEraseHistory;
193 bool m_bEraseHistory;
194 bool m_bOldEraseHistory;
195 sint32 m_eraseHistoryResult;
198 uint32 *m_auUpdateFactor;
199 uint32 *m_auUpdatePeriod;
200 bool *m_abUpdatePeriodBActive;
201 double *m_adNextUpdateTime;
202 bool *m_abRecEnabled;
203 uint8 *m_auRecStatus;
204 uint8 *m_auRecStatusSent;
208 bool m_groupQAttached;
Definition: stdtypes.h:204
Definition: stdtypes.h:155
Definition: dre_task.h:25
Definition: dre_msg.h:308
Definition: stdtypes.h:223
Definition: stdtypes.h:213
Definition: dre_msg.h:226