EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Cframe.C File Reference
#include "phenixOnline.h"
#include "frameHdr.h"
#include "Cframe.h"
#include "CframeV1.h"
#include <stdlib.h>
+ Include dependency graph for Cframe.C:

Go to the source code of this file.

Typedefs

typedef LOGIC_ret CHECKFUNCTION (FRAME_ptr)
 
typedef VALUE_ret ACCESSFUNCTION (FRAME_ptr)
 
typedef PTR_ret PTRACCESSFUNCTION (FRAME_ptr)
 
typedef VALUE_ret MODIFYFUNCTION (FRAME_ptr, UINT)
 
typedef LOGIC_ret LOGICALMODIFYFUNCTION (FRAME_ptr, UINT)
 
typedef VALUE_ret VARRAYCOPYFUNCTION (FRAME_ptr, PHDWORD *, UINT)
 
typedef LOGIC_ret LARRAYCOPYFUNCTION (FRAME_ptr, PHDWORD *, UINT)
 
typedef VALUE_ret MAKEHDRFUNCTION (FRAME_ptr, UINT, UINT, UINT, UINT)
 
typedef VALUE_ret PARAMACCESSFUNCTION (FRAME_ptr, UINT)
 
typedef PTR_ret FINDNEXTFUNCTION (FRAME_ptr, FRAME_ptr)
 
typedef ACCESSFUNCTIONACCESSFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef PTRACCESSFUNCTIONPTRACCESSFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef CHECKFUNCTIONCHECKFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef MODIFYFUNCTIONMODIFYFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef LOGICALMODIFYFUNCTIONLOGICALMODIFYFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef VARRAYCOPYFUNCTIONVARRAYCOPYFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef LARRAYCOPYFUNCTIONLARRAYCOPYFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef MAKEHDRFUNCTIONMAKEHDRFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef PARAMACCESSFUNCTIONPARAMACCESSFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 
typedef FINDNEXTFUNCTIONFINDNEXTFUNCTIONPTR_arr [NUM_FRAME_VERSIONS]
 

Functions

PTR_ret findFrameDataStart (FRAME_ptr frame_ptr)
 
PTR_ret findFrameDataEnd (FRAME_ptr frame_ptr)
 
VALUE_ret checkFrameHdrVersion (FRAME_ptr frame_ptr)
 
PTR_ret findFrameEnd (FRAME_ptr frame_ptr)
 
VALUE_ret checkFrameEndianism (FRAME_ptr frame_ptr)
 
VALUE_ret adjustFrameLength (FRAME_ptr frame_ptr, UINT maxFrameLength, UINT addDwords, LOGIC_ret pad)
 
VALUE_ret removeFramePadding (FRAME_ptr frame_ptr)
 
VALUE_ret getFrameStatus (FRAME_ptr frame_ptr)
 
VALUE_ret getFrameType (FRAME_ptr frame_ptr)
 
VALUE_ret getFrameSourceId (FRAME_ptr frame_ptr)
 
VALUE_ret getFrameDataType (FRAME_ptr frame_ptr)
 
VALUE_ret getFrameDataLength (FRAME_ptr frame_ptr)
 
VALUE_ret getFrameHistoryLength (FRAME_ptr frame_ptr)
 
VALUE_ret getFrameErrorLength (FRAME_ptr frame_ptr)
 
VALUE_ret getFrameAlignLength (FRAME_ptr frame_ptr)
 
PTR_ret findFrameAlignBlock (FRAME_ptr frame_ptr)
 
PTR_ret findFrameHistoryStart (FRAME_ptr frame_ptr)
 
PTR_ret findFrameErrorStart (FRAME_ptr frame_ptr)
 
VALUE_ret orFrameStatus (FRAME_ptr frame_ptr, UINT statusBits)
 
VALUE_ret getFramePadding (FRAME_ptr frame_ptr)
 
VALUE_ret makeFrameHdr (FRAME_ptr frame_ptr, UINT maxFrameLen, UINT dataType, UINT frameType, UINT sourceId)
 
VALUE_ret adjustFrameDataLength (FRAME_ptr frame_ptr, UINT newDwords)
 
VALUE_ret adjustFrameHistoryLength (FRAME_ptr frame_ptr, UINT newDwords)
 
VALUE_ret adjustFrameErrorLength (FRAME_ptr frame_ptr, UINT newDwords)
 
VALUE_ret setFramePadding (FRAME_ptr frame_ptr, UINT padDwords)
 
LOGIC_ret setDataType (FRAME_ptr frame_ptr, UINT dataType)
 
LOGIC_ret setFrameType (FRAME_ptr frame_ptr, UINT frameType)
 
LOGIC_ret setSourceId (FRAME_ptr frame_ptr, UINT sourceId)
 
LOGIC_ret setFrameHistoryLength (FRAME_ptr frame_ptr, UINT historyLength)
 
LOGIC_ret setFrameErrorLength (FRAME_ptr frame_ptr, UINT errorLength)
 
LOGIC_ret setFrameAlignLength (FRAME_ptr frame_ptr, UINT alignLength)
 
LOGIC_ret setFrameStatus (FRAME_ptr frame_ptr, UINT status)
 
VALUE_ret getAlignBlock (FRAME_ptr frame_ptr, PHDWORD *alignDestination, UINT maxNumDwords)
 
LOGIC_ret setAlignBlock (FRAME_ptr frame_ptr, PHDWORD *alignSource, UINT numDwords)
 
VALUE_ret getHistoryEntry (FRAME_ptr frame_ptr, UINT index)
 
VALUE_ret getHistoryStage (FRAME_ptr frame_ptr, UINT index)
 
VALUE_ret getHistorySourceIndex (FRAME_ptr frame_ptr, UINT index)
 
VALUE_ret getHistoryStatus (FRAME_ptr frame_ptr, UINT index)
 
PTR_ret findNextError (FRAME_ptr frame_ptr, FRAME_ptr thisError)
 

Variables

ACCESSFUNCTIONPTR_arr CONSTANT getFrameSourceIdV = {0, &getFrameSourceIdV1}
 
ACCESSFUNCTIONPTR_arr CONSTANT getFrameTypeV = {0, &getFrameTypeV1}
 
ACCESSFUNCTIONPTR_arr CONSTANT getFrameStatusV = {0, &getFrameStatusV1}
 
ACCESSFUNCTIONPTR_arr CONSTANT getFrameDataTypeV = {0, &getFrameDataTypeV1}
 
ACCESSFUNCTIONPTR_arr CONSTANT getFramePaddingV = {0, &getFramePaddingV1}
 
ACCESSFUNCTIONPTR_arr CONSTANT getFrameHistoryLengthV = {0, &getFrameHistoryLengthV1}
 
ACCESSFUNCTIONPTR_arr CONSTANT getFrameErrorLengthV = {0, &getFrameErrorLengthV1}
 
ACCESSFUNCTIONPTR_arr CONSTANT getFrameDataLengthV = {0, &getFrameDataLengthV1}
 
ACCESSFUNCTIONPTR_arr CONSTANT getFrameAlignLengthV = {0, &getFrameAlignLengthV1}
 
PTRACCESSFUNCTIONPTR_arr CONSTANT findFrameErrorStartV = {0, &findFrameErrorStartV1}
 
PTRACCESSFUNCTIONPTR_arr CONSTANT findFrameAlignBlockV = {0, &findFrameAlignBlockV1}
 
PTRACCESSFUNCTIONPTR_arr CONSTANT findFrameHistoryStartV = {0, &findFrameHistoryStartV1}
 
MODIFYFUNCTIONPTR_arr CONSTANT orFrameStatusV = {0, &orFrameStatusV1}
 
MODIFYFUNCTIONPTR_arr CONSTANT setFramePaddingV = {0, &setFramePaddingV1}
 
MODIFYFUNCTIONPTR_arr CONSTANT adjustFrameDataLengthV = {0, &adjustFrameDataLengthV1}
 
MODIFYFUNCTIONPTR_arr CONSTANT adjustFrameHistoryLengthV = {0, &adjustFrameHistoryLengthV1}
 
MODIFYFUNCTIONPTR_arr CONSTANT adjustFrameErrorLengthV = {0, &adjustFrameErrorLengthV1}
 
LOGICALMODIFYFUNCTIONPTR_arr
CONSTANT 
setDataTypeV = {0, &setDataTypeV1}
 
LOGICALMODIFYFUNCTIONPTR_arr
CONSTANT 
setFrameTypeV = {0, &setFrameTypeV1}
 
LOGICALMODIFYFUNCTIONPTR_arr
CONSTANT 
setSourceIdV = {0, &setSourceIdV1}
 
LOGICALMODIFYFUNCTIONPTR_arr
CONSTANT 
setFrameHistoryLengthV = {0, &setFrameHistoryLengthV1}
 
LOGICALMODIFYFUNCTIONPTR_arr
CONSTANT 
setFrameErrorLengthV = {0, &setFrameErrorLengthV1}
 
LOGICALMODIFYFUNCTIONPTR_arr
CONSTANT 
setFrameAlignLengthV = {0, &setFrameAlignLengthV1}
 
LOGICALMODIFYFUNCTIONPTR_arr
CONSTANT 
setFrameStatusV = {0, &setFrameStatusV1}
 
VARRAYCOPYFUNCTIONPTR_arr CONSTANT getAlignBlockV = {0, &getAlignBlockV1}
 
LARRAYCOPYFUNCTIONPTR_arr CONSTANT setAlignBlockV = {0, &setAlignBlockV1}
 
MAKEHDRFUNCTIONPTR_arr CONSTANT makeFrameHdrV = {0, &makeFrameHdrV1}
 
PARAMACCESSFUNCTIONPTR_arr CONSTANT getHistoryEntryV = {0, &getHistoryEntryV1}
 
PARAMACCESSFUNCTIONPTR_arr CONSTANT getHistoryStageV = {0, &getHistoryStageV1}
 
PARAMACCESSFUNCTIONPTR_arr CONSTANT getHistorySourceIndexV = {0, &getHistorySourceIndexV1}
 
PARAMACCESSFUNCTIONPTR_arr CONSTANT getHistoryStatusV = {0, &getHistoryStatusV1}
 
FINDNEXTFUNCTIONPTR_arr CONSTANT findNextErrorV = {0, &findNextErrorV1}
 

Typedef Documentation

typedef VALUE_ret ACCESSFUNCTION(FRAME_ptr)

Definition at line 205 of file Cframe.C.

View newest version in sPHENIX GitHub at line 205 of file Cframe.C

typedef ACCESSFUNCTION* ACCESSFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 215 of file Cframe.C.

View newest version in sPHENIX GitHub at line 215 of file Cframe.C

typedef LOGIC_ret CHECKFUNCTION(FRAME_ptr)

Definition at line 204 of file Cframe.C.

View newest version in sPHENIX GitHub at line 204 of file Cframe.C

typedef CHECKFUNCTION* CHECKFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 217 of file Cframe.C.

View newest version in sPHENIX GitHub at line 217 of file Cframe.C

typedef PTR_ret FINDNEXTFUNCTION(FRAME_ptr, FRAME_ptr)

Definition at line 213 of file Cframe.C.

View newest version in sPHENIX GitHub at line 213 of file Cframe.C

typedef FINDNEXTFUNCTION* FINDNEXTFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 224 of file Cframe.C.

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

typedef LOGIC_ret LARRAYCOPYFUNCTION(FRAME_ptr, PHDWORD *, UINT)

Definition at line 210 of file Cframe.C.

View newest version in sPHENIX GitHub at line 210 of file Cframe.C

typedef LARRAYCOPYFUNCTION* LARRAYCOPYFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 221 of file Cframe.C.

View newest version in sPHENIX GitHub at line 221 of file Cframe.C

typedef LOGIC_ret LOGICALMODIFYFUNCTION(FRAME_ptr, UINT)

Definition at line 208 of file Cframe.C.

View newest version in sPHENIX GitHub at line 208 of file Cframe.C

typedef LOGICALMODIFYFUNCTION* LOGICALMODIFYFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 219 of file Cframe.C.

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

typedef VALUE_ret MAKEHDRFUNCTION(FRAME_ptr, UINT, UINT, UINT, UINT)

Definition at line 211 of file Cframe.C.

View newest version in sPHENIX GitHub at line 211 of file Cframe.C

typedef MAKEHDRFUNCTION* MAKEHDRFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 222 of file Cframe.C.

View newest version in sPHENIX GitHub at line 222 of file Cframe.C

typedef VALUE_ret MODIFYFUNCTION(FRAME_ptr, UINT)

Definition at line 207 of file Cframe.C.

View newest version in sPHENIX GitHub at line 207 of file Cframe.C

typedef MODIFYFUNCTION* MODIFYFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 218 of file Cframe.C.

View newest version in sPHENIX GitHub at line 218 of file Cframe.C

typedef VALUE_ret PARAMACCESSFUNCTION(FRAME_ptr, UINT)

Definition at line 212 of file Cframe.C.

View newest version in sPHENIX GitHub at line 212 of file Cframe.C

typedef PARAMACCESSFUNCTION* PARAMACCESSFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 223 of file Cframe.C.

View newest version in sPHENIX GitHub at line 223 of file Cframe.C

typedef PTR_ret PTRACCESSFUNCTION(FRAME_ptr)

Definition at line 206 of file Cframe.C.

View newest version in sPHENIX GitHub at line 206 of file Cframe.C

typedef PTRACCESSFUNCTION* PTRACCESSFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 216 of file Cframe.C.

View newest version in sPHENIX GitHub at line 216 of file Cframe.C

typedef VALUE_ret VARRAYCOPYFUNCTION(FRAME_ptr, PHDWORD *, UINT)

Definition at line 209 of file Cframe.C.

View newest version in sPHENIX GitHub at line 209 of file Cframe.C

typedef VARRAYCOPYFUNCTION* VARRAYCOPYFUNCTIONPTR_arr[NUM_FRAME_VERSIONS]

Definition at line 220 of file Cframe.C.

View newest version in sPHENIX GitHub at line 220 of file Cframe.C

Function Documentation

VALUE_ret adjustFrameDataLength ( FRAME_ptr  frame_ptr,
UINT  newDwords 
)

Definition at line 411 of file Cframe.C.

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

References adjustFrameDataLengthV, getFrameHdrVersion(), valueFailure, and conf::version.

Referenced by extendFrameData(), and extendFrameDataNopad().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret adjustFrameErrorLength ( FRAME_ptr  frame_ptr,
UINT  newDwords 
)

Definition at line 430 of file Cframe.C.

View newest version in sPHENIX GitHub at line 430 of file Cframe.C

References adjustFrameErrorLengthV, getFrameHdrVersion(), valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret adjustFrameHistoryLength ( FRAME_ptr  frame_ptr,
UINT  newDwords 
)

Definition at line 421 of file Cframe.C.

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

References adjustFrameHistoryLengthV, getFrameHdrVersion(), valueFailure, and conf::version.

Referenced by extendFrameHistory(), and extendFrameHistoryNopad().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret adjustFrameLength ( FRAME_ptr  frame_ptr,
UINT  maxFrameLength,
UINT  addDwords,
LOGIC_ret  pad 
)

Definition at line 122 of file Cframe.C.

View newest version in sPHENIX GitHub at line 122 of file Cframe.C

References currentFrameQuantum, dwordClear, FORMAT_ERR_BUFFER_OVERFLOW, FORMAT_ERR_LENGTH_OVERFLOW, getFrameLength(), maxDwordValue, removeFramePadding(), setFrameError(), setFrameLength(), setFramePadding(), validFrameHdr(), and valueFailure.

Referenced by oEvent::addPacket(), oEvent::addUnstructPacketData(), extendFrameData(), extendFrameDataNopad(), extendFrameHistory(), and extendFrameHistoryNopad().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret checkFrameEndianism ( FRAME_ptr  frame_ptr)

Definition at line 107 of file Cframe.C.

View newest version in sPHENIX GitHub at line 107 of file Cframe.C

References dwordByteSwap(), maxFrameHdrLength, validFrameHdr(), and valueFailure.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret checkFrameHdrVersion ( FRAME_ptr  frame_ptr)

Definition at line 64 of file Cframe.C.

View newest version in sPHENIX GitHub at line 64 of file Cframe.C

