ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
errorBlock.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file errorBlock.h
1
/*
2
** errorBlock.h
3
**
4
** Author: $Author: purschke $
5
** Date: $Date: 2000/07/21 01:51:12 $
6
**
7
** $Log: errorBlock.h,v $
8
** Revision 1.1.1.1 2000/07/21 01:51:12 purschke
9
** mlp -- adding the new automakified "basic" module to CVS.
10
**
11
**
12
** Revision 1.3 1998/12/11 22:01:17 markacs
13
** (stephen markacs) adding log into cvs tags
14
**
15
*/
16
/*
17
** formatError.h
18
**
19
** Definitions of various error-handling macros, prototypes, variables etc
20
*/
21
22
#ifndef _ERRORBLOCK_
23
#define _ERRORBLOCK_
24
25
#include "
phenixOnline.h
"
26
27
/*
28
** Use C linkage
29
*/
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
35
struct
errorEntryV1
{
36
BYTE
severity
;
37
BYTE
deviceType
;
38
SWORD
deviceId
;
39
40
SWORD
errorCode
;
41
SWORD
detectCode
;
42
43
PHDWORD
addData
[2];
44
};
45
46
typedef
struct
errorEntryV1
ERRORENTRYV1
, *
ERRORENTRYV1_ptr
;
47
48
#define ERROR_ENTRY_V1_LENGTH sizeof(ERRORENTRYV1)/4
49
CONSTANT
UINT
errorEntryV1Length
=
ERROR_ENTRY_V1_LENGTH
;
50
51
enum
daqErrorCodes
{
52
InvalidFrameHeader
= 1,
53
InvalidSourceId
= 2,
54
InvalidFrameType
= 3
55
};
56
57
VALUE_ret
calcNumErrorsV1
(
UINT
);
58
void
endianSwapErrorV1
(ERRORENTRYV1_ptr, ERRORENTRYV1_ptr);
59
60
#ifdef __cplusplus
61
}
62
#endif
63
64
#endif
online_distribution
blob
master
newbasic
errorBlock.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:59
using
1.8.2 with
ECCE GitHub integration