ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
packetRoutines.h File Reference
#include "phenixOnline.h"
#include "packetPublic.h"
+ Include dependency graph for packetRoutines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PTR_ret makeEmptyPacket (PACKET_ptr, UINT, UINT)
 
PTR_ret makeUnstructPacket (PACKET_ptr, UINT, UINT, UINT, UINT)
 
LOGIC_ret appendPacketError (PACKET_ptr, UINT, ERRORENTRYV1_ptr)
 
PTR_ret reservePacketDebugData (PACKET_ptr, UINT, UINT)
 
PTR_ret startUnstructDataWrite (PACKET_ptr, UINT, PHDWORD)
 
PTR_ret finishUnstructDataWrite (PACKET_ptr, UINT, PHDWORD)
 
VALUE_ret storePacketHits (PACKET_ptr, UINT, UINT *, BYTE *, UINT, UINT)
 
VALUE_ret fetchPacketHits (PACKET_ptr, UINT **, BYTE **, UINT *)
 

Function Documentation

LOGIC_ret appendPacketError ( PACKET_ptr  ,
UINT  ,
ERRORENTRYV1_ptr   
)

Definition at line 120 of file packetRoutines.C.

View newest version in sPHENIX GitHub at line 120 of file packetRoutines.C

References dwordCopy, errorEntryV1Length, extendPacketErrorBlock(), findPacketErrorStart(), getPacketErrorLength(), logicFailure, logicSuccess, and valueFailure.

+ Here is the call graph for this function:

VALUE_ret fetchPacketHits ( PACKET_ptr  ,
UINT **  ,
BYTE **  ,
UINT  
)

Definition at line 320 of file packetRoutines.C.

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

References byteCopy, findPacketDataStart(), getPacketStructure(), getUnstructPacketDataLengthWords(), getUnstructPacketWordSize(), Unstructured, validPacketHdr(), and valueFailure.

+ Here is the call graph for this function:

PTR_ret finishUnstructDataWrite ( PACKET_ptr  ,
UINT  ,
PHDWORD   
)

Definition at line 219 of file packetRoutines.C.

View newest version in sPHENIX GitHub at line 219 of file packetRoutines.C

References extendUnstructPacketDataBlock(), findPacketEnd(), getUnstructPacketDataLengthWords(), ptrFailure, and valueFailure.

+ Here is the call graph for this function:

PTR_ret makeEmptyPacket ( PACKET_ptr  ,
UINT  ,
UINT   
)

Definition at line 51 of file packetRoutines.C.

View newest version in sPHENIX GitHub at line 51 of file packetRoutines.C

References findPacketEnd(), makePacketHdr(), ptrFailure, setPacketId(), and valueFailure.

Referenced by appendEmptyFramePacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret makeUnstructPacket ( PACKET_ptr  ,
UINT  ,
UINT  ,
UINT  ,
UINT   
)

Definition at line 96 of file packetRoutines.C.

View newest version in sPHENIX GitHub at line 96 of file packetRoutines.C

References findPacketEnd(), makePacketHdr(), makeUnstructPacketDataDescr(), ptrFailure, setPacketId(), setPacketStructure(), Unstructured, and valueFailure.

Referenced by oEvent::addUnstructPacketData(), and fakeFrame().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret reservePacketDebugData ( PACKET_ptr  ,
UINT  ,
UINT   
)

Definition at line 146 of file packetRoutines.C.

View newest version in sPHENIX GitHub at line 146 of file packetRoutines.C

References extendPacketDebugBlock(), findPacketDebugStart(), FORMAT_ERR_INVALID_APPEND, getPacketErrorLength(), ptrFailure, setPacketError(), and valueFailure.

+ Here is the call graph for this function:

PTR_ret startUnstructDataWrite ( PACKET_ptr  ,
UINT  ,
PHDWORD   
)

Definition at line 173 of file packetRoutines.C.

View newest version in sPHENIX GitHub at line 173 of file packetRoutines.C

References emptyPacket(), extendPacketDataBlock(), extendUnstructPacketDataBlock(), findPacketDataStart(), FORMAT_ERR_INVALID_APPEND, FORMAT_ERR_WRONG_STRUCTURE, getPacketLength(), getPacketStructure(), ptrFailure, setUserError(), Unstructured, and valueFailure.

+ Here is the call graph for this function:

VALUE_ret storePacketHits ( PACKET_ptr  ,
UINT  ,
UINT ,
BYTE ,
UINT  ,
UINT   
)

Definition at line 258 of file packetRoutines.C.

View newest version in sPHENIX GitHub at line 258 of file packetRoutines.C

References byteClear, byteCopy, emptyPacket(), extendPacketDataBlock(), extendUnstructPacketDataBlock(), findPacketDataStart(), FORMAT_ERR_INVALID_HEADER, FORMAT_ERR_NONEMPTY_PACKET, FORMAT_ERR_WRONG_STRUCTURE, getPacketLength(), getPacketStructure(), getUnstructPacketDataPadding(), getUnstructPacketWordSize(), setPacketError(), Unstructured, validPacketHdr(), and valueFailure.

Referenced by oEvent::addUnstructPacketData(), and fakeFrame().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: