JLab VME Pipeline TI Library
3v11.3
JLab VME Pipeline TI library
|
Modules | |
Master Configuration | |
Slave Configuration | |
Functions | |
int | tiInit (unsigned int tAddr, unsigned int mode, int iFlag) |
Initialize the TIp register space into local memory, and setup registers given user input. More... | |
unsigned int | tiFind () |
Find the TI within the prescribed "GEO Slot to A24 VME Address" range from slot 3 to 21. More... | |
int | tiReload () |
Reload the firmware on the FPGA. More... | |
int | tiReset () |
Perform a soft reset of the TI. More... | |
int | tiSetCrateID (unsigned int crateID) |
Set the crate ID. More... | |
int | tiSetInstantBlockLevelChange (int enable) |
Set TS to instantly change blocklevel when broadcast is received. More... | |
int | tiSetTriggerSource (int trig) |
Set the trigger source This routine will set a library variable to be set in the TI registers at a call to tiIntEnable. More... | |
int | tiSetTriggerSourceMask (int trigmask) |
Set trigger sources with specified trigmask This routine is for special use when tiSetTriggerSource(...) does not set all of the trigger sources that is required by the user. More... | |
int | tiSetGoOutput (int enable) |
Enable/Disable use of O#4 as the 'GO' output level, enabled when trigger sources are enabled. More... | |
int | tiEnableTriggerSource () |
Enable trigger sources Enable trigger sources set by tiSetTriggerSource(...) or tiSetTriggerSourceMask(...) More... | |
int | tiForceSendTriggerSourceEnable () |
Force TI to send trigger source enabled bits to TI-master or TD. More... | |
int | tiDisableTriggerSource (int fflag) |
Disable trigger sources. More... | |
int | tiSetSyncSource (unsigned int sync) |
Set the Sync source mask. More... | |
int | tiSetEventFormat (int format) |
Set the event format. More... | |
int32_t | tiGetEventFormat () |
Get the event format. More... | |
int | tiSetFPInputReadout (int enable) |
Set whether or not the latched pattern of FP Inputs in block readout. More... | |
int | tiFakeTriggerBankOnError (int enable) |
Option to generate a fake trigger bank when finds an ERROR. Enabled by library default. More... | |
int | tiEnableFiber (unsigned int fiber) |
Enable Fiber transceiver. More... | |
int | tiDisableFiber (unsigned int fiber) |
Disnable Fiber transceiver. More... | |
int | tiSetBusySource (unsigned int sourcemask, int rFlag) |
Set the busy source with a given sourcemask sourcemask bits: More... | |
void | tiEnableBusError () |
Enable Bus Errors to terminate Block Reads. More... | |
void | tiDisableBusError () |
Disable Bus Errors to terminate Block Reads. More... | |
int | tiSetTriggerPulse (int trigger, int delay, int width, int delay_step) |
Set the characteristics of a specified trigger. More... | |
int | tiSetPromptTriggerWidth (int width) |
Set the width of the prompt trigger from OT#2. More... | |
void | tiSetSyncDelayWidth (unsigned int delay, unsigned int width, int widthstep) |
Set the delay time and width of the Sync signal. More... | |
int | tiSetAdr32 (unsigned int a32base) |
Routine to set the A32 Base. More... | |
int | tiDisableA32 () |
Disable A32. More... | |
int | tiResetEventCounter () |
Reset the L1A counter, as incremented by the TI. More... | |
int | tiEnableVXSSignals () |
Enable trigger and sync signals sent through the VXS to the Signal Distribution (SD) module. More... | |
int | tiDisableVXSSignals () |
Disable trigger and sync signals sent through the VXS to the Signal Distribution (SD) module. More... | |
int | tiBusyOnBufferLevel (int enable) |
Set the TI to be BUSY if number of stored blocks is equal to the set block buffer level. More... | |
int | tiUseBroadcastBufferLevel (int enable) |
Enable/Disable the use of the broadcasted buffer level, instead of the value set locally with . More... | |
int | tiSetOutputPort (unsigned int set1, unsigned int set2, unsigned int set3, unsigned int set4) |
Set (or unset) high level for the output ports on the front panel labelled as O#1-4. More... | |
int | tiSetClockSource (unsigned int source) |
Set the clock to the specified source. More... | |
void | tiSetFiberDelay (unsigned int delay, unsigned int offset) |
Set the fiber delay required to align the sync and triggers for all crates. | |
void | tiSetFiberSyncDelay (unsigned int syncDelay) |
Set the fiber delay required to align the sync and triggers for all crates. | |
int | tiDisableDataReadout () |
Disable the necessity to readout the TI for every block. More... | |
int | tiEnableDataReadout () |
Enable readout the TI for every block. More... | |
void | tiResetSyncHistory () |
Reset the SyncCommand history buffer. | |
void | tiUserSyncReset (int enable, int blflag) |
Control level of the SyncReset signal. More... | |
int | tiResetMGTRx () |
Reset the MGT Rx CDR. | |
int | tiResetFiber () |
Reset the Fiber Tranceivers. | |
int | tiSetTSInputDelay (int chan, int delay) |
Set the input delay for the specified front panel TSinput (1-6) More... | |
int | tiSetTokenTestMode (int mode) |
Turn on Token out test mode. More... | |
int | tiSetTokenOutTest (int level) |
Set the level of the token out signal. More... | |
int | tiSetScalerMode (int mode, int control) |
Set control over the TS inputs scalers. More... | |
int | tiSetEvTypeScalers (int enable) |
Enable/disable recording of scalers associated with the bits in the event type. More... | |
void | tiClearEvTypeScalers () |
Clear the event type scalers. More... | |
int tiBusyOnBufferLevel | ( | int | enable | ) |
Set the TI to be BUSY if number of stored blocks is equal to the set block buffer level.
void tiClearEvTypeScalers | ( | ) |
Clear the event type scalers.
int tiDisableA32 | ( | ) |
Disable A32.
void tiDisableBusError | ( | ) |
Disable Bus Errors to terminate Block Reads.
int tiDisableDataReadout | ( | ) |
Disable the necessity to readout the TI for every block.
For instances when the TI data is not required for analysis When a block is "ready", a call to tiResetBlockReadout must be made.
int tiDisableFiber | ( | unsigned int | fiber | ) |
Disnable Fiber transceiver.
fiber,: | integer indicative of the transceiver to disable |
int tiDisableTriggerSource | ( | int | fflag | ) |
Disable trigger sources.
fflag |
|
int tiDisableVXSSignals | ( | ) |
Disable trigger and sync signals sent through the VXS to the Signal Distribution (SD) module.
This may be required to eliminate the possibility of accidental signals being sent during Clock Synchronization or Trigger Enable/Disabling by the TI Master or TS.
void tiEnableBusError | ( | ) |
Enable Bus Errors to terminate Block Reads.
int tiEnableDataReadout | ( | ) |
Enable readout the TI for every block.
int tiEnableFiber | ( | unsigned int | fiber | ) |
Enable Fiber transceiver.
Note: All Fiber are enabled by default (no harm, except for 1-2W power usage)
fiber,: | integer indicative of the transceiver to enable |
int tiEnableTriggerSource | ( | ) |
Enable trigger sources Enable trigger sources set by tiSetTriggerSource(...) or tiSetTriggerSourceMask(...)
int tiEnableVXSSignals | ( | ) |
Enable trigger and sync signals sent through the VXS to the Signal Distribution (SD) module.
This may be required to eliminate the possibility of accidental signals being sent during Clock Synchronization or Trigger Enable/Disabling by the TI Master or TS.
int tiFakeTriggerBankOnError | ( | int | enable | ) |
Option to generate a fake trigger bank when finds an ERROR. Enabled by library default.
enable | Enable fake trigger bank if enable != 0. |
unsigned int tiFind | ( | ) |
Find the TI within the prescribed "GEO Slot to A24 VME Address" range from slot 3 to 21.
int tiForceSendTriggerSourceEnable | ( | ) |
Force TI to send trigger source enabled bits to TI-master or TD.
int32_t tiGetEventFormat | ( | ) |
Get the event format.
int tiInit | ( | unsigned int | tAddr, |
unsigned int | mode, | ||
int | iFlag | ||
) |
Initialize the TIp register space into local memory, and setup registers given user input.
tAddr | Address or Slot Number
|
mode | Readout/Triggering Mode
|
iFlag | Initialization bit mask
|
int tiReload | ( | ) |
Reload the firmware on the FPGA.
int tiReset | ( | ) |
Perform a soft reset of the TI.
int tiResetEventCounter | ( | ) |
Reset the L1A counter, as incremented by the TI.
int tiSetAdr32 | ( | unsigned int | a32base | ) |
Routine to set the A32 Base.
int tiSetBusySource | ( | unsigned int | sourcemask, |
int | rFlag | ||
) |
Set the busy source with a given sourcemask sourcemask bits:
sourcemask |
|
rFlag | - decision to reset the global source flags
|
int tiSetClockSource | ( | unsigned int | source | ) |
Set the clock to the specified source.
source |
|
int tiSetCrateID | ( | unsigned int | crateID | ) |
Set the crate ID.
int tiSetEventFormat | ( | int | format | ) |
Set the event format.
format | - integer number indicating the event format
|
int tiSetEvTypeScalers | ( | int | enable | ) |
Enable/disable recording of scalers associated with the bits in the event type.
Provides the means for counting the event type bits, for each event obtained through ().
enable,: |
|
int tiSetFPInputReadout | ( | int | enable | ) |
Set whether or not the latched pattern of FP Inputs in block readout.
enable |
|
int tiSetGoOutput | ( | int | enable | ) |
Enable/Disable use of O#4 as the 'GO' output level, enabled when trigger sources are enabled.
enable | Enable flag 0: Disable !0: Enable * |
int tiSetInstantBlockLevelChange | ( | int | enable | ) |
Set TS to instantly change blocklevel when broadcast is received.
enable | Option to enable or disable this feature
|
int tiSetOutputPort | ( | unsigned int | set1, |
unsigned int | set2, | ||
unsigned int | set3, | ||
unsigned int | set4 | ||
) |
Set (or unset) high level for the output ports on the front panel labelled as O#1-4.
set1 | O#1 |
set2 | O#2 |
set3 | O#3 |
set4 | O#4 |
int tiSetPromptTriggerWidth | ( | int | width | ) |
Set the width of the prompt trigger from OT#2.
width | Output width will be set to (width + 2) * 4ns |
This routine is only functional for Firmware type=2 (modTI)
int tiSetScalerMode | ( | int | mode, |
int | control | ||
) |
Set control over the TS inputs scalers.
Provides a means for having counters disabled when trigger sources are disabled and disabled when the specific input is disabled.
mode,: |
|
control,: |
|
void tiSetSyncDelayWidth | ( | unsigned int | delay, |
unsigned int | width, | ||
int | widthstep | ||
) |
Set 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 tiSetSyncSource | ( | unsigned int | sync | ) |
Set the Sync source mask.
sync | - MASK indicating the sync source bit: description
|
int tiSetTokenOutTest | ( | int | level | ) |
Set the level of the token out signal.
level |
|
int tiSetTokenTestMode | ( | int | mode | ) |
int tiSetTriggerPulse | ( | int | trigger, |
int | delay, | ||
int | width, | ||
int | delay_step | ||
) |
Set 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
|
int tiSetTriggerSource | ( | int | trig | ) |
Set the trigger source This routine will set a library variable to be set in the TI registers at a call to tiIntEnable.
trig | - integer indicating the trigger source
|
int tiSetTriggerSourceMask | ( | int | trigmask | ) |
Set trigger sources with specified trigmask This routine is for special use when tiSetTriggerSource(...) does not set all of the trigger sources that is required by the user.
trigmask | bits:
|
int tiSetTSInputDelay | ( | int | chan, |
int | delay | ||
) |
Set the input delay for the specified front panel TSinput (1-6)
chan | Front Panel TSInput Channel (1-6) |
delay | Delay in units of 4ns (0=8ns) |
int tiUseBroadcastBufferLevel | ( | int | enable | ) |
Enable/Disable the use of the broadcasted buffer level, instead of the value set locally with .
enable | - 1: Enable, 0: Disable |
void tiUserSyncReset | ( | int | enable, |
int | blflag | ||
) |
Control level of the SyncReset signal.
enable |
|
blflag | Option to change block level, after SyncReset Low (enable = 0)
|