ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Cpacket.C File Reference
#include "phenixOnline.h"
#include "packetPublic.h"
#include "packetHdr.h"
#include "Cpacket.h"
#include "CpacketV1.h"
+ Include dependency graph for Cpacket.C:

Go to the source code of this file.

Macros

#define NULLACCESSPFUNC   0
 
#define NULLPTRACCESSPFUNC   0
 
#define NULLCHECKPFUNC   0
 
#define NULLMODIFYPFUNC   0
 
#define NULLADJUSTPFUNC   0
 
#define NULLADJUSTDATAPFUNC   0
 
#define NULLORPFUNC   0
 

Typedefs

typedef LOGIC_ret CHECKPFUNC (PACKET_ptr)
 
typedef VALUE_ret ACCESSPFUNC (PACKET_ptr)
 
typedef VALUE_ret ADJUSTPFUNC (PACKET_ptr, int)
 
typedef VALUE_ret ORPFUNC (PACKET_ptr, UINT)
 
typedef PTR_ret PTRACCESSPFUNC (PACKET_ptr)
 
typedef LOGIC_ret MODIFYPFUNC (PACKET_ptr, UINT)
 
typedef ACCESSPFUNCACCESSPFUNCPTR_arr [NUM_PACKET_VERSIONS]
 
typedef PTRACCESSPFUNCPTRACCESSPFUNCPTR_arr [NUM_PACKET_VERSIONS]
 
typedef CHECKPFUNCCHECKPFUNCPTR_arr [NUM_PACKET_VERSIONS]
 
typedef MODIFYPFUNCMODIFYPFUNCPTR_arr [NUM_PACKET_VERSIONS]
 
typedef ADJUSTPFUNCADJUSTPFUNCPTR_arr [NUM_PACKET_VERSIONS]
 
typedef ORPFUNCORPFUNCPTR_arr [NUM_PACKET_VERSIONS]
 

Functions

PTR_ret findPacketEnd (PACKET_ptr packet_ptr)
 
PTR_ret findPacketDataStart (PACKET_ptr packet_ptr)
 
VALUE_ret extendPacketDataBlock (const PACKET_ptr packet_ptr, UINT maxPacketLength, int addDwords)
 
VALUE_ret extendPacketDebugBlock (const PACKET_ptr packet_ptr, UINT maxPacketLength, int addDwords)
 
VALUE_ret extendPacketErrorBlock (const PACKET_ptr packet_ptr, UINT maxPacketLength, int addDwords)
 
VALUE_ret extendPacketLength (const PACKET_ptr packet_ptr, UINT maxPacketLength, int addDwords)
 
LOGIC_ret removePacketPadding (PACKET_ptr packet_ptr)
 
VALUE_ret makePacketHdr (const PACKET_ptr packet_ptr, UINT maxPacketLength)
 
VALUE_ret getPacketStatus (PACKET_ptr packet_ptr)
 
VALUE_ret orPacketStatus (PACKET_ptr packet_ptr, UINT inBits)
 
VALUE_ret getPacketDataLength (const PACKET_ptr packet_ptr)
 
VALUE_ret getPacketErrorLength (const PACKET_ptr packet_ptr)
 
VALUE_ret getPacketDebugLength (const PACKET_ptr packet_ptr)
 
VALUE_ret getPacketNumErrors (const PACKET_ptr packet_ptr)
 
VALUE_ret getPacketId (const PACKET_ptr packet_ptr)
 
VALUE_ret getPacketStructure (const PACKET_ptr packet_ptr)
 
VALUE_ret getPacketEndianism (const PACKET_ptr packet_ptr)
 
VALUE_ret getPacketPadding (const PACKET_ptr packet_ptr)
 
VALUE_ret getPacketDataDescrLength (const PACKET_ptr packet_ptr)
 
LOGIC_ret setPacketDebugLenth (PACKET_ptr packet_ptr, UINT inLength)
 
LOGIC_ret setPacketId (PACKET_ptr packet_ptr, UINT inId)
 
LOGIC_ret setPacketStructure (PACKET_ptr packet_ptr, UINT structure)
 
LOGIC_ret setPacketEndianism (PACKET_ptr packet_ptr, UINT endianism)
 
LOGIC_ret setPacketPadding (PACKET_ptr packet_ptr, UINT padding)
 
LOGIC_ret setPacketStatus (PACKET_ptr packet_ptr, UINT status)
 
LOGIC_ret setPacketErrorLength (PACKET_ptr packet_ptr, UINT errorLength)
 
LOGIC_ret setPacketDataDescrLength (PACKET_ptr packet_ptr, UINT descrLength)
 
PTR_ret findPacketDataEnd (PACKET_ptr packet_ptr)
 
PTR_ret findPacketDebugStart (PACKET_ptr packet_ptr)
 
PTR_ret findPacketErrorStart (PACKET_ptr packet_ptr)
 
PTR_ret findPacketDataDescr (PACKET_ptr packet_ptr)
 
LOGIC_ret validPacketHdr (PACKET_ptr packet_ptr)
 
LOGIC_ret emptyPacket (PACKET_ptr packet_ptr)
 
VALUE_ret adjustPacketDataLength (PACKET_ptr packet_ptr, int addDwords)
 
VALUE_ret adjustPacketDebugLength (PACKET_ptr packet_ptr, int addLength)
 
VALUE_ret adjustPacketErrorLength (PACKET_ptr packet_ptr, int addLength)
 

Variables

ACCESSPFUNCPTR_arr CONSTANT getPacketDataLengthV = {NULLACCESSPFUNC, &getPacketV1DataLength}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketDebugLengthV = {NULLACCESSPFUNC, &getPacketV1DebugLength}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketErrorLengthV = {NULLACCESSPFUNC, &getPacketV1ErrorLength}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketNumErrorsV = {NULLACCESSPFUNC, &getPacketV1NumErrors}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketEndianismV = {NULLACCESSPFUNC, &getPacketV1Endianism}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketIdV = {NULLACCESSPFUNC, &getPacketV1Id}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketPaddingV = {NULLACCESSPFUNC, &getPacketV1Padding}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketStructureV = {NULLACCESSPFUNC, &getPacketV1Structure}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketStatusV = {NULLACCESSPFUNC, &getPacketV1Status}
 
ACCESSPFUNCPTR_arr CONSTANT getPacketDataDescrLengthV = {NULLACCESSPFUNC, &getPacketV1DataDescrLength}
 
ORPFUNCPTR_arr CONSTANT orPacketStatusV = {NULLORPFUNC, &orPacketV1Status}
 
ADJUSTPFUNCPTR_arr CONSTANT adjustPacketDataLengthV
 
ADJUSTPFUNCPTR_arr CONSTANT adjustPacketDebugLengthV
 
ADJUSTPFUNCPTR_arr CONSTANT adjustPacketErrorLengthV
 
ORPFUNCPTR_arr CONSTANT makePacketHdrV = {NULLORPFUNC, &makePacketV1Hdr}
 
MODIFYPFUNCPTR_arr CONSTANT setPacketDebugLengthV = {NULLMODIFYPFUNC, &setPacketV1DebugLength}
 
MODIFYPFUNCPTR_arr CONSTANT setPacketDataDescrLengthV
 
MODIFYPFUNCPTR_arr CONSTANT setPacketEndianismV = {NULLMODIFYPFUNC, &setPacketV1Endianism}
 
MODIFYPFUNCPTR_arr CONSTANT setPacketIdV = {NULLMODIFYPFUNC, &setPacketV1Id}
 
MODIFYPFUNCPTR_arr CONSTANT setPacketPaddingV = {NULLMODIFYPFUNC, &setPacketV1Padding}
 
MODIFYPFUNCPTR_arr CONSTANT setPacketErrorLengthV = {NULLMODIFYPFUNC, &setPacketV1ErrorLength}
 
MODIFYPFUNCPTR_arr CONSTANT setPacketStructureV = {NULLMODIFYPFUNC, &setPacketV1Structure}
 