References FORMAT_ERR_INVALID_FRAMEMARK, frameHdrLengthV, frameMarkV, getFrameHdrLength(), getFrameHdrVersion(), getFrameMark(), setFrameError(), setFrameSuccess(), valueFailure, and conf::version.

Referenced by validFrameHdr().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findFrameAlignBlock ( FRAME_ptr  frame_ptr)

Definition at line 352 of file Cframe.C.

View newest version in sPHENIX GitHub at line 352 of file Cframe.C

References findFrameAlignBlockV, getFrameHdrVersion(), ptrFailure, valueFailure, and conf::version.

Referenced by A_Event::dumpFrame(), dumpFrameHdr(), and A_Event::getFrameValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findFrameDataEnd ( FRAME_ptr  frame_ptr)

Definition at line 49 of file Cframe.C.

View newest version in sPHENIX GitHub at line 49 of file Cframe.C

References findFrameDataStart(), getFrameDataLength(), G4BARRELHCAL::length, ptrFailure, and valueFailure.

Referenced by oEvent::addPacket(), oEvent::addUnstructPacketData(), and findNextFramePacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findFrameDataStart ( FRAME_ptr  frame_ptr)

Definition at line 40 of file Cframe.C.

View newest version in sPHENIX GitHub at line 40 of file Cframe.C

References getFrameHdrLength(), ptrFailure, and validFrameHdr().

Referenced by appendEmptyFramePacket(), dumpFrame(), findFrameDataEnd(), findFramePacketId(), findFramePacketIndex(), findNextFramePacket(), and storeFrameData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findFrameEnd ( FRAME_ptr  frame_ptr)

Definition at line 87 of file Cframe.C.

View newest version in sPHENIX GitHub at line 87 of file Cframe.C

References getFrameLength(), ptrFailure, setFrameSuccess(), validFrameHdr(), and valueFailure.

Referenced by fakeFrame(), and findNextErrorV1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findFrameErrorStart ( FRAME_ptr  frame_ptr)

Definition at line 372 of file Cframe.C.

View newest version in sPHENIX GitHub at line 372 of file Cframe.C

References findFrameErrorStartV, getFrameHdrVersion(), ptrFailure, valueFailure, and conf::version.

Referenced by A_Event::dumpErrorBlock(), findNextErrorV1(), and A_Event::listError().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findFrameHistoryStart ( FRAME_ptr  frame_ptr)

Definition at line 362 of file Cframe.C.

View newest version in sPHENIX GitHub at line 362 of file Cframe.C

References findFrameHistoryStartV, getFrameHdrVersion(), ptrFailure, valueFailure, and conf::version.

Referenced by getHistoryEntryV1(), A_Event::listHistory(), and storeFrameHistory().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PTR_ret findNextError ( FRAME_ptr  frame_ptr,
FRAME_ptr  thisError 
)

Definition at line 565 of file Cframe.C.

View newest version in sPHENIX GitHub at line 565 of file Cframe.C

References findNextErrorV, getFrameHdrVersion(), ptrFailure, valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret getAlignBlock ( FRAME_ptr  frame_ptr,
PHDWORD alignDestination,
UINT  maxNumDwords 
)

Definition at line 511 of file Cframe.C.

View newest version in sPHENIX GitHub at line 511 of file Cframe.C

References getAlignBlockV, getFrameHdrVersion(), valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret getFrameAlignLength ( FRAME_ptr  frame_ptr)

Definition at line 342 of file Cframe.C.

View newest version in sPHENIX GitHub at line 342 of file Cframe.C

References getFrameAlignLengthV, getFrameHdrVersion(), valueFailure, and conf::version.

Referenced by A_Event::dumpFrame(), dumpFrameHdr(), getAlignBlockV1(), A_Event::getFrameValue(), and setAlignBlockV1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getFrameDataLength ( FRAME_ptr  frame_ptr)

Definition at line 312 of file Cframe.C.

View newest version in sPHENIX GitHub at line 312 of file Cframe.C

References getFrameDataLengthV, getFrameHdrVersion(), valueFailure, and conf::version.

Referenced by dumpFrame(), fakeFrame(), and findFrameDataEnd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getFrameDataType ( FRAME_ptr  frame_ptr)

Definition at line 302 of file Cframe.C.

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

References getFrameDataTypeV, getFrameHdrVersion(), valueFailure, and conf::version.

Referenced by A_Event::dumpFrame(), dumpFrameHdr(), and A_Event::getFrameValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getFrameErrorLength ( FRAME_ptr  frame_ptr)

Definition at line 332 of file Cframe.C.

View newest version in sPHENIX GitHub at line 332 of file Cframe.C

References getFrameErrorLengthV, getFrameHdrVersion(), valueFailure, and conf::version.

Referenced by A_Event::dumpErrorBlock(), A_Event::dumpFrame(), dumpFrameHdr(), and A_Event::listError().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getFrameHistoryLength ( FRAME_ptr  frame_ptr)

Definition at line 322 of file Cframe.C.

View newest version in sPHENIX GitHub at line 322 of file Cframe.C

References getFrameHdrVersion(), getFrameHistoryLengthV, valueFailure, and conf::version.

Referenced by A_Event::dumpFrame(), dumpFrameHdr(), getHistoryEntryV1(), A_Event::listHistory(), and storeFrameHistory().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getFramePadding ( FRAME_ptr  frame_ptr)

Definition at line 392 of file Cframe.C.

View newest version in sPHENIX GitHub at line 392 of file Cframe.C

References getFrameHdrVersion(), getFramePaddingV, valueFailure, and conf::version.

Referenced by A_Event::dumpFrame(), dumpFrameHdr(), findFrameErrorStartV1(), findFrameHistoryStartV1(), and removeFramePadding().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getFrameSourceId ( FRAME_ptr  frame_ptr)

Definition at line 292 of file Cframe.C.

View newest version in sPHENIX GitHub at line 292 of file Cframe.C

References getFrameHdrVersion(), getFrameSourceIdV, valueFailure, and conf::version.

Referenced by A_Event::dumpFrame(), dumpFrameHdr(), and A_Event::getFrameValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getFrameStatus ( FRAME_ptr  frame_ptr)

Definition at line 273 of file Cframe.C.

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

References getFrameHdrVersion(), getFrameStatusV, valueFailure, and conf::version.

Referenced by A_Event::dumpFrame(), dumpFrameHdr(), and A_Event::getFrameValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getFrameType ( FRAME_ptr  frame_ptr)

Definition at line 282 of file Cframe.C.

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

References getFrameHdrVersion(), getFrameTypeV, valueFailure, and conf::version.

Referenced by A_Event::dumpFrame(), dumpFrameHdr(), and A_Event::getFrameValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VALUE_ret getHistoryEntry ( FRAME_ptr  frame_ptr,
UINT  index 
)

Definition at line 529 of file Cframe.C.

View newest version in sPHENIX GitHub at line 529 of file Cframe.C

References getFrameHdrVersion(), getHistoryEntryV, valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret getHistorySourceIndex ( FRAME_ptr  frame_ptr,
UINT  index 
)

Definition at line 547 of file Cframe.C.

View newest version in sPHENIX GitHub at line 547 of file Cframe.C

References getFrameHdrVersion(), getHistorySourceIndexV, valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret getHistoryStage ( FRAME_ptr  frame_ptr,
UINT  index 
)

Definition at line 538 of file Cframe.C.

View newest version in sPHENIX GitHub at line 538 of file Cframe.C

References getFrameHdrVersion(), getHistoryStageV, valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret getHistoryStatus ( FRAME_ptr  frame_ptr,
UINT  index 
)

Definition at line 556 of file Cframe.C.

View newest version in sPHENIX GitHub at line 556 of file Cframe.C

References getFrameHdrVersion(), getHistoryStatusV, valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret makeFrameHdr ( FRAME_ptr  frame_ptr,
UINT  maxFrameLen,
UINT  dataType,
UINT  frameType,
UINT  sourceId 
)

Definition at line 404 of file Cframe.C.

View newest version in sPHENIX GitHub at line 404 of file Cframe.C

References currentFrameHdrVersion, and makeFrameHdrV.

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

+ Here is the caller graph for this function:

VALUE_ret orFrameStatus ( FRAME_ptr  frame_ptr,
UINT  statusBits 
)

Definition at line 382 of file Cframe.C.

View newest version in sPHENIX GitHub at line 382 of file Cframe.C

References getFrameHdrVersion(), orFrameStatusV, valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret removeFramePadding ( FRAME_ptr  frame_ptr)

Definition at line 186 of file Cframe.C.

View newest version in sPHENIX GitHub at line 186 of file Cframe.C

References getFrameLength(), getFramePadding(), G4BARRELHCAL::length, setFrameLength(), and setFramePadding().

Referenced by adjustFrameLength(), storeFrameData(), and storeFrameHistory().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setAlignBlock ( FRAME_ptr  frame_ptr,
PHDWORD alignSource,
UINT  numDwords 
)

Definition at line 520 of file Cframe.C.

View newest version in sPHENIX GitHub at line 520 of file Cframe.C

References FALSE, getFrameHdrVersion(), setAlignBlockV, valueFailure, and conf::version.

Referenced by fakeFrame().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setDataType ( FRAME_ptr  frame_ptr,
UINT  dataType 
)

Definition at line 448 of file Cframe.C.

View newest version in sPHENIX GitHub at line 448 of file Cframe.C

References FALSE, getFrameHdrVersion(), setDataTypeV, valueFailure, and conf::version.

Referenced by makeFrameHdrV1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setFrameAlignLength ( FRAME_ptr  frame_ptr,
UINT  alignLength 
)

Definition at line 493 of file Cframe.C.

View newest version in sPHENIX GitHub at line 493 of file Cframe.C

References FALSE, getFrameHdrVersion(), setFrameAlignLengthV, valueFailure, and conf::version.

Referenced by makeFrameHdrV1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setFrameErrorLength ( FRAME_ptr  frame_ptr,
UINT  errorLength 
)

Definition at line 484 of file Cframe.C.

View newest version in sPHENIX GitHub at line 484 of file Cframe.C

References FALSE, getFrameHdrVersion(), setFrameErrorLengthV, valueFailure, and conf::version.

+ Here is the call graph for this function:

LOGIC_ret setFrameHistoryLength ( FRAME_ptr  frame_ptr,
UINT  historyLength 
)

Definition at line 475 of file Cframe.C.

View newest version in sPHENIX GitHub at line 475 of file Cframe.C

References FALSE, getFrameHdrVersion(), setFrameHistoryLengthV, valueFailure, and conf::version.

+ Here is the call graph for this function:

VALUE_ret setFramePadding ( FRAME_ptr  frame_ptr,
UINT  padDwords 
)

Definition at line 439 of file Cframe.C.

View newest version in sPHENIX GitHub at line 439 of file Cframe.C

References getFrameHdrVersion(), setFramePaddingV, valueFailure, and conf::version.

Referenced by adjustFrameLength(), and removeFramePadding().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setFrameStatus ( FRAME_ptr  frame_ptr,
UINT  status 
)

Definition at line 502 of file Cframe.C.

View newest version in sPHENIX GitHub at line 502 of file Cframe.C

References FALSE, getFrameHdrVersion(), setFrameStatusV, valueFailure, and conf::version.

+ Here is the call graph for this function:

LOGIC_ret setFrameType ( FRAME_ptr  frame_ptr,
UINT  frameType 
)

Definition at line 457 of file Cframe.C.

View newest version in sPHENIX GitHub at line 457 of file Cframe.C

References FALSE, getFrameHdrVersion(), setFrameTypeV, valueFailure, and conf::version.

Referenced by makeFrameHdrV1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

LOGIC_ret setSourceId ( FRAME_ptr  frame_ptr,
UINT  sourceId 
)

Definition at line 466 of file Cframe.C.

View newest version in sPHENIX GitHub at line 466 of file Cframe.C

References FALSE, getFrameHdrVersion(), setSourceIdV, valueFailure, and conf::version.

Referenced by makeFrameHdrV1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

MODIFYFUNCTIONPTR_arr CONSTANT adjustFrameDataLengthV = {0, &adjustFrameDataLengthV1}

Definition at line 250 of file Cframe.C.

