/[PAMELA software]/yoda/event/mcmd/McmdRecord.h
ViewVC logotype

Annotation of /yoda/event/mcmd/McmdRecord.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.5 - (hide annotations) (download)
Mon Aug 29 08:27:32 2005 UTC (19 years, 3 months ago) by kusanagi
Branch: MAIN
Changes since 4.4: +1 -2 lines
File MIME type: text/plain
Update *.h files. Now includes have a relative path.
That is
From -----> xxx/name.h
to      -----> ../name.h

1 kusanagi 1.1 /** @file
2 kusanagi 1.2 * $Source: /home/cvsmanager/yoda/event/mcmd/McmdRecord.h,v $
3 kusanagi 4.5 * $Id: McmdRecord.h,v 4.4 2005/05/28 10:44:09 kusanagi Exp $
4 kusanagi 1.2 * $Author: kusanagi $
5 kusanagi 1.1 *
6     * Header file for the McmdRecord class.
7     */
8     #ifndef MCMD_RECORD_H
9     #define MCMD_RECORD_H
10    
11 kusanagi 1.2 #include <TArrayC.h>
12 kusanagi 1.1
13     namespace pamela {
14     /**
15     * McmdRecord data Wrapper
16 kusanagi 4.1 *
17     *
18     * PAMELA CPU software collect several pamela::McmdRecord(s) writing
19     * them on the MassMemory as a unique packet.
20 kusanagi 1.1 */
21     class McmdRecord: public TObject {
22    
23     public:
24     /**
25 kusanagi 4.1 * The On-Board-Time of the Record.
26 kusanagi 1.1 */
27     UINT32 MCMD_RECORD_OBT;
28 kusanagi 4.1
29     /**
30     * The Mcmd crc result.
31     *
32     * It specifies if the Mcmd was transmitted correctly: <br>
33     * 0 = Mcmd correctly transmitted <br>
34     * 1 = Mcmd not correctly transmitted
35     */
36 kusanagi 1.1 int Mcmd_Block_crc_ok;
37 kusanagi 4.1
38     /**
39     * The Sequential ID of the MCMD.
40     */
41 kusanagi 1.1 UINT16 SeqID;
42 kusanagi 4.1
43     /**
44     * Identify if the Mcmd is a Tagged one or not.
45     */
46 kusanagi 2.2 UINT8 Tbit;
47 kusanagi 4.1
48     /**
49     * The MCMD identifier.
50     */
51 kusanagi 2.2 UINT8 ID1;
52 kusanagi 4.1
53     /**
54     * The Mcmd length.
55     */
56 kusanagi 1.1 UINT16 McmdLength;
57 kusanagi 4.1
58     /**
59     * The On-Board-Time for start the Mcmd if it is TimeTagged.
60     */
61 kusanagi 1.1 UINT32 TimeTag;
62 kusanagi 4.1
63     /**
64     * An array of chars containing the Mcmd data area.
65     */
66 kusanagi 1.2 TArrayC *McmdData;
67 kusanagi 4.1
68     /**
69     * Modulo 256 sum of all bytes except the endID
70     */
71 kusanagi 2.2 UINT8 endID;
72 kusanagi 1.1
73    
74     McmdRecord(void);
75    
76 kusanagi 1.2 /*void setMcmdData(const BYTE val[]) {
77 kusanagi 1.1 if (McmdLength > 0){
78     McmdData = new BYTE[McmdLength];
79     memcpy(McmdData, val, McmdLength);
80     }
81 kusanagi 1.2 };*/
82 kusanagi 1.1
83     ClassDef(McmdRecord, 1)
84     };
85     }
86    
87     #endif /* MCMD_RECORD_H */
88    

  ViewVC Help
Powered by ViewVC 1.1.23