MODIFYPFUNCPTR_arr CONSTANT setPacketStatusV = {NULLMODIFYPFUNC, &setPacketV1Status}
 
PTRACCESSPFUNCPTR_arr CONSTANT findPacketErrorStartV
 
PTRACCESSPFUNCPTR_arr CONSTANT findPacketDebugStartV
 
PTRACCESSPFUNCPTR_arr CONSTANT findPacketDataEndV = {NULLPTRACCESSPFUNC, &findPacketV1DataEnd}
 
PTRACCESSPFUNCPTR_arr CONSTANT findPacketDataDescrV
 
CHECKPFUNCPTR_arr CONSTANT validPacketHdrV = {NULLCHECKPFUNC, &validPacketV1Hdr}
 
CHECKPFUNCPTR_arr CONSTANT emptyPacketV = {NULLCHECKPFUNC, &emptyPacketV1}
 

Macro Definition Documentation

#define NULLACCESSPFUNC   0

Definition at line 251 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 251 of file Cpacket.C

#define NULLADJUSTDATAPFUNC   0

Definition at line 256 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 256 of file Cpacket.C

#define NULLADJUSTPFUNC   0

Definition at line 255 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 255 of file Cpacket.C

#define NULLCHECKPFUNC   0

Definition at line 253 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 253 of file Cpacket.C

#define NULLMODIFYPFUNC   0

Definition at line 254 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 254 of file Cpacket.C

#define NULLORPFUNC   0

Definition at line 257 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 257 of file Cpacket.C

#define NULLPTRACCESSPFUNC   0

Definition at line 252 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 252 of file Cpacket.C

Typedef Documentation

typedef VALUE_ret ACCESSPFUNC(PACKET_ptr)

Definition at line 225 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 225 of file Cpacket.C

typedef ACCESSPFUNC* ACCESSPFUNCPTR_arr[NUM_PACKET_VERSIONS]

Definition at line 232 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 232 of file Cpacket.C

typedef VALUE_ret ADJUSTPFUNC(PACKET_ptr, int)

Definition at line 226 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 226 of file Cpacket.C

typedef ADJUSTPFUNC* ADJUSTPFUNCPTR_arr[NUM_PACKET_VERSIONS]

Definition at line 236 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 236 of file Cpacket.C

typedef LOGIC_ret CHECKPFUNC(PACKET_ptr)

Definition at line 224 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 224 of file Cpacket.C

typedef CHECKPFUNC* CHECKPFUNCPTR_arr[NUM_PACKET_VERSIONS]

Definition at line 234 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 234 of file Cpacket.C

typedef LOGIC_ret MODIFYPFUNC(PACKET_ptr, UINT)

Definition at line 229 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 229 of file Cpacket.C

typedef MODIFYPFUNC* MODIFYPFUNCPTR_arr[NUM_PACKET_VERSIONS]

Definition at line 235 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 235 of file Cpacket.C

typedef VALUE_ret ORPFUNC(PACKET_ptr, UINT)

Definition at line 227 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 227 of file Cpacket.C

typedef ORPFUNC* ORPFUNCPTR_arr[NUM_PACKET_VERSIONS]

Definition at line 237 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 237 of file Cpacket.C

typedef PTR_ret PTRACCESSPFUNC(PACKET_ptr)

Definition at line 228 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 228 of file Cpacket.C

typedef PTRACCESSPFUNC* PTRACCESSPFUNCPTR_arr[NUM_PACKET_VERSIONS]

Definition at line 233 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 233 of file Cpacket.C

Function Documentation

VALUE_ret adjustPacketDataLength ( PACKET_ptr  packet_ptr,
int  addDwords 
)

Definition at line 562 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 562 of file Cpacket.C

References adjustPacketDataLengthV, getPacketHdrVersion(), and valueFailure.

Referenced by extendPacketDataBlock().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret adjustPacketDebugLength ( PACKET_ptr  packet_ptr,
int  addLength 
)

Definition at line 571 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 571 of file Cpacket.C

References adjustPacketDebugLengthV, getPacketHdrVersion(), and valueFailure.

Referenced by extendPacketDebugBlock().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret adjustPacketErrorLength ( PACKET_ptr  packet_ptr,
int  addLength 
)

Definition at line 580 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 580 of file Cpacket.C

References adjustPacketErrorLengthV, getPacketHdrVersion(), and valueFailure.

Referenced by extendPacketErrorBlock().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret emptyPacket ( PACKET_ptr  packet_ptr)

Definition at line 553 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 553 of file Cpacket.C

References emptyPacketV, getPacketHdrVersion(), logicFailure, and valueFailure.

Referenced by startUnstructDataWrite(), and storePacketHits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret extendPacketDataBlock ( const PACKET_ptr  packet_ptr,
UINT  maxPacketLength,
int  addDwords 
)

Definition at line 67 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 67 of file Cpacket.C

References adjustPacketDataLength(), extendPacketLength(), and valueFailure.

Referenced by startUnstructDataWrite(), and storePacketHits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret extendPacketDebugBlock ( const PACKET_ptr  packet_ptr,
UINT  maxPacketLength,
int  addDwords 
)

Definition at line 90 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 90 of file Cpacket.C

References adjustPacketDebugLength(), extendPacketLength(), and valueFailure.

Referenced by reservePacketDebugData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret extendPacketErrorBlock ( const PACKET_ptr  packet_ptr,
UINT  maxPacketLength,
int  addDwords 
)

Definition at line 113 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 113 of file Cpacket.C

References adjustPacketErrorLength(), extendPacketLength(), and valueFailure.

Referenced by appendPacketError().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret extendPacketLength ( const PACKET_ptr  packet_ptr,
UINT  maxPacketLength,
int  addDwords 
)

Definition at line 136 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 136 of file Cpacket.C

References FORMAT_ERR_BUFFER_OVERFLOW, getPacketLength(), packetQuantum, removePacketPadding(), setPacketError(), setPacketLength(), setPacketPadding(), and valueFailure.

Referenced by extendPacketDataBlock(), extendPacketDebugBlock(), and extendPacketErrorBlock().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findPacketDataDescr ( PACKET_ptr  packet_ptr)

Definition at line 534 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 534 of file Cpacket.C

References findPacketDataDescrV, getPacketHdrVersion(), ptrFailure, and valueFailure.

Referenced by getUnstructPacketDataPadding(), getUnstructPacketHitFormat(), getUnstructPacketWordSize(), makeUnstructPacketDataDescr(), setUnstructPacketDataPadding(), setUnstructPacketHitFormat(), and setUnstructPacketWordSize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findPacketDataEnd ( PACKET_ptr  packet_ptr)

Definition at line 507 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 507 of file Cpacket.C

References findPacketDataEndV, getPacketHdrVersion(), ptrFailure, and valueFailure.

+ Here is the call graph for this function:

PTR_ret findPacketDataStart ( PACKET_ptr  packet_ptr)

Definition at line 53 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 53 of file Cpacket.C

References getPacketDataDescrLength(), getPacketHdrLength(), ptrFailure, and validPacketHdr().

Referenced by Packet_fvtx_dcm0::calculate_parity(), Packet_id2evt::decode(), Packet_id4evt::decode(), Packet_iddigitizerv2::decode(), Packet_gl1psum::decode(), Packet_gl1_evclocks::decode(), Packet_idcstr::decode(), Packet_cdevir::decode(), Packet_idcdevdescr::decode(), Packet_starscaler::decode(), Packet_cdevwcm::decode(), Packet_cdevmadch::decode(), Packet_cdevbpm::decode(), Packet_cdevdvm::decode(), Packet_cdevpoltarget::decode(), Packet_hbd_fpgashort::decode(), Packet_hbd_fpga::decode(), Packet_cdevbuckets::decode(), Packet_cdevring::decode(), Packet_fvtx_dcm0::decode(), Packet_cdevringnopol::decode(), Packet_gl1p::decode(), Packet_id4scaler::decode(), Packet_cdevpolarimeter::decode(), Packet_gl1::decode(), Packet_fvtx_dcm0::decode_misc(), Packet_gl1p::demangle(), Packet_gl1::demangle(), Packet_gl1_evclocks::dump(), Packet_idcdevdescr::dump(), Packet_gl1p::dump(), Packet_id4scaler::dump(), Packet_gl1::dump(), dumpPacket(), fetchPacketHits(), Packet_w1::gdump(), Packet_w2::gdump(), Packet_w4::gdump(), Packet_gl1_evclocks::iValue(), Packet_id4scaler::iValue(), Packet_id4scaler::lValue(), Packet_A::standardIntArray(), startUnstructDataWrite(), and storePacketHits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findPacketDebugStart ( PACKET_ptr  packet_ptr)

Definition at line 516 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 516 of file Cpacket.C

References findPacketDebugStartV, getPacketHdrVersion(), ptrFailure, and valueFailure.

Referenced by Packet_A::dumpDebugBlock(), and reservePacketDebugData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findPacketEnd ( PACKET_ptr  packet_ptr)

Definition at line 35 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 35 of file Cpacket.C

References getPacketLength(), logicFailure, ptrFailure, setPacketError(), setPacketSuccess(), validPacketHdr(), and valueFailure.

Referenced by findNextFramePacket(), finishUnstructDataWrite(), makeEmptyPacket(), and makeUnstructPacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findPacketErrorStart ( PACKET_ptr  packet_ptr)

Definition at line 525 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 525 of file Cpacket.C

References findPacketErrorStartV, getPacketHdrVersion(), ptrFailure, and valueFailure.

Referenced by appendPacketError(), and Packet_A::dumpErrorBlock().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketDataDescrLength ( const PACKET_ptr  packet_ptr)

Definition at line 411 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 411 of file Cpacket.C

References getPacketDataDescrLengthV, getPacketHdrVersion(), and valueFailure.

Referenced by findPacketDataStart(), and Packet_A::fullIdentify().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketDataLength ( const PACKET_ptr  packet_ptr)

Definition at line 338 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 338 of file Cpacket.C

References getPacketDataLengthV, getPacketHdrVersion(), and valueFailure.

Referenced by Packet_A::getDataLength(), and getUnstructPacketDataLengthBytes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketDebugLength ( const PACKET_ptr  packet_ptr)

Definition at line 358 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 358 of file Cpacket.C

References getPacketDebugLengthV, getPacketHdrVersion(), and valueFailure.

Referenced by dumpPacket(), Packet_A::fullIdentify(), Packet_A::getDebugLength(), and getPacketV1DataLength().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketEndianism ( const PACKET_ptr  packet_ptr)

Definition at line 393 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 393 of file Cpacket.C

References getPacketEndianismV, getPacketHdrVersion(), and valueFailure.

Referenced by dumpPacket(), and Packet_A::fullIdentify().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketErrorLength ( const PACKET_ptr  packet_ptr)

Definition at line 348 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 348 of file Cpacket.C

References getPacketErrorLengthV, getPacketHdrVersion(), and valueFailure.

Referenced by appendPacketError(), dumpPacket(), Packet_A::fullIdentify(), Packet_A::getErrorLength(), getPacketV1DataLength(), and reservePacketDebugData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketId ( const PACKET_ptr  packet_ptr)

Definition at line 376 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 376 of file Cpacket.C

References getPacketHdrVersion(), getPacketIdV, and valueFailure.

Referenced by A_Event::createMap(), dumpPacket(), findFramePacketId(), findNextFramePacketId(), Packet_A::fullIdentify(), and Packet_A::getIdentifier().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketNumErrors ( const PACKET_ptr  packet_ptr)

Definition at line 367 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 367 of file Cpacket.C

References getPacketHdrVersion(), getPacketNumErrorsV, and valueFailure.

+ Here is the call graph for this function:

VALUE_ret getPacketPadding ( const PACKET_ptr  packet_ptr)

Definition at line 402 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 402 of file Cpacket.C

References getPacketHdrVersion(), getPacketPaddingV, and valueFailure.

Referenced by dumpPacket(), Packet_A::fullIdentify(), getPacketV1DataLength(), Packet_A::getPadding(), and removePacketPadding().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketStatus ( PACKET_ptr  packet_ptr)

Definition at line 320 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 320 of file Cpacket.C

References getPacketHdrVersion(), getPacketStatusV, and valueFailure.

Referenced by dumpPacket(), and Packet_A::fullIdentify().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getPacketStructure ( const PACKET_ptr  packet_ptr)

Definition at line 385 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 385 of file Cpacket.C

References getPacketHdrVersion(), getPacketStructureV, and valueFailure.

Referenced by X_Event::change_hf(), dumpPacket(), fetchPacketHits(), A_Event::getPacketList(), getPacketV1DataLength(), Packet_A::getStructure(), A_Event::makePacket(), startUnstructDataWrite(), and storePacketHits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret makePacketHdr ( const PACKET_ptr  packet_ptr,
UINT  maxPacketLength 
)

Definition at line 310 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 310 of file Cpacket.C

References currentPacketHdrVersion, makePacketHdrV, and valueFailure.

Referenced by makeEmptyPacket(), and makeUnstructPacket().

+ Here is the caller graph for this function:

VALUE_ret orPacketStatus ( PACKET_ptr  packet_ptr,
UINT  inBits 
)

Definition at line 329 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 329 of file Cpacket.C

References getPacketHdrVersion(), orPacketStatusV, and valueFailure.

+ Here is the call graph for this function:

LOGIC_ret removePacketPadding ( PACKET_ptr  packet_ptr)

Definition at line 183 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 183 of file Cpacket.C

References FORMAT_ERR_HDR_INCONSISTENCY, getPacketLength(), getPacketPadding(), logicFailure, logicSuccess, packetV1HdrLength, setPacketError(), setPacketLength(), and setPacketPadding().

Referenced by extendPacketLength().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setPacketDataDescrLength ( PACKET_ptr  packet_ptr,
UINT  descrLength 
)

Definition at line 498 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 498 of file Cpacket.C

References getPacketHdrVersion(), logicFailure, setPacketDataDescrLengthV, and valueFailure.

Referenced by makeUnstructPacketDataDescr().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setPacketDebugLenth ( PACKET_ptr  packet_ptr,
UINT  inLength 
)

Definition at line 421 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 421 of file Cpacket.C

References getPacketHdrVersion(), logicFailure, setPacketDebugLengthV, and valueFailure.

+ Here is the call graph for this function:

LOGIC_ret setPacketEndianism ( PACKET_ptr  packet_ptr,
UINT  endianism 
)

Definition at line 462 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 462 of file Cpacket.C

References getPacketHdrVersion(), logicFailure, setPacketEndianismV, and valueFailure.

Referenced by makePacketV1Hdr().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setPacketErrorLength ( PACKET_ptr  packet_ptr,
UINT  errorLength 
)

Definition at line 489 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 489 of file Cpacket.C

References getPacketHdrVersion(), logicFailure, setPacketErrorLengthV, and valueFailure.

+ Here is the call graph for this function:

LOGIC_ret setPacketId ( PACKET_ptr  packet_ptr,
UINT  inId 
)

Definition at line 444 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 444 of file Cpacket.C

References getPacketHdrVersion(), setPacketIdV, and valueFailure.

Referenced by X_Event::change_id(), makeEmptyPacket(), and makeUnstructPacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setPacketPadding ( PACKET_ptr  packet_ptr,
UINT  padding 
)

Definition at line 471 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 471 of file Cpacket.C

References getPacketHdrVersion(), logicFailure, setPacketPaddingV, and valueFailure.

Referenced by extendPacketLength(), and removePacketPadding().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setPacketStatus ( PACKET_ptr  packet_ptr,
UINT  status 
)

Definition at line 480 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 480 of file Cpacket.C

References getPacketHdrVersion(), logicFailure, setPacketStatusV, and valueFailure.

+ Here is the call graph for this function:

LOGIC_ret setPacketStructure ( PACKET_ptr  packet_ptr,
UINT  structure 
)

Definition at line 453 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 453 of file Cpacket.C

References getPacketHdrVersion(), logicFailure, setPacketStructureV, and valueFailure.

Referenced by makeUnstructPacket(), and setPacketUnstructured().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret validPacketHdr ( PACKET_ptr  packet_ptr)

Definition at line 544 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 544 of file Cpacket.C

References getPacketHdrVersion(), logicFailure, NUM_PACKET_VERSIONS, and validPacketHdrV.

Referenced by dumpPacket(), fetchPacketHits(), findFramePacketIndex(), findPacketDataStart(), findPacketEnd(), isLastFramePacket(), and storePacketHits().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

ADJUSTPFUNCPTR_arr CONSTANT adjustPacketDataLengthV
Initial value:

Definition at line 273 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 273 of file Cpacket.C

Referenced by adjustPacketDataLength().

ADJUSTPFUNCPTR_arr CONSTANT adjustPacketDebugLengthV
Initial value:

Definition at line 275 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 275 of file Cpacket.C

Referenced by adjustPacketDebugLength().

ADJUSTPFUNCPTR_arr CONSTANT adjustPacketErrorLengthV
Initial value:

Definition at line 277 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 277 of file Cpacket.C

Referenced by adjustPacketErrorLength().

Definition at line 303 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 303 of file Cpacket.C

Referenced by emptyPacket().

PTRACCESSPFUNCPTR_arr CONSTANT findPacketDataDescrV
Initial value:

Definition at line 299 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 299 of file Cpacket.C

Referenced by findPacketDataDescr().

Definition at line 298 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 298 of file Cpacket.C

Referenced by findPacketDataEnd().

PTRACCESSPFUNCPTR_arr CONSTANT findPacketDebugStartV
Initial value:

Definition at line 295 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 295 of file Cpacket.C

Referenced by findPacketDebugStart().

PTRACCESSPFUNCPTR_arr CONSTANT findPacketErrorStartV
Initial value:

Definition at line 293 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 293 of file Cpacket.C

Referenced by findPacketErrorStart().

Definition at line 270 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 270 of file Cpacket.C

Referenced by getPacketDataDescrLength().

Definition at line 261 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 261 of file Cpacket.C

Referenced by getPacketDataLength().

Definition at line 262 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 262 of file Cpacket.C

Referenced by getPacketDebugLength().

Definition at line 265 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 265 of file Cpacket.C

Referenced by getPacketEndianism().

Definition at line 263 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 263 of file Cpacket.C

Referenced by getPacketErrorLength().

Definition at line 266 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 266 of file Cpacket.C

Referenced by getPacketId().

Definition at line 264 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 264 of file Cpacket.C

Referenced by getPacketNumErrors().

Definition at line 267 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 267 of file Cpacket.C

Referenced by getPacketPadding().

Definition at line 269 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 269 of file Cpacket.C

Referenced by getPacketStatus().

Definition at line 268 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 268 of file Cpacket.C

Referenced by getPacketStructure().

Definition at line 280 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 280 of file Cpacket.C

Referenced by makePacketHdr().

Definition at line 272 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 272 of file Cpacket.C

Referenced by orPacketStatus().

MODIFYPFUNCPTR_arr CONSTANT setPacketDataDescrLengthV
Initial value:

Definition at line 283 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 283 of file Cpacket.C

Referenced by setPacketDataDescrLength().

Definition at line 282 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 282 of file Cpacket.C

Referenced by setPacketDebugLenth().

Definition at line 286 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 286 of file Cpacket.C

Referenced by setPacketEndianism().

Definition at line 289 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 289 of file Cpacket.C

Referenced by setPacketErrorLength().

Definition at line 287 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 287 of file Cpacket.C

Referenced by setPacketId().

Definition at line 288 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 288 of file Cpacket.C

Referenced by setPacketPadding().

Definition at line 291 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 291 of file Cpacket.C

Referenced by setPacketStatus().

Definition at line 290 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 290 of file Cpacket.C

Referenced by setPacketStructure().

Definition at line 302 of file Cpacket.C.

View newest version in sPHENIX GitHub at line 302 of file Cpacket.C

Referenced by validPacketHdr().