|
JLab VME Pipeline TI Library
3v11.3
JLab VME Pipeline TI library
|
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... | |
| int32_t | tiGetTriggerSource () |
| Get the trigger source. More... | |
| int32_t | tiGetGoOutput () |
| Return status of flag used to enable GO output. More... | |
| int32_t | tiGetSyncSource () |
| Get the Sync source mask. More... | |
| int32_t | tiGetFPInputReadout () |
| Get whether or not the latched pattern of FP Inputs in block readout. More... | |
| int32_t | tiGetBusySource () |
| Get the busy sourcemask. More... | |
| int | tiGetPrescale () |
| Get the current prescale factor. More... | |
| int | tiGetInputPrescale (int input) |
| Get the current prescale factor for the selected input. More... | |
| int32_t | tiGetTriggerPulse (int32_t trigger, int32_t *delay, int32_t *width, int32_t *delay_step) |
| Return the characteristics of a specified trigger. More... | |
| int | tiGetPromptTriggerWidth () |
| Get the width of the prompt trigger from OT#2. More... | |
| int32_t | tiGetSyncDelayWidth (int32_t *delay, int32_t *width, int32_t *widthstep) |
| Get the delay time and width of the Sync signal. More... | |
| int32_t | tiGetSyncResetType () |
| Get SyncReset type. More... | |
| unsigned int | tiGetAdr32 () |
| Routine to get the A32 Base. 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 | tiGetBlockBufferLevel () |
| Get the block buffer level, as programmed or broadcasted from the TS. More... | |
| int | tiGetBroadcastBlockBufferLevel () |
| Get the block buffer level, as broadcasted from the TS. More... | |
| int32_t | tiGetUseBroadcastBufferLevel () |
| Get the status of enabling the use of the broadcasted buffer level, instead of the value set locally with . More... | |
| int | tiGetClockSource () |
| Get the current clock source. More... | |
| int | tiGetFiberDelay () |
| Get the fiber delay required to align the sync and triggers for all crates. More... | |
| int | tiGetTriggerHoldoff (int rule) |
| Get the value for a specified trigger rule. More... | |
| int | tiGetTriggerHoldoffClock () |
| Return status of slower clock for trigger rules. If Enabled, will slow down the timestep = 1 by a factor of 32. More... | |
| int | tiGetTriggerHoldoffMin (int rule, int pflag) |
| Get the value for a specified trigger rule minimum busy. More... | |
| int32_t | tiGetTriggerTableMode () |
| Return trigger table mode. 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. | |
| unsigned int | tiGetTriggerLinkStatus (int pflag) |
| Get the error status bits for the trigger link. 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. | |
| unsigned int | tiGetAckCount () |
| Return current acknowledge count. | |
| 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... | |
| int | tiReadFiberFifo (int fiber, volatile unsigned int *data, int maxwords) |
| Read the fiber fifo from the TI. More... | |
| int | tiPrintFiberFifo (int fiber) |
| Read the fiber fifo from the TI and print to standard out. More... | |
| int | tiReadScalers (volatile unsigned int *data, int latch) |
| Read all the scalers into an array. More... | |
| int32_t | tiGetScalerMode (int32_t *mode, int32_t *control) |
| Returns the settings for the scaling of ts inputs. More... | |
| int32_t | tiGetEvTypeScalersFlag () |
| Return the flag for Enabling/disabling recording of event type scalers. More... | |
| int | tiGetEvTypeScalers (unsigned int *data, int maxwords) |
| Returns an array providing the current values of the event type scalers. More... | |
| void | tiPrintEvTypeScalers () |
| Print, to standard out, the current values of the event type scalers. | |
| int | tiWaitForIODelayReset (int nwait) |
| Check TI Ready for specified number of times after iodelay reset. More... | |
| int | tiGetSC1 () |
| Return bitmask showing readback of SC1 dipswitches. More... | |
| int | tiPrintClockConfiguration () |
| Print clock configuration to standard out. More... | |
| void | tiTriggerStatus (int pflag) |
| Print some trigger status information to standard out. More... | |
| int | tiGetHWRegisters (unsigned int *data_buffer, unsigned int maxwords) |
| Routine to return the values stored at the TIs registers. More... | |
| void | tiPrintHWRegisters (int32_t formatFlag) |
| Print TIs HW registers to standard out. 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 |
| unsigned int tiGetAdr32 | ( | ) |
Routine to get the A32 Base.
| int tiGetBlockBufferLevel | ( | ) |
Get the block buffer level, as programmed or broadcasted from the TS.
| unsigned int tiGetBlockLimit | ( | ) |
Returns the value that is currently programmed as the block limit.
| int tiGetBlockLimitStatus | ( | ) |
Get the current status of the block limit.
| int tiGetBroadcastBlockBufferLevel | ( | ) |
Get the block buffer level, as broadcasted from the TS.
| unsigned int tiGetBusyCounter | ( | int | busysrc | ) |
Return BUSY counter for specified Busy Source.
| busysrc |
|
| int32_t tiGetBusySource | ( | ) |
Get the busy sourcemask.
| unsigned int tiGetBusyTime | ( | ) |
Return the current "busy" time of the module.
| int tiGetClockSource | ( | ) |
Get the current clock source.
| int tiGetCrateID | ( | int | port | ) |
Get the crate ID of the selected port.
| port |
|
| int tiGetCurrentBlockLevel | ( | ) |
Get the current block level.
| unsigned long long int tiGetEventCounter | ( | ) |
Returns the event counter (48 bit)
| int tiGetEvTypeScalers | ( | unsigned int * | data, |
| int | maxwords | ||
| ) |
Returns an array providing the current values of the event type scalers.
| data | - local memory location where to store the scaler values |
| maxwords | - maximum amount of words to store at 'data' |
| int32_t tiGetEvTypeScalersFlag | ( | ) |
Return the flag for Enabling/disabling recording of event type scalers.
| int tiGetFiberDelay | ( | ) |
Get the fiber delay required to align the sync and triggers for all crates.
| int tiGetFiberLatencyMeasurement | ( | ) |
Return measured fiber length.
| int tiGetFirmwareVersion | ( | ) |
Get the Firmware Version.
| int32_t tiGetFPInputReadout | ( | ) |
Get whether or not the latched pattern of FP Inputs in block readout.
| int tiGetGeoAddress | ( | ) |
Return geographic address as provided from a VME-64X crate.
| int32_t tiGetGoOutput | ( | ) |
Return status of flag used to enable GO output.
0: Disabled
1: Enabled
* | unsigned int tiGetGTPBufferLength | ( | int | pflag | ) |
Return value of buffer length from GTP.
| int tiGetHWRegisters | ( | unsigned int * | data_buffer, |
| unsigned int | maxwords | ||
| ) |
Routine to return the values stored at the TIs registers.
| data_buffer | - local memory address to place data |
| maxwords | - Max number of words to transfer |
| int tiGetInputPrescale | ( | int | input | ) |
Get the current prescale factor for the selected input.
| input | Selected trigger input (1-6) |
| int tiGetInstantBlockLevelChange | ( | ) |
Get Status of instant blocklevel change when broadcast is received.
| int tiGetLastSyncCodes | ( | int | pflag | ) |
Return last SyncCommand received.
| >0,: | print to standard out |
| unsigned int tiGetLiveTime | ( | ) |
Return the current "live" time of the module.
| int tiGetNextBlockLevel | ( | ) |
Get the block level that will be updated on the end of the block readout.
| int tiGetPortTrigSrcEnabled | ( | int | port | ) |
Get the trigger sources enabled bits of the selected port.
| port |
|
| int tiGetPrescale | ( | ) |
Get the current prescale factor.
| int tiGetPromptTriggerWidth | ( | ) |
Get the width of the prompt trigger from OT#2.
This routine is only functional for Firmware type=2 (modTI)
| int tiGetSC1 | ( | ) |
Return bitmask showing readback of SC1 dipswitches.
| int32_t tiGetScalerMode | ( | int32_t * | mode, |
| int32_t * | control | ||
| ) |
Returns the settings for the scaling of ts inputs.
| mode,: |
|
| control,: |
|
| unsigned int tiGetSerialNumber | ( | char ** | rSN | ) |
Get the Module Serial Number.
| rSN | Pointer to string to pass Serial Number |
| int tiGetSlaveBlocklevel | ( | int | port | ) |
Get the blocklevel of the TI-Slave on the selected port.
| port |
|
| 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 |
| int tiGetSWBBusy | ( | int | pflag | ) |
Return status of Busy from SWB.
| pflag |
|
| unsigned int tiGetSWBStatus | ( | int | reg | ) |
Return the value from the SWB fast link register.
| reg | Register to request |
| int32_t tiGetSyncDelayWidth | ( | int32_t * | delay, |
| int32_t * | width, | ||
| int32_t * | widthstep | ||
| ) |
Get the delay time and width of the Sync signal.
| delay | the delay (latency) set in units of 4ns. |
| width | the width set in units of 4ns. |
| twidth | if this is non-zero, set width in units of 32ns. |
| int tiGetSyncHistoryBufferStatus | ( | int | pflag | ) |
Get the status of the SyncCommand History Buffer.
| pflag |
|
| int32_t tiGetSyncResetType | ( | ) |
Get SyncReset type.
| int32_t tiGetSyncSource | ( | ) |
Get the Sync source mask.
| 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 |
| int tiGetTriggerHoldoffClock | ( | ) |
Return status of slower clock for trigger rules. If Enabled, will slow down the timestep = 1 by a factor of 32.
| 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. |
| unsigned int tiGetTriggerLinkStatus | ( | int | pflag | ) |
Get the error status bits for the trigger link.
| pflag |
|
| int32_t tiGetTriggerPulse | ( | int32_t | trigger, |
| int32_t * | delay, | ||
| int32_t * | width, | ||
| int32_t * | delay_step | ||
| ) |
Return the characteristics of a specified trigger.
| trigger |
|
| delay | delay in units of delay_step |
| width | pulse width in units of 4ns |
| delay_step | step size of the delay
|
| int32_t tiGetTriggerSource | ( | ) |
Get the trigger source.
| int32_t tiGetTriggerTableMode | ( | ) |
Return trigger table mode.
| int tiGetTSInputDelay | ( | int | chan | ) |
Get the input delay for the specified front panel TSinput (1-6)
| chan | Front Panel TSInput Channel (1-6) |
| unsigned int tiGetTSscaler | ( | int | input, |
| int | latch | ||
| ) |
Get the current counter for the specified TS Input.
| input |
|
| latch,: |
|
| int32_t tiGetUseBroadcastBufferLevel | ( | ) |
Get the status of enabling the use of the broadcasted buffer level, instead of the value set locally with .
| 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 |
| int tiPrintBusyCounters | ( | ) |
Print the BUSY counters for all busy sources.
| int tiPrintClockConfiguration | ( | ) |
Print clock configuration to standard out.
| int tiPrintFiberFifo | ( | int | fiber | ) |
Read the fiber fifo from the TI and print to standard out.
| fiber | - Fiber fifo to read. 1 and 5 only supported. |
| void tiPrintHWRegisters | ( | int32_t | formatFlag | ) |
Print TIs HW registers to standard out.
| formatFlag | How many registers to display per line |
| int tiPrintTSInputDelay | ( | ) |
Print Front Panel TSinput Delays to Standard Out.
| int tiReadFiberFifo | ( | int | fiber, |
| volatile unsigned int * | data, | ||
| int | maxwords | ||
| ) |
Read the fiber fifo from the TI.
| fiber | - Fiber fifo to read. 1 and 5 only supported. |
| data | - local memory address to place data |
| maxwords | - Maximum number of 32bit words to put into data array. |
| int tiReadScalers | ( | volatile unsigned int * | data, |
| int | latch | ||
| ) |
Read all the scalers into an array.
| data | - local memory address to place scaler values element value 0 Live time 1 Busy time 2 TS input #1 3 TS input #2 4 TS input #3 5 TS input #4 6 TS input #5 7 TS input #6 8 All trigger sources, before busy 9 Top 16 bits of 48bit event number 10 Lower 32 bits of 48bit event number 11 Only TS inputs, before busy |
| latch,: |
|
If data is NULL, routine will return number of words that would have been transferred
| void tiSlaveStatus | ( | int | pflag | ) |
Print a summary of all fiber port connections to potential TI Slaves.
| pflag |
|
| void tiStatus | ( | int | pflag | ) |
Print some status information of the TI to standard out.
| pflag | if pflag>0, print out raw registers |
| void tiTriggerStatus | ( | int | pflag | ) |
Print some trigger status information to standard out.
| pflag | if pflag>0, print out raw registers |
| int tiWaitForIODelayReset | ( | int | nwait | ) |
Check TI Ready for specified number of times after iodelay reset.
| nwait | Number of times to poll register for ready state |
1.8.5