StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
status.h
1 /******
2 *
3 * Modifications:
4 *
5 * 07Dec99 JMN: Defined error codes from tape manager
6 *
7 ************************************************************/
8 
9 #ifndef _STATUS_H_
10 #define _STATUS_H_
11 /* general error status codes */
12 #define STAT_OK 0
13 #define STAT_ERROR 1 /* generic error */
14 #define STAT_TOKEN 2 /* nonexisting token */
15 #define STAT_PROTO 3 /* protocol violation */
16 #define STAT_CMD 4 /* unknown command */
17 #define STAT_SEQ 5 /* sequence violation */
18 #define STAT_RELEASE 6 /* error releasing the event */
19 #define STAT_TIMED_OUT 7 /* timout */
20 #define STAT_FORCED_STOP 8 /* ??? Tonko */
21 
22 
23 
24 // John's stuff ????
25 
26  /* Status to Trigger of returned tokens: STAT_OK event accepted */
27 #define STAT_DAQ_REJ 1 /* Event rejected by DAQ TDI */
28 #define STAT_TM_REJ 2 /* Event rejected by error in TM processing */
29 #define STAT_GL3_REJ 3 /* Event rejected by GL3 */
30 #define STAT_SB_REJ 4 /* Event rejected by error in SB processing */
31 #define STAT_EVB_REJ 5 /* Event rejected by error in EVB processing */
32 #define STAT_TDI_TIME 6 /* DAQ received a token from DET but not TDI */
33 #define STAT_DET_TIME 7 /* DAQ received a token from TDI but not DET */
34 #define STAT_TDI_REJ 16 /* Token NOT sent to DAQ by TDI because of error condition */
35 
36 #define CHECK_CONDITION 2 /* Error codes from tape_man: SCSI Check Condition */
37 #define PING_FAILURE 3 /* Cannot connect to remote host */
38 #define TAPER_DISABLED 4 /* Taper disabled by Run Control for reboot */
39 #define WRITE_NOT_RDY 11 /* Test Unit Ready failed during write sequence */
40 #define UNKNOWN_ERR 12 /* Unprogrammed Sense Key */
41 #define UNIT_ATN_ERR 13 /* Unrecovered Unit Atn error */
42 #define UNIT_NOT_RDY_ERR 14 /* Could not get Unit Ready */
43 #define EVB_ILL_REQ 15 /* Illegal Request from EVB */
44 #define DISC_ERR 16 /* Error wwhile writing to disc file */
45 #define OPEN_ERR 17 /* Could not open disc file */
46 
47 
48 
49 #endif