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