JLab VME Pipeline TI Library
3v11.3
JLab VME Pipeline TI library
|
Functions | |
int | tiClockResync () |
Resync the 250 MHz Clock. More... | |
int | tiSetBlockLevel (int blockLevel) |
Set the number of events per block. More... | |
int | tiBroadcastNextBlockLevel (int blockLevel) |
Broadcast the next block level (to be changed at the end of the next sync event, or during a call to tiSyncReset(1). More... | |
int | tiSoftTrig (int trigger, unsigned int nevents, unsigned int period_inc, int range) |
Set and enable the "software" trigger. More... | |
int | tiSetRandomTrigger (int trigger, int setting) |
Set the parameters of the random internal trigger. More... | |
int | tiDisableRandomTrigger () |
Disable random trigger generation. More... | |
int | tiSetTriggerLock (int enable) |
Set the the trigger lock mode. More... | |
int | tiSetPrescale (int prescale) |
Set the prescale factor for the external trigger. More... | |
int | tiSetInputPrescale (int input, int prescale) |
Set the prescale factor for the selected input. More... | |
void | tiTrigLinkReset () |
Reset the trigger link. | |
int | tiSetSyncResetType (int type) |
Set type of SyncReset to send to TI Slaves. More... | |
void | tiSyncReset (int blflag) |
Generate a Sync Reset signal. This signal is sent to the loopback and all configured TI Slaves. More... | |
void | tiResetEB () |
Generate a Sync signal to reset only event buffers. This signal is sent to the loopback and all configured TI Slaves. | |
void | tiSyncResetResync () |
Generate a Sync Reset Resync signal. This signal is sent to the loopback and all configured TI Slaves. This type of Sync Reset will NOT reset event numbers. | |
void | tiClockReset () |
Generate a Clock Reset signal. This signal is sent to the loopback and all configured TI Slaves. | |
int | tiSetBlockLimit (unsigned int limit) |
Set the block number at which triggers will be disabled automatically. More... | |
int | tiSetBlockBufferLevel (unsigned int level) |
Set the block buffer level for the number of blocks in the system that need to be read out. More... | |
int | tiEnableTSInput (unsigned int inpMask) |
Enable/Disable trigger inputs labelled TS#1-6 on the Front Panel. More... | |
int | tiDisableTSInput (unsigned int inpMask) |
Disable trigger inputs labelled TS#1-6 on the Front Panel. More... | |
int | tiResetSlaveConfig () |
Reset the configuration of TI Slaves on the TI-Master. More... | |
int | tiAddSlave (unsigned int fiber) |
Add and configurate a TI Slave for the TI Master. More... | |
int | tiRemoveSlave (unsigned int fiber) |
Remove a TI Slave. More... | |
int | tiAddSlaveMask (unsigned int fibermask) |
Add and configure TI Slaves by using a mask for the TI-Master. More... | |
int | tiSetTriggerHoldoff (int rule, unsigned int value, int timestep) |
Set the value for a specified trigger rule. More... | |
int | tiSetTriggerHoldoffMin (int rule, unsigned int value) |
Set the value for the minimum time of specified trigger rule. More... | |
int | tiTriggerTableConfig (unsigned int *itable) |
Configure trigger table to be loaded with a user provided array. More... | |
int | tiGetTriggerTable (unsigned int *otable) |
Get the current trigger table stored in local memory (not necessarily on TI). More... | |
int | tiTriggerTablePredefinedConfig (int mode) |
Configure trigger tabled to be loaded with a predefined trigger table (mapping TS inputs to trigger types). More... | |
int | tiDefineEventType (int trigMask, int hwTrig, int evType) |
Define a specific trigger pattern as a hardware trigger (trig1/trig2/syncevent) and Event Type. More... | |
int | tiDefinePulserEventType (int fixed_type, int random_type) |
Define the event type for the TI Master's fixed and random internal trigger. More... | |
int | tiLoadTriggerTable (int mode) |
Load a predefined trigger table (mapping TS inputs to trigger types). More... | |
int | tiSetTriggerWindow (int window_width) |
Set the window of the input trigger coincidence window. More... | |
int | tiSetTriggerInhibitWindow (int window_width) |
Set the width of the input trigger inhibit window. More... | |
int | tiSetTrig21Delay (int delay) |
Set the delay of Trig1 relative to Trig2 when trigger source is 11. More... | |
int | tiSetTriggerLatchOnLevel (int enable) |
Set the trigger latch pattern readout in the data stream to include the Level of the input trigger OR the transition to Hi. More... | |
int | tiLatchTimers () |
Latch the Busy and Live Timers. More... | |
int | tiSetUserSyncResetReceive (int enable) |
Enable/Disable operation of User SyncReset. More... | |
int | tiSetSyncEventInterval (int blk_interval) |
Set the value of the syncronization event interval. More... | |
int | tiEnableSyncResetRequest (unsigned int portMask, int self) |
Configure which ports (and self) to enable response of a SyncReset request. More... | |
void | tiTriggerReadyReset () |
Reset the registers that record the triggers enabled status of TI Slaves. | |
void | tiTriggerLinkErrorReset () |
Reset the registers that record bit errors recorded on the trigger link. | |
int | tiResetMGT () |
Reset the MGT. More... | |
int tiAddSlave | ( | unsigned int | fiber | ) |
Add and configurate a TI Slave for the TI Master.
This routine should be used by the TI Master to configure HFBR porti and BUSY sources.
fiber | The fiber port of the TI Master that is connected to the slave |
int tiAddSlaveMask | ( | unsigned int | fibermask | ) |
Add and configure TI Slaves by using a mask for the TI-Master.
This routine should be used by the TI-Master to configure HFBR ports and BUSY sources.
fibermask | The fiber port mask of the TI-Master that is connected to the slaves |
int tiBroadcastNextBlockLevel | ( | int | blockLevel | ) |
Broadcast the next block level (to be changed at the end of the next sync event, or during a call to tiSyncReset(1).
blockLevel | block level to broadcats |
int tiClockResync | ( | ) |
Resync the 250 MHz Clock.
int tiDefineEventType | ( | int | trigMask, |
int | hwTrig, | ||
int | evType | ||
) |
Define a specific trigger pattern as a hardware trigger (trig1/trig2/syncevent) and Event Type.
trigMask | Trigger Pattern (must be less than 0x3F)
|
hwTrig | Hardware trigger type (must be less than 3) 0: no trigger 1: Trig1 (event trigger) 2: Trig2 (playback trigger) 3: SyncEvent |
evType | Event Type (must be less than 255) |
int tiDefinePulserEventType | ( | int | fixed_type, |
int | random_type | ||
) |
Define the event type for the TI Master's fixed and random internal trigger.
fixed_type | Fixed Pulser Event Type |
random_type | Pseudo Random Pulser Event Type |
int tiDisableRandomTrigger | ( | ) |
Disable random trigger generation.
int tiDisableTSInput | ( | unsigned int | inpMask | ) |
Disable trigger inputs labelled TS#1-6 on the Front Panel.
These inputs MUST be disabled if not connected.
inpMask |
|
int tiEnableSyncResetRequest | ( | unsigned int | portMask, |
int | self | ||
) |
Configure which ports (and self) to enable response of a SyncReset request.
portMask | Mask of ports to enable (port 1 = bit 0) |
self | 1 to enable self, 0 to disable |
int tiEnableTSInput | ( | unsigned int | inpMask | ) |
Enable/Disable trigger inputs labelled TS#1-6 on the Front Panel.
These inputs MUST be disabled if not connected.
inpMask |
|
int tiGetTriggerTable | ( | unsigned int * | otable | ) |
Get the current trigger table stored in local memory (not necessarily on TI).
otable | Output Table (Array of 16 4byte words, user must allocate memory) |
int tiLatchTimers | ( | ) |
Latch the Busy and Live Timers.
This routine should be called prior to a call to tiGetLiveTime and tiGetBusyTime
int tiLoadTriggerTable | ( | int | mode | ) |
Load a predefined trigger table (mapping TS inputs to trigger types).
mode |
|
int tiRemoveSlave | ( | unsigned int | fiber | ) |
Remove a TI Slave.
fiber | The fiber port of the TI master to remove. |
int tiResetMGT | ( | ) |
Reset the MGT.
int tiResetSlaveConfig | ( | ) |
Reset the configuration of TI Slaves on the TI-Master.
This routine removes all slaves and resets the fiber port busys.
int tiSetBlockBufferLevel | ( | unsigned int | level | ) |
Set the block buffer level for the number of blocks in the system that need to be read out.
If this buffer level is full, the TI will go BUSY. The BUSY is released as soon as the number of buffers in the system drops below this level.
level |
|
int tiSetBlockLevel | ( | int | blockLevel | ) |
Set the number of events per block.
blockLevel | Number of events per block |
int tiSetBlockLimit | ( | unsigned int | limit | ) |
Set the block number at which triggers will be disabled automatically.
int tiSetInputPrescale | ( | int | input, |
int | prescale | ||
) |
Set the prescale factor for the selected input.
input | Selected trigger input (1-6) |
prescale | Factor for prescale. Max {prescale} available is 65535 |
int tiSetPrescale | ( | int | prescale | ) |
Set the prescale factor for the external trigger.
prescale | Factor for prescale. Max {prescale} available is 65535 |
int tiSetRandomTrigger | ( | int | trigger, |
int | setting | ||
) |
Set the parameters of the random internal trigger.
trigger | - Trigger Selection
|
setting | - frequency prescale from 500MHz |
int tiSetSyncEventInterval | ( | int | blk_interval | ) |
Set the value of the syncronization event interval.
blk_interval | Sync Event will occur in the last event of the set blk_interval (number of blocks) |
int tiSetSyncResetType | ( | int | type | ) |
Set type of SyncReset to send to TI Slaves.
type | Sync Reset Type
|
int tiSetTrig21Delay | ( | int | delay | ) |
Set the delay of Trig1 relative to Trig2 when trigger source is 11.
delay | Trig1 delay after Trig2
|
int tiSetTriggerHoldoff | ( | int | rule, |
unsigned int | value, | ||
int | timestep | ||
) |
Set 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 |
value | the specified time period (in steps of timestep) |
timestep | Timestep that is dependent on the trigger rule selected rule timestep 1 2 3 4 -------- ------ ------- ------- -------- 0 16ns 16ns 32ns 64ns 1 480ns 960ns 1920ns 3840ns 2 15360ns 30720ns 61440ns 122880ns * |
int tiSetTriggerHoldoffMin | ( | int | rule, |
unsigned int | value | ||
) |
Set the value for the minimum time of 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 |
value | the specified time period (in steps of timestep) rule 2 3 4 ----- ------ ------ 16ns 480ns 480ns * |
int tiSetTriggerInhibitWindow | ( | int | window_width | ) |
Set the width of the input trigger inhibit window.
window_width | Width of the input inhibit window (units of 4ns) |
int tiSetTriggerLatchOnLevel | ( | int | enable | ) |
Set the trigger latch pattern readout in the data stream to include the Level of the input trigger OR the transition to Hi.
enable | 1 to enable <1 to disable |
int tiSetTriggerLock | ( | int | enable | ) |
Set the the trigger lock mode.
enable | Enable flag 0: Disable !0: Enable |
int tiSetTriggerWindow | ( | int | window_width | ) |
Set the window of the input trigger coincidence window.
window_width | Width of the input coincidence window (units of 4ns) |
int tiSetUserSyncResetReceive | ( | int | enable | ) |
Enable/Disable operation of User SyncReset.
enable |
|
int tiSoftTrig | ( | int | trigger, |
unsigned int | nevents, | ||
unsigned int | period_inc, | ||
int | range | ||
) |
Set and enable the "software" trigger.
trigger | trigger type 1 or 2 (playback trigger) |
nevents | integer number of events to trigger |
period_inc | period multiplier, depends on range (0-0x7FFF) |
range |
|
void tiSyncReset | ( | int | blflag | ) |
Generate a Sync Reset signal. This signal is sent to the loopback and all configured TI Slaves.
blflag | Option to change block level, after SyncReset issued
|
int tiTriggerTableConfig | ( | unsigned int * | itable | ) |
Configure trigger table to be loaded with a user provided array.
itable | Input Table (Array of 16 4byte words) |
int tiTriggerTablePredefinedConfig | ( | int | mode | ) |
Configure trigger tabled to be loaded with a predefined trigger table (mapping TS inputs to trigger types).
mode |
|