|
JLab Pipeline TI Library
3v6.1
|
Modules | |
| Master Status | |
Functions | |
| void | tiStatus (int pflag) |
| Print some status information of the TI to standard out. More... | |
| int | tiGetSlavePort () |
| Returns the port of which the TI Slave has been configured (or will be) More... | |
| void | tiSlaveStatus (int pflag) |
| Print a summary of all fiber port connections to potential TI Slaves. More... | |
| int | tiGetFirmwareVersion () |
| Get the Firmware Version. More... | |
| unsigned int | tiGetSerialNumber (char **rSN) |
| Get the Module Serial Number. More... | |
| int | tiGetCrateID (int port) |
| Get the crate ID of the selected port. More... | |
| int | tiGetPortTrigSrcEnabled (int port) |
| Get the trigger sources enabled bits of the selected port. More... | |
| int | tiGetSlaveBlocklevel (int port) |
| Get the blocklevel of the TI-Slave on the selected port. More... | |
| int | tiGetNextBlockLevel () |
| Get the block level that will be updated on the end of the block readout. More... | |
| int | tiGetCurrentBlockLevel () |
| Get the current block level. More... | |
| int | tiGetInstantBlockLevelChange () |
| Get Status of instant blocklevel change when broadcast is received. More... | |
| int | tiGetPrescale () |
| Get the current prescale factor. More... | |
| int | tiGetInputPrescale (int input) |
| Get the current prescale factor for the selected input. More... | |
| int | tiGetPromptTriggerWidth () |
| Get the width of the prompt trigger from OT#2. More... | |
| unsigned long long int | tiGetEventCounter () |
| Returns the event counter (48 bit) More... | |
| unsigned int | tiGetBlockLimit () |
| Returns the value that is currently programmed as the block limit. More... | |
| int | tiGetBlockLimitStatus () |
| Get the current status of the block limit. More... | |
| int | tiGetClockSource () |
| Get the current clock source. More... | |
| int | tiGetTriggerHoldoff (int rule) |
| Get the value for a specified trigger rule. More... | |
| int | tiGetTriggerHoldoffMin (int rule, int pflag) |
| Get the value for a specified trigger rule minimum busy. More... | |
| unsigned int | tiGetLiveTime () |
| Return the current "live" time of the module. More... | |
| unsigned int | tiGetBusyTime () |
| Return the current "busy" time of the module. More... | |
| int | tiLive (int sflag) |
| Calculate the live time (percentage) from the live and busy time scalers. More... | |
| unsigned int | tiGetTSscaler (int input, int latch) |
| Get the current counter for the specified TS Input. More... | |
| unsigned int | tiBlockStatus (int fiber, int pflag) |
| Show block Status of specified fiber. More... | |
| int | tiGetFiberLatencyMeasurement () |
| Return measured fiber length. More... | |
| int | tiGetLastSyncCodes (int pflag) |
| Return last SyncCommand received. More... | |
| int | tiGetSyncHistoryBufferStatus (int pflag) |
| Get the status of the SyncCommand History Buffer. More... | |
| void | tiPrintSyncHistory () |
| Print to standard out the history buffer of Sync Commands received. More... | |
| int | tiGetTSInputDelay (int chan) |
| Get the input delay for the specified front panel TSinput (1-6) More... | |
| int | tiPrintTSInputDelay () |
| Print Front Panel TSinput Delays to Standard Out. More... | |
| unsigned int | tiGetGTPBufferLength (int pflag) |
| Return value of buffer length from GTP. More... | |
| unsigned int | tiGetSWAStatus (int reg) |
| Return the value from the SWa fast link register. More... | |
| unsigned int | tiGetSWBStatus (int reg) |
| Return the value from the SWB fast link register. More... | |
| int | tiGetGeoAddress () |
| Return geographic address as provided from a VME-64X crate. More... | |
| unsigned int | tiGetIntCount () |
| Return current readout count. More... | |
| unsigned int | tiGetAckCount () |
| Return current acknowledge count. More... | |
| int | tiGetSWBBusy (int pflag) |
| Return status of Busy from SWB. More... | |
| unsigned int | tiGetBusyCounter (int busysrc) |
| Return BUSY counter for specified Busy Source. More... | |
| int | tiPrintBusyCounters () |
| Print the BUSY counters for all busy sources. More... | |
| unsigned int tiBlockStatus | ( | int | fiber, |
| int | pflag | ||
| ) |
Show block Status of specified fiber.
| fiber | Fiber port to show |
| pflag | Whether or not to print to standard out |
References TI_A24RegStruct::adr24, TI_A24RegStruct::blockStatus, TI_BLOCKSTATUS_NBLOCKS_NEEDACK0, and TI_BLOCKSTATUS_NBLOCKS_READY0.
| unsigned int tiGetAckCount | ( | ) |
Return current acknowledge count.
References tiAckCount, TILOCK, and TIUNLOCK.
| unsigned int tiGetBlockLimit | ( | ) |
Returns the value that is currently programmed as the block limit.
References TI_A24RegStruct::blocklimit, TILOCK, and TIUNLOCK.
| int tiGetBlockLimitStatus | ( | ) |
Get the current status of the block limit.
References TI_A24RegStruct::blockBuffer, TI_BLOCKBUFFER_BUSY_ON_BLOCKLIMIT, TILOCK, and TIUNLOCK.
| unsigned int tiGetBusyCounter | ( | int | busysrc | ) |
Return BUSY counter for specified Busy Source.
| busysrc |
|
References TI_A24RegStruct::busy_scaler1, TI_A24RegStruct::busy_scaler2, TILOCK, and TIUNLOCK.
| unsigned int tiGetBusyTime | ( | ) |
Return the current "busy" time of the module.
References TI_A24RegStruct::busytime, TILOCK, and TIUNLOCK.
| int tiGetClockSource | ( | ) |
Get the current clock source.
References TI_A24RegStruct::clock, TILOCK, and TIUNLOCK.
| int tiGetCrateID | ( | int | port | ) |
Get the crate ID of the selected port.
| port |
|
References TI_A24RegStruct::hfbr_tiID, TI_A24RegStruct::master_tiID, TI_ID_CRATEID_MASK, TILOCK, and TIUNLOCK.
| int tiGetCurrentBlockLevel | ( | ) |
Get the current block level.
References TI_A24RegStruct::blocklevel, TI_BLOCKLEVEL_CURRENT_MASK, TI_BLOCKLEVEL_RECEIVED_MASK, tiBlockLevel, tiDisableBusError(), tiEnableBusError(), TILOCK, tiNextBlockLevel, and TIUNLOCK.
Referenced by tiStatus().
| unsigned long long int tiGetEventCounter | ( | ) |
Returns the event counter (48 bit)
References TI_A24RegStruct::eventNumber_hi, TI_A24RegStruct::eventNumber_lo, TI_EVENTNUMBER_HI_MASK, TILOCK, and TIUNLOCK.
Referenced by tiStatus().
| int tiGetFiberLatencyMeasurement | ( | ) |
Return measured fiber length.
| int tiGetFirmwareVersion | ( | ) |
Get the Firmware Version.
References TI_A24RegStruct::JTAGFPGABase, TI_A24RegStruct::reset, TI_RESET_JTAG, TILOCK, and TIUNLOCK.
| int tiGetGeoAddress | ( | ) |
Return geographic address as provided from a VME-64X crate.
References TI_A24RegStruct::adr24, TI_ADR24_GEOADDR_MASK, TILOCK, and TIUNLOCK.
| unsigned int tiGetGTPBufferLength | ( | int | pflag | ) |
Return value of buffer length from GTP.
References TI_A24RegStruct::GTPtriggerBufferLength, TILOCK, and TIUNLOCK.
| int tiGetInputPrescale | ( | int | input | ) |
Get the current prescale factor for the selected input.
| input | Selected trigger input (1-6) |
References TI_A24RegStruct::inputPrescale, TI_INPUTPRESCALE_FP_MASK, TILOCK, and TIUNLOCK.
| int tiGetInstantBlockLevelChange | ( | ) |
Get Status of instant blocklevel change when broadcast is received.
References TI_VMECONTROL_BLOCKLEVEL_UPDATE, TILOCK, TIUNLOCK, and TI_A24RegStruct::vmeControl.
| unsigned int tiGetIntCount | ( | ) |
Return current readout count.
References tiIntCount, TILOCK, and TIUNLOCK.
| int tiGetLastSyncCodes | ( | int | pflag | ) |
Return last SyncCommand received.
| - | >0: print to standard out |
References TI_A24RegStruct::sync, TI_SYNC_HFBR1_CODE_MASK, TI_SYNC_LOOPBACK_CODE_MASK, TILOCK, tiMaster, and TIUNLOCK.
| unsigned int tiGetLiveTime | ( | ) |
Return the current "live" time of the module.
References TI_A24RegStruct::livetime, TILOCK, and TIUNLOCK.
| int tiGetNextBlockLevel | ( | ) |
Get the block level that will be updated on the end of the block readout.
References TI_A24RegStruct::blocklevel, TI_BLOCKLEVEL_CURRENT_MASK, TI_BLOCKLEVEL_RECEIVED_MASK, tiBlockLevel, TILOCK, tiNextBlockLevel, and TIUNLOCK.
Referenced by tiBroadcastNextBlockLevel().
| int tiGetPortTrigSrcEnabled | ( | int | port | ) |
Get the trigger sources enabled bits of the selected port.
| port |
|
References TI_A24RegStruct::hfbr_tiID, TI_A24RegStruct::master_tiID, TI_ID_TRIGSRC_ENABLE_MASK, TILOCK, and TIUNLOCK.
| int tiGetPrescale | ( | ) |
Get the current prescale factor.
References TILOCK, TIUNLOCK, and TI_A24RegStruct::trig1Prescale.
| int tiGetPromptTriggerWidth | ( | ) |
Get the width of the prompt trigger from OT#2.
This routine is only functional for Firmware type=2 (modTI)
References TI_A24RegStruct::eventNumber_hi, TI_PROMPT_TRIG_WIDTH_MASK, TILOCK, and TIUNLOCK.
| unsigned int tiGetSerialNumber | ( | char ** | rSN | ) |
Get the Module Serial Number.
| rSN | Pointer to string to pass Serial Number |
References TI_A24RegStruct::JTAGPROMBase, TI_A24RegStruct::reset, TI_RESET_JTAG, TILOCK, and TIUNLOCK.
| int tiGetSlaveBlocklevel | ( | int | port | ) |
Get the blocklevel of the TI-Slave on the selected port.
| port |
|
References TI_A24RegStruct::hfbr_tiID, TI_ID_BLOCKLEVEL_MASK, TILOCK, and TIUNLOCK.
| int tiGetSlavePort | ( | ) |
Returns the port of which the TI Slave has been configured (or will be)
| unsigned int tiGetSWAStatus | ( | int | reg | ) |
Return the value from the SWa fast link register.
| reg | Register to request |
References TI_A24RegStruct::SWA_status, TILOCK, and TIUNLOCK.
| int tiGetSWBBusy | ( | int | pflag | ) |
Return status of Busy from SWB.
| pflag |
|
References TI_A24RegStruct::busy, TI_BUSY_SWB, TILOCK, and TIUNLOCK.
| unsigned int tiGetSWBStatus | ( | int | reg | ) |
Return the value from the SWB fast link register.
| reg | Register to request |
References TI_A24RegStruct::SWB_status, TILOCK, and TIUNLOCK.
| int tiGetSyncHistoryBufferStatus | ( | int | pflag | ) |
Get the status of the SyncCommand History Buffer.
| pflag |
|
References TI_A24RegStruct::sync, TI_SYNC_HISTORY_FIFO_EMPTY, TI_SYNC_HISTORY_FIFO_FULL, TI_SYNC_HISTORY_FIFO_HALF_FULL, TI_SYNC_HISTORY_FIFO_MASK, TILOCK, and TIUNLOCK.
| int tiGetTriggerHoldoff | ( | int | rule | ) |
Get the value for a specified trigger rule.
| rule | the number of triggers within some time period.. e.g. rule=1: No more than ONE trigger within the specified time period |
References TI_TRIGGERRULE_RULE1_MASK, TI_TRIGGERRULE_RULE2_MASK, TI_TRIGGERRULE_RULE3_MASK, TI_TRIGGERRULE_RULE4_MASK, TILOCK, TIUNLOCK, and TI_A24RegStruct::triggerRule.
| int tiGetTriggerHoldoffMin | ( | int | rule, |
| int | pflag | ||
| ) |
Get the value for a specified trigger rule minimum busy.
| rule | the number of triggers within some time period.. e.g. rule=1: No more than ONE trigger within the specified time period |
| pflag | if not 0, print the setting to standard out. |
References TI_TRIGGERRULEMIN_MIN2_EN, TI_TRIGGERRULEMIN_MIN2_MASK, TI_TRIGGERRULEMIN_MIN3_EN, TI_TRIGGERRULEMIN_MIN3_MASK, TI_TRIGGERRULEMIN_MIN4_EN, TI_TRIGGERRULEMIN_MIN4_MASK, TILOCK, TIUNLOCK, and TI_A24RegStruct::triggerRuleMin.
| int tiGetTSInputDelay | ( | int | chan | ) |
Get the input delay for the specified front panel TSinput (1-6)
| chan | Front Panel TSInput Channel (1-6) |
References TI_A24RegStruct::fpDelay, TI_FPDELAY_MASK, TILOCK, and TIUNLOCK.
| unsigned int tiGetTSscaler | ( | int | input, |
| int | latch | ||
| ) |
Get the current counter for the specified TS Input.
| input |
|
| latch |
|
References TI_A24RegStruct::reset, TI_RESET_SCALERS_LATCH, TI_RESET_SCALERS_RESET, TILOCK, TIUNLOCK, and TI_A24RegStruct::ts_scaler.
| int tiLive | ( | int | sflag | ) |
Calculate the live time (percentage) from the live and busy time scalers.
| sflag | if > 0, then returns the integrated live time |
References TI_A24RegStruct::busytime, TI_A24RegStruct::livetime, TI_A24RegStruct::reset, TI_RESET_SCALERS_LATCH, TILOCK, and TIUNLOCK.
| int tiPrintBusyCounters | ( | ) |
Print the BUSY counters for all busy sources.
References TI_A24RegStruct::busy_scaler1, TI_A24RegStruct::busy_scaler2, TILOCK, and TIUNLOCK.
| void tiPrintSyncHistory | ( | ) |
Print to standard out the history buffer of Sync Commands received.
References TI_A24RegStruct::syncHistory, TI_SYNCHISTORY_HFBR1_CODE_MASK, TI_SYNCHISTORY_HFBR1_CODE_VALID, TI_SYNCHISTORY_LOOPBACK_CODE_MASK, TI_SYNCHISTORY_LOOPBACK_CODE_VALID, TI_SYNCHISTORY_TIMESTAMP_MASK, TI_SYNCHISTORY_TIMESTAMP_OVERFLOW, TILOCK, tiMaster, and TIUNLOCK.
| int tiPrintTSInputDelay | ( | ) |
Print Front Panel TSinput Delays to Standard Out.
References TI_A24RegStruct::fpDelay, TI_FPDELAY_MASK, TILOCK, and TIUNLOCK.
| void tiSlaveStatus | ( | int | pflag | ) |
Print a summary of all fiber port connections to potential TI Slaves.
| pflag |
|
References TI_A24RegStruct::adr24, TI_A24RegStruct::blocklevel, TI_A24RegStruct::blockStatus, TI_A24RegStruct::busy, TI_A24RegStruct::fiber, TI_A24RegStruct::hfbr_tiID, TI_A24RegStruct::master_tiID, TI_BLOCKLEVEL_CURRENT_MASK, TI_BLOCKSTATUS_NBLOCKS_NEEDACK0, TI_BLOCKSTATUS_NBLOCKS_NEEDACK1, TI_BLOCKSTATUS_NBLOCKS_READY0, TI_BLOCKSTATUS_NBLOCKS_READY1, TI_BUSY_MONITOR_FIBER_BUSY, TI_BUSY_MONITOR_LOOPBACK, TI_FIBER_CONNECTED_TI, TI_FIBER_TRIGSRC_ENABLED_TI, TI_ID_BLOCKLEVEL_MASK, TI_ID_CRATEID_MASK, TI_TRIGSRC_LOOPBACK, tiA24Offset, TILOCK, tiSlaveMask, TIUNLOCK, and TI_A24RegStruct::trigsrc.
| void tiStatus | ( | int | pflag | ) |
Print some status information of the TI to standard out.
| pflag | if pflag>0, print out raw registers |
References TI_A24RegStruct::adr24, TI_A24RegStruct::adr32, TI_A24RegStruct::blockBuffer, TI_A24RegStruct::blocklevel, TI_A24RegStruct::blocklimit, TI_A24RegStruct::blockStatus, TI_A24RegStruct::boardID, TI_A24RegStruct::busy, TI_A24RegStruct::busytime, TI_A24RegStruct::clock, TI_A24RegStruct::fiber, TI_A24RegStruct::fiberSyncDelay, TI_A24RegStruct::GTPStatusA, TI_A24RegStruct::GTPStatusB, TI_A24RegStruct::GTPtriggerBufferLength, TI_A24RegStruct::inputCounter, TI_A24RegStruct::intsetup, TI_A24RegStruct::livetime, TI_A24RegStruct::nblocks, TI_A24RegStruct::output, TI_A24RegStruct::reset, TI_A24RegStruct::rocEnable, TI_A24RegStruct::sync, TI_A24RegStruct::syncEventCtrl, TI_BLOCKBUFFER_BLOCKS_READY_MASK, TI_BLOCKBUFFER_BUFFERLEVEL_MASK, TI_BLOCKBUFFER_BUSY_ON_BLOCKLIMIT, TI_BLOCKSTATUS_NBLOCKS_NEEDACK0, TI_BLOCKSTATUS_NBLOCKS_NEEDACK1, TI_BLOCKSTATUS_NBLOCKS_READY0, TI_BLOCKSTATUS_NBLOCKS_READY1, TI_BUSY_FP, TI_BUSY_FP_FADC, TI_BUSY_FP_FTDC, TI_BUSY_HFBR1, TI_BUSY_HFBR2, TI_BUSY_HFBR3, TI_BUSY_HFBR4, TI_BUSY_HFBR5, TI_BUSY_HFBR6, TI_BUSY_HFBR7, TI_BUSY_HFBR8, TI_BUSY_LOOPBACK, TI_BUSY_MONITOR_FP, TI_BUSY_MONITOR_FP_FADC, TI_BUSY_MONITOR_FP_FTDC, TI_BUSY_MONITOR_HFBR1, TI_BUSY_MONITOR_HFBR2, TI_BUSY_MONITOR_HFBR3, TI_BUSY_MONITOR_HFBR4, TI_BUSY_MONITOR_HFBR5, TI_BUSY_MONITOR_HFBR6, TI_BUSY_MONITOR_HFBR7, TI_BUSY_MONITOR_HFBR8, TI_BUSY_MONITOR_LOOPBACK, TI_BUSY_MONITOR_P2, TI_BUSY_MONITOR_SWA, TI_BUSY_MONITOR_SWB, TI_BUSY_MONITOR_TRIG_LOST, TI_BUSY_P2, TI_BUSY_SOURCEMASK, TI_BUSY_SWA, TI_BUSY_SWB, TI_BUSY_TRIGGER_LOCK, TI_CLOCK_FP, TI_CLOCK_HFBR1, TI_CLOCK_HFBR5, TI_CLOCK_INTERNAL, TI_CLOCK_MASK, TI_FIBER_CONNECTED_TI, TI_FIBER_TRIGSRC_ENABLED_TI, TI_INTSETUP_ENABLE, TI_INTSETUP_LEVEL_MASK, TI_INTSETUP_VECTOR_MASK, TI_NBLOCKS_COUNT_MASK, TI_RESET_SCALERS_LATCH, TI_ROCENABLE_SYNCRESET_REQUEST_ENABLE_MASK, TI_SYNC_FP, TI_SYNC_HFBR1, TI_SYNC_HFBR5, TI_SYNC_LOOPBACK, TI_SYNC_P0, TI_SYNC_SOURCEMASK, TI_SYNC_USER_SYNCRESET_ENABLED, TI_SYNCEVENTCTRL_NBLOCKS_MASK, TI_TRIGSRC_FPTRG, TI_TRIGSRC_HFBR1, TI_TRIGSRC_HFBR5, TI_TRIGSRC_LOOPBACK, TI_TRIGSRC_P0, TI_TRIGSRC_PART_1, TI_TRIGSRC_PART_2, TI_TRIGSRC_PART_3, TI_TRIGSRC_PART_4, TI_TRIGSRC_PULSER, TI_TRIGSRC_SOURCEMASK, TI_TRIGSRC_TSINPUTS, TI_TRIGSRC_TSREV2, TI_TRIGSRC_VME, TI_TSINPUT_MASK, TI_VMECONTROL_A32, TI_VMECONTROL_BERR, tiA24Offset, tiA32Offset, tiAckCount, tiBlockLevel, tiGetCurrentBlockLevel(), tiGetEventCounter(), tiIntCount, tiLatchTimers(), TILOCK, tiMaster, tiNextBlockLevel, TIpd, tiPrintTriggerHoldoff(), tiSlaveMask, tiSyncResetRequestStatus(), tiTriggerSource, TIUNLOCK, TI_A24RegStruct::trig1Prescale, TI_A24RegStruct::trigDelay, TI_A24RegStruct::trigsrc, TI_A24RegStruct::tsInput, and TI_A24RegStruct::vmeControl.