// // DEFINES.H - File for definitions for NEW aqusition modules // #ifndef DEFINE_H #define DEFINE_H //#define STATIC static #define STATIC //#define HOME // Common defines #define TRUE 1 #define FALSE 0 #define HAPPY 0 #define BAD TRUE #define OK FALSE #define ON TRUE #define OFF FALSE #define UNKNOWN -1 #define EMPTY -1 #define RUN TRUE #define STOP FALSE #define SET -2 #define RESET -3 #define CHECK 2 // Display defines #define ESC 0x1b #define CON 0 #define VT52 1 #define VT100 2 // Aqusitions modules defines #define FREQ 200 #define HEADLEN 64 #define HEADREC 256 #define DATALEN 6400 #define HEAD_ID1 0xAA01 #define HEAD_ID2 0xAB01 #define SHIFT 1 #define MASK 0x7fff #define MINS 0x0001 #define MAXS 0xFFFE #define STEP 5 // Step between 2 samples in msec //#define NCHANNAL 16 //#define NCHANNEL 16 //#define NGROUP 6 #define NSTREAM 2 #define NSCEDULE 2 #define NETWORK_TYPE 8 #define GPSSTART 1 #define INTSTART 2 #define RTCSTART 3 //#define SERVERBLOCKLEN 2048 #define SERVERBLOCKLEN 12500 #define REQBUFLEN 12500 //#define REQBUFLEN 5000 //#define DISKLOOPBUFLEN 464*8 #define DISKLOOPBUFLEN 464*40 #define TERMTIMEOUT 50 // столько раз мы пройдем main loop, прежде // чем удовлетворим запрос на остановку #define ERRORTODISK #endif //