View newest version in sPHENIX GitHub at line 250 of file Cframe.C

Referenced by adjustFrameDataLength().

MODIFYFUNCTIONPTR_arr CONSTANT adjustFrameErrorLengthV = {0, &adjustFrameErrorLengthV1}

Definition at line 252 of file Cframe.C.

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

Referenced by adjustFrameErrorLength().

MODIFYFUNCTIONPTR_arr CONSTANT adjustFrameHistoryLengthV = {0, &adjustFrameHistoryLengthV1}

Definition at line 251 of file Cframe.C.

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

Referenced by adjustFrameHistoryLength().

Definition at line 245 of file Cframe.C.

View newest version in sPHENIX GitHub at line 245 of file Cframe.C

Referenced by findFrameAlignBlock().

Definition at line 244 of file Cframe.C.

View newest version in sPHENIX GitHub at line 244 of file Cframe.C

Referenced by findFrameErrorStart().

Definition at line 246 of file Cframe.C.

View newest version in sPHENIX GitHub at line 246 of file Cframe.C

Referenced by findFrameHistoryStart().

Definition at line 271 of file Cframe.C.

View newest version in sPHENIX GitHub at line 271 of file Cframe.C

Referenced by findNextError().

Definition at line 262 of file Cframe.C.

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

Referenced by getAlignBlock().

Definition at line 242 of file Cframe.C.

View newest version in sPHENIX GitHub at line 242 of file Cframe.C

Referenced by getFrameAlignLength().

Definition at line 241 of file Cframe.C.

View newest version in sPHENIX GitHub at line 241 of file Cframe.C

Referenced by getFrameDataLength().

Definition at line 237 of file Cframe.C.

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

Referenced by getFrameDataType().

Definition at line 240 of file Cframe.C.

View newest version in sPHENIX GitHub at line 240 of file Cframe.C

Referenced by getFrameErrorLength().

ACCESSFUNCTIONPTR_arr CONSTANT getFrameHistoryLengthV = {0, &getFrameHistoryLengthV1}

Definition at line 239 of file Cframe.C.

View newest version in sPHENIX GitHub at line 239 of file Cframe.C

Referenced by getFrameHistoryLength().

Definition at line 238 of file Cframe.C.

View newest version in sPHENIX GitHub at line 238 of file Cframe.C

Referenced by getFramePadding().

Definition at line 234 of file Cframe.C.

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

Referenced by getFrameSourceId().

Definition at line 236 of file Cframe.C.

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

Referenced by getFrameStatus().

Definition at line 235 of file Cframe.C.

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

Referenced by getFrameType().

Definition at line 267 of file Cframe.C.

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

Referenced by getHistoryEntry().

Definition at line 269 of file Cframe.C.

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

Referenced by getHistorySourceIndex().

Definition at line 268 of file Cframe.C.

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

Referenced by getHistoryStage().

Definition at line 270 of file Cframe.C.

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

Referenced by getHistoryStatus().

Definition at line 265 of file Cframe.C.

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

Referenced by makeFrameHdr().

Definition at line 248 of file Cframe.C.

View newest version in sPHENIX GitHub at line 248 of file Cframe.C

Referenced by orFrameStatus().

Definition at line 263 of file Cframe.C.

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

Referenced by setAlignBlock().

Definition at line 254 of file Cframe.C.

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

Referenced by setDataType().

Definition at line 259 of file Cframe.C.

View newest version in sPHENIX GitHub at line 259 of file Cframe.C

Referenced by setFrameAlignLength().

Definition at line 258 of file Cframe.C.

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

Referenced by setFrameErrorLength().

Definition at line 257 of file Cframe.C.

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

Referenced by setFrameHistoryLength().

Definition at line 249 of file Cframe.C.

View newest version in sPHENIX GitHub at line 249 of file Cframe.C

Referenced by setFramePadding().

Definition at line 260 of file Cframe.C.

View newest version in sPHENIX GitHub at line 260 of file Cframe.C

Referenced by setFrameStatus().

Definition at line 255 of file Cframe.C.

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

Referenced by setFrameType().

Definition at line 256 of file Cframe.C.

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

Referenced by setSourceId().