JLab Pipeline TS Library
3v7.1
|
Functions | |
int | tsInit (unsigned int tAddr, unsigned int mode, int iFlag) |
Initialize the TSp register space into local memory, and setup registers given user input. More... | |
unsigned int | tsFind () |
Find the TS within the prescribed "GEO Slot to A24 VME Address" range from slot 2 to 21. More... | |
void | tsSlaveStatus (int pflag) |
Print a summary of all fiber port connections to potential TI Slaves. More... | |
int | tsReload () |
Reload the firmware on the FPGA. More... | |
int | tsClockResync () |
Resync the 250 MHz Clock. More... | |
int | tsReset () |
Perform a soft reset of the TS. More... | |
int | tsSetCrateID (unsigned int crateID) |
Set the crate ID. More... | |
int | tsSetBlockLevel (int blockLevel) |
Set the number of events per block. More... | |
int | tsBroadcastNextBlockLevel (int blockLevel) |
Broadcast the next block level (to be changed at the end of the next sync event, or during a call to tsSyncReset(1). More... | |
int | tsSetInstantBlockLevelChange (int enable) |
Set TS to instantly change blocklevel when broadcast is received. More... | |
int | tsSetInputMix (int enable) |
Set option to mix FP and GTP inputs Effectively swaps the FP(16:1) -> GTP'(32:17) and GTP(32:17) -> FP'(16:1) in both trigger table and data pattern output. More... | |
int | tsSetGTPInput (unsigned int inputmask) |
Set which GTP inputs are enabled. More... | |
int | tsSetFPInput (unsigned int inputmask) |
Set which FP inputs are enabled. More... | |
int | tsSetTriggerSource (int trig) |
Set the trigger source. More... | |
int | tsSetTriggerSourceMask (int trigmask) |
Set trigger sources with specified trigmask. More... | |
int | tsEnableTriggerSource () |
Enable trigger sources set by tsSetTriggerSource(...) or tsSetTriggerSourceMask(...) More... | |
int | tsDisableTriggerSource (int fflag) |
Disable trigger sources. More... | |
int | tsSetSyncSource (unsigned int sync) |
Set the Sync source mask. More... | |
int | tsSetEventFormat (int format) |
Set the event format. More... | |
int | tsSoftTrig (int trigger, unsigned int nevents, unsigned int period_inc, int range) |
Set and enable the "software" trigger. More... | |
int | tsSetRandomTrigger (int trigger, int setting) |
Set the parameters of the random internal trigger. More... | |
int | tsDisableRandomTrigger () |
Disable random trigger generation. More... | |
int | tsSetBusySource (unsigned int sourcemask, int rFlag) |
Set the busy source with a given sourcemask sourcemask bits: More... | |
void | tsEnableBusError () |
Enable Bus Errors to terminate Block Reads. More... | |
void | tsDisableBusError () |
Disable Bus Errors to terminate Block Reads. More... | |
int | tsSetPrescale (int prescale) |
Set the prescale factor for the external trigger. More... | |
int | tsSetTriggerPrescale (int type, int chan, unsigned int prescale) |
Set the prescale for specified type and channel. More... | |
int | tsSetTriggerPulse (int trigger, int delay, int width) |
Set the characteristics of a specified trigger. More... | |
void | tsSetSyncDelayWidth (unsigned int delay, unsigned int width, int widthstep) |
Set the delay time and width of the Sync signal. More... | |
void | tsTrigLinkReset () |
Reset the trigger link. More... | |
void | tsTrigLinkDisable () |
Disable the trigger link. More... | |
int | tsSetSyncResetType (int type) |
Set type of SyncReset to send to TI Slaves. More... | |
void | tsSyncReset (int blflag) |
Generate a Sync Reset signal. More... | |
void | tsSyncResetResync () |
Generate a Sync Reset Resync signal. More... | |
void | tsClockReset () |
Generate a Clock Reset signal. This signal is sent to the loopback and all configured TI Slaves. More... | |
void | tsUserSyncReset (int enable) |
Control level of the SyncReset signal. More... | |
void | tsTriggerReadyReset () |
Reset the registers that record the triggers enabled status of TI Slaves. More... | |
int | tsSetAdr32 (unsigned int a32base) |
Routine to set the A32 Base. More... | |
int | tsResetEventCounter () |
Reset the L1A counter, as incremented by the TS. More... | |
int | tsSetBlockLimit (unsigned int limit) |
Set the block number at which triggers will be disabled automatically. More... | |
int | tsSetGTPInputReadout (int enable) |
Set whether or not the latched pattern of GTP Inputs in block readout. More... | |
int | tsSetFPInputReadout (int enable) |
Set whether or not the latched pattern of FP Inputs in block readout. More... | |
int | tsSetBlockBufferLevel (unsigned int level) |
Set the block buffer level for the number of blocks in the system that need to be read out. More... | |
int | tsSetOutputPort (unsigned int set1, unsigned int set2, unsigned int set3, unsigned int set4, unsigned int set5, unsigned int set6) |
Set (or unset) high level for the user controllable output ports on the front panel. More... | |
int | tsSetClockSource (unsigned int source) |
Set the clock to the specified source. More... | |
void | tsResetIODelay () |
Reset the IO Delay on the TS. More... | |
int | tsResetSlaveConfig () |
Reset the configuration of TI Slaves on the TS. This routine removes all slaves and resets the fiber port busy's. More... | |
int | tsAddSlave (unsigned int fiber) |
Add and configurate a TI Slave. More... | |
int | tsRemoveSlave (unsigned int fiber) |
Remove a TI Slave for the TS. More... | |
int | tsSetTriggerHoldoff (int rule, unsigned int value, int timestep) |
Set the value for a specified trigger rule. More... | |
int | tsSetTriggerHoldoffMin (int rule, unsigned int value) |
Set the value for the minimum time of specified trigger rule. More... | |
int | tsTriggerTableConfig (unsigned int **itable) |
Configure trigger table to be loaded with a user provided array. More... | |
int | tsGetTriggerTable (unsigned int **otable) |
Get the current trigger table stored in local memory (not necessarily on TS). More... | |
void | tsTriggerTableDefault () |
Configure trigger table to be loaded with a predefined trigger table (mapping GTP and FP inputs to trigger types). More... | |
int | tsDefineEventType (int inputType, unsigned int trigMask, int hwTrig, int evType) |
Define a specific trigger pattern as a hardware trigger (trig1/trig2/syncevent) and Event Type. More... | |
int | tsDefineSpecialEventType (int trigOpt, int evType) |
Set the trigger type for the specified special trigger. More... | |
int | tsLoadTriggerTable () |
Load up the default trigger lookup table for the TS. More... | |
int | tsLatchTimers () |
Latch the Busy and Live Timers. More... | |
int | tsSetSyncEventInterval (int blk_interval) |
Set the value of the syncronization event interval. More... | |
int | tsResetMGT () |
Reset the MGT. More... | |
int | tsSetFPDelay (int chan, int delay) |
Set the input delay for teh specified front panel input (0-31) More... | |
int | tsSetTSIODrive (int enable) |
Enable/Disable the FPGA drive to the TSIO. More... | |
int | tsSetTrigCoinWindow (unsigned int size) |
Set the trigger coincidence window. More... | |
int | tsSetTrigInhibitWindow (unsigned int size) |
Set the trigger inhibit window. More... | |
int tsAddSlave | ( | unsigned int | fiber | ) |
Add and configurate a TI Slave.
This routine should be used by the TS to configure HFBR port and BUSY sources.
fiber | The fiber port of the TS that is connected to the slave |
References TS_BUSY_TI_A, TS_BUSY_TI_B, tsSetBusySource(), and tsSlaveMask.
int tsBroadcastNextBlockLevel | ( | int | blockLevel | ) |
Broadcast the next block level (to be changed at the end of the next sync event, or during a call to tsSyncReset(1).
blockLevel | block level to broadcats |
References TS_A24RegStruct::trigger, TS_A24RegStruct::triggerCommand, TS_BLOCKLEVEL_MASK, TS_TRIGGER_VME, TS_TRIGGERCOMMAND_SET_BLOCKLEVEL, tsGetNextBlockLevel(), TSLOCK, and TSUNLOCK.
Referenced by tsSetBlockLevel().
void tsClockReset | ( | ) |
Generate a Clock Reset signal. This signal is sent to the loopback and all configured TI Slaves.
References TS_A24RegStruct::syncCommand, TS_SYNCCOMMAND_CLK250_RESYNC, TSLOCK, and TSUNLOCK.
int tsClockResync | ( | ) |
Resync the 250 MHz Clock.
References TS_A24RegStruct::syncCommand, TS_SYNCCOMMAND_AD9510_RESYNC, TSLOCK, and TSUNLOCK.
int tsDefineEventType | ( | int | inputType, |
unsigned int | trigMask, | ||
int | hwTrig, | ||
int | evType | ||
) |
Define a specific trigger pattern as a hardware trigger (trig1/trig2/syncevent) and Event Type.
inputType | The Input Type 0: GTP 1: Front Panel |
trigMask | Trigger Pattern
|
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 256) |
int tsDefineSpecialEventType | ( | int | trigOpt, |
int | evType | ||
) |
Set the trigger type for the specified special trigger.
trigOpt | Trigger Option 0: Software (default = 253) 1: Pulser (default = 254) 2: Multiple GTP or FP Hits (default = 250) 3: Combined GTP and FP Hits (default = 251) |
evType | Event Type
|
References TS_A24RegStruct::specialEvTypes, TS_SPECIALEVTYPES_GTP_AND_FP_MASK, TS_SPECIALEVTYPES_MULT_GTP_OR_FP_MASK, TS_SPECIALEVTYPES_PULSER_MASK, TS_SPECIALEVTYPES_VME_MASK, TSLOCK, and TSUNLOCK.
void tsDisableBusError | ( | ) |
Disable Bus Errors to terminate Block Reads.
References TS_VMECONTROL_BERR, TSLOCK, and TS_A24RegStruct::vmeControl.
Referenced by tsGetCurrentBlockLevel().
int tsDisableRandomTrigger | ( | ) |
Disable random trigger generation.
References TS_A24RegStruct::randomPulser, TSLOCK, and TSUNLOCK.
int tsDisableTriggerSource | ( | int | fflag | ) |
Disable trigger sources.
fflag |
|
References TS_A24RegStruct::trigger, tsCurrentBlockFilled(), tsFillToEndBlock(), TSLOCK, and TSUNLOCK.
Referenced by tsIntDisable().
void tsEnableBusError | ( | ) |
Enable Bus Errors to terminate Block Reads.
References TS_VMECONTROL_BERR, TSLOCK, and TS_A24RegStruct::vmeControl.
Referenced by tsGetCurrentBlockLevel().
int tsEnableTriggerSource | ( | ) |
Enable trigger sources set by tsSetTriggerSource(...) or tsSetTriggerSourceMask(...)
References TS_A24RegStruct::trigger, TSLOCK, tsTriggerSource, and TSUNLOCK.
unsigned int tsFind | ( | ) |
Find the TS within the prescribed "GEO Slot to A24 VME Address" range from slot 2 to 21.
References TS_BOARDID_TYPE_MASK, and TS_BOARDID_TYPE_TS.
Referenced by tsInit().
int tsGetTriggerTable | ( | unsigned int ** | otable | ) |
Get the current trigger table stored in local memory (not necessarily on TS).
otable | Output Table (8x256 Array of 4byte words, user must allocate memory) |
int tsInit | ( | unsigned int | tAddr, |
unsigned int | mode, | ||
int | iFlag | ||
) |
Initialize the TSp register space into local memory, and setup registers given user input.
tAddr |
|
mode | - Readout/Triggering Mode
|
iFlag | - Initialization mask
|
References TS_INIT_DUPLICATION_MODE, TS_INIT_NO_INIT, TS_INIT_SKIP_FIRMWARE_CHECK, and tsFind().
int tsLatchTimers | ( | ) |
Latch the Busy and Live Timers.
This routine should be called prior to a call to tsGetLiveTime and tsGetBusyTime
References TS_A24RegStruct::reset, TS_RESET_LATCH_TIMERS, TSLOCK, and TSUNLOCK.
int tsLoadTriggerTable | ( | ) |
Load up the default trigger lookup table for the TS.
int tsReload | ( | ) |
Reload the firmware on the FPGA.
References TS_A24RegStruct::JTAGPROMBase, TS_A24RegStruct::reset, TS_RESET_JTAG, TSLOCK, and TSUNLOCK.
int tsRemoveSlave | ( | unsigned int | fiber | ) |
Remove a TI Slave for the TS.
fiber | The fiber port of the TS to remove. |
References TS_A24RegStruct::busy, TS_BUSY_TI_A, TSLOCK, tsSlaveMask, and TSUNLOCK.
int tsReset | ( | ) |
Perform a soft reset of the TS.
References TS_A24RegStruct::reset, TS_RESET_SOFT, TSLOCK, and TSUNLOCK.
int tsResetEventCounter | ( | ) |
Reset the L1A counter, as incremented by the TS.
References TS_A24RegStruct::reset, TS_RESET_RESET_L1A_NUMBER, TSLOCK, and TSUNLOCK.
Referenced by tsIntEnable().
void tsResetIODelay | ( | ) |
Reset the IO Delay on the TS.
References TS_A24RegStruct::reset, TS_RESET_IODELAY, TSLOCK, and TSUNLOCK.
int tsResetMGT | ( | ) |
Reset the MGT.
References TS_A24RegStruct::reset, TS_RESET_MGT, TSLOCK, and TSUNLOCK.
int tsResetSlaveConfig | ( | ) |
Reset the configuration of TI Slaves on the TS. This routine removes all slaves and resets the fiber port busy's.
References TS_A24RegStruct::busy, TS_BUSY_HFBR_MASK, TSLOCK, tsSlaveMask, and TSUNLOCK.
int tsSetAdr32 | ( | unsigned int | a32base | ) |
Routine to set the A32 Base.
References TS_A24RegStruct::adr32, TS_ADR32_BASE_MASK, TS_VMECONTROL_A32, tsA32Base, tsA32Offset, TSLOCK, TSpd, TSUNLOCK, and TS_A24RegStruct::vmeControl.
int tsSetBlockBufferLevel | ( | 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 |
|
References TS_A24RegStruct::blockBuffer, TS_BLOCKBUFFER_BUFFERLEVEL_MASK, TSLOCK, and TSUNLOCK.
int tsSetBlockLevel | ( | int | blockLevel | ) |
Set the number of events per block.
blockLevel | Number of events per block |
References tsBroadcastNextBlockLevel().
int tsSetBlockLimit | ( | unsigned int | limit | ) |
Set the block number at which triggers will be disabled automatically.
References TS_A24RegStruct::blocklimit, TSLOCK, and TSUNLOCK.
int tsSetBusySource | ( | unsigned int | sourcemask, |
int | rFlag | ||
) |
Set the busy source with a given sourcemask sourcemask bits:
sourcemask |
|
rFlag | - decision to reset the global source flags
|
References TS_A24RegStruct::busy, TS_BUSY_P2_TRIGGER_INPUT, TS_BUSY_SOURCEMASK, TSLOCK, and TSUNLOCK.
Referenced by tsAddSlave().
int tsSetClockSource | ( | unsigned int | source | ) |
Set the clock to the specified source.
source |
|
References TS_A24RegStruct::clock, TS_A24RegStruct::reset, TS_CLOCK_EXTERNAL, TS_CLOCK_INTERNAL, TS_RESET_CLK125, TS_RESET_CLK250, TSLOCK, and TSUNLOCK.
int tsSetCrateID | ( | unsigned int | crateID | ) |
Set the crate ID.
References TS_A24RegStruct::boardID, TS_BOARDID_CRATEID_MASK, tsCrateID, TSLOCK, and TSUNLOCK.
int tsSetEventFormat | ( | int | format | ) |
Set the event format.
format | - integer number indicating the event format
|
References TS_A24RegStruct::dataFormat, TS_DATAFORMAT_HIGHERBITS_WORD, TS_DATAFORMAT_TIMING_WORD, TS_DATAFORMAT_WORDS_MASK, TSLOCK, and TSUNLOCK.
int tsSetFPDelay | ( | int | chan, |
int | delay | ||
) |
Set the input delay for teh specified front panel input (0-31)
chan | Front Panel Input Channel (0-31) |
delay | Delay in units of 4ns (0=8ns) |
References TS_A24RegStruct::fpDelay, TS_FPDELAY_MASK, TSLOCK, and TSUNLOCK.
int tsSetFPInput | ( | unsigned int | inputmask | ) |
Set which FP inputs are enabled.
inputmask | - MASK of which FP inputs (A-D) to enable |
References TS_A24RegStruct::fpInput, TSLOCK, and TSUNLOCK.
int tsSetFPInputReadout | ( | int | enable | ) |
Set whether or not the latched pattern of FP Inputs in block readout.
enable |
|
References TS_A24RegStruct::dataFormat, TS_DATAFORMAT_FPINPUT_READOUT, TSLOCK, and TSUNLOCK.
int tsSetGTPInput | ( | unsigned int | inputmask | ) |
Set which GTP inputs are enabled.
inputmask | - MASK of which GTP inputs to enable |
References TS_A24RegStruct::GTPtrigger, TSLOCK, and TSUNLOCK.
int tsSetGTPInputReadout | ( | int | enable | ) |
Set whether or not the latched pattern of GTP Inputs in block readout.
enable |
|
References TS_A24RegStruct::dataFormat, TS_DATAFORMAT_GTPINPUT_READOUT, TSLOCK, and TSUNLOCK.
int tsSetInputMix | ( | int | enable | ) |
Set option to mix FP and GTP inputs Effectively swaps the FP(16:1) -> GTP'(32:17) and GTP(32:17) -> FP'(16:1) in both trigger table and data pattern output.
enable | 0 - disable !1 - enable |
References TS_A24RegStruct::clock, TS_CLOCK_INPUT_MIX_CONTROL_MASK, TS_CLOCK_INPUT_MIX_ENABLE, TSLOCK, and TSUNLOCK.
int tsSetInstantBlockLevelChange | ( | int | enable | ) |
Set TS to instantly change blocklevel when broadcast is received.
enable | Option to enable or disable this feature
|
References TS_VMECONTROL_BLOCKLEVEL_UPDATE, TSLOCK, TSUNLOCK, and TS_A24RegStruct::vmeControl.
int tsSetOutputPort | ( | unsigned int | set1, |
unsigned int | set2, | ||
unsigned int | set3, | ||
unsigned int | set4, | ||
unsigned int | set5, | ||
unsigned int | set6 | ||
) |
Set (or unset) high level for the user controllable output ports on the front panel.
set1 | OUT #3 |
set2 | OUT #4 |
set3 | OUT #5 |
set4 | OUT #6 |
set5 | OUT #11 |
set6 | OUT #12 |
References TS_A24RegStruct::output, TS_OUTPUT_FP_1, TS_OUTPUT_FP_2, TS_OUTPUT_FP_3, TS_OUTPUT_FP_4, TS_OUTPUT_FP_5, TS_OUTPUT_FP_6, TSLOCK, and TSUNLOCK.
int tsSetPrescale | ( | int | prescale | ) |
Set the prescale factor for the external trigger.
prescale | Factor for prescale. Max {prescale} available is 65535 |
References TS_A24RegStruct::trig1Prescale, TSLOCK, and TSUNLOCK.
int tsSetRandomTrigger | ( | int | trigger, |
int | setting | ||
) |
Set the parameters of the random internal trigger.
trigger | - Trigger Selection
|
setting | - frequency prescale from 500MHz |
References TS_A24RegStruct::randomPulser, TS_RANDOMPULSER_TRIG1_ENABLE, TS_RANDOMPULSER_TRIG1_RATE_MASK, TS_RANDOMPULSER_TRIG2_ENABLE, TSLOCK, and TSUNLOCK.
void tsSetSyncDelayWidth | ( | 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. |
References TS_A24RegStruct::syncDelay, TS_A24RegStruct::syncWidth, TS_SYNCDELAY_MASK, TS_SYNCWIDTH_LONGWIDTH_ENABLE, TS_SYNCWIDTH_MASK, TSLOCK, and TSUNLOCK.
int tsSetSyncEventInterval | ( | 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) |
References TS_A24RegStruct::syncEventCtrl, TS_SYNCEVENTCTRL_NBLOCKS_MASK, TSLOCK, and TSUNLOCK.
int tsSetSyncResetType | ( | int | type | ) |
Set type of SyncReset to send to TI Slaves.
type | Sync Reset Type
|
int tsSetSyncSource | ( | unsigned int | sync | ) |
Set the Sync source mask.
sync | - MASK indicating the sync source
|
References TS_A24RegStruct::sync, TS_SYNC_SOURCEMASK, TSLOCK, and TSUNLOCK.
int tsSetTrigCoinWindow | ( | unsigned int | size | ) |
Set the trigger coincidence window.
size | Size of the coincidence window in units of 4ns |
References TS_A24RegStruct::triggerWindow, TS_TRIGGERWINDOW_COINC_MASK, TSLOCK, and TSUNLOCK.
int tsSetTriggerHoldoff | ( | 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 * |
References TS_A24RegStruct::triggerRule, TS_TRIGGERRULE_RULE1_MASK, TS_TRIGGERRULE_RULE2_MASK, TS_TRIGGERRULE_RULE3_MASK, TS_TRIGGERRULE_RULE4_MASK, TS_VMECONTROL_SLOWER_TRIGGER_RULES, TSLOCK, TSUNLOCK, and TS_A24RegStruct::vmeControl.
int tsSetTriggerHoldoffMin | ( | 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 * |
References TS_A24RegStruct::part1, PartitionStruct::triggerRuleMin, TS_TRIGGERRULEMIN_MIN2_EN, TS_TRIGGERRULEMIN_MIN2_MASK, TS_TRIGGERRULEMIN_MIN3_EN, TS_TRIGGERRULEMIN_MIN3_MASK, TS_TRIGGERRULEMIN_MIN4_EN, TS_TRIGGERRULEMIN_MIN4_MASK, TSLOCK, and TSUNLOCK.
int tsSetTriggerPrescale | ( | int | type, |
int | chan, | ||
unsigned int | prescale | ||
) |
Set the prescale for specified type and channel.
type | Type of input
|
chan | Channel of specified type |
References TS_A24RegStruct::fpInputPrescale, TS_A24RegStruct::GTPprescale, TSLOCK, and TSUNLOCK.
int tsSetTriggerPulse | ( | int | trigger, |
int | delay, | ||
int | width | ||
) |
Set the characteristics of a specified trigger.
trigger |
|
delay | delay in units of 4ns |
width | pulse width in units of 4ns |
References TS_A24RegStruct::trigDelay, TS_TRIGDELAY_TRIG1_DELAY_MASK, TS_TRIGDELAY_TRIG1_WIDTH_MASK, TS_TRIGDELAY_TRIG2_DELAY_MASK, TS_TRIGDELAY_TRIG2_WIDTH_MASK, TSLOCK, and TSUNLOCK.
int tsSetTriggerSource | ( | int | trig | ) |
Set the trigger source.
This routine will set a library variable to be set in the TS registers at a call to tsIntEnable.
trig | - integer indicating the trigger source
|
References TS_TRIGGER_ENABLE, TS_TRIGGER_LOOPBACK, TS_TRIGGER_PULSER, TS_TRIGGER_VME, and tsTriggerSource.
int tsSetTriggerSourceMask | ( | int | trigmask | ) |
Set trigger sources with specified trigmask.
This routine is for special use when tsSetTriggerSource(...) does not set all of the trigger sources that is required by the user.
trigmask | bits:
|
References TS_TRIGGER_SOURCEMASK, and tsTriggerSource.
int tsSetTrigInhibitWindow | ( | unsigned int | size | ) |
Set the trigger inhibit window.
size | Size of the inhibit window in units of 4ns |
References TS_A24RegStruct::triggerWindow, TS_TRIGGERWINDOW_INHIBIT_MASK, TSLOCK, and TSUNLOCK.
int tsSetTSIODrive | ( | int | enable | ) |
Enable/Disable the FPGA drive to the TSIO.
enable | Enable/Disable 0: Disable >0: Enable |
References TS_VMECONTROL_DRIVE_TSIO_EN, TSLOCK, TSUNLOCK, and TS_A24RegStruct::vmeControl.
void tsSlaveStatus | ( | int | pflag | ) |
Print a summary of all fiber port connections to potential TI Slaves.
pflag |
|
References TS_A24RegStruct::adr24, TS_A24RegStruct::blockStatus, TS_A24RegStruct::busy, TS_A24RegStruct::fiber, TS_A24RegStruct::hfbr_tiID, TS_A24RegStruct::master_tiID, TS_A24RegStruct::trigger, TS_BLOCKSTATUS_NBLOCKS_NEEDACK0, TS_BLOCKSTATUS_NBLOCKS_NEEDACK1, TS_BLOCKSTATUS_NBLOCKS_READY0, TS_BLOCKSTATUS_NBLOCKS_READY1, TS_BUSY_MONITOR_FIBER_BUSY, TS_BUSY_MONITOR_LOOPBACK, TS_ID_CRATEID_MASK, TS_ID_TRIGSRC_ENABLE_MASK, TS_TRIGGER_LOOPBACK, tsA24Offset, TSLOCK, tsSlaveMask, and TSUNLOCK.
int tsSoftTrig | ( | 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 |
|
References TS_A24RegStruct::fixedPulser1, TS_A24RegStruct::fixedPulser2, TS_FIXEDPULSER1_NTRIGGERS_MASK, TS_FIXEDPULSER1_PERIOD_MASK, TSLOCK, and TSUNLOCK.
void tsSyncReset | ( | int | blflag | ) |
Generate a Sync Reset signal.
blflag | Option to change block level, after SyncReset issued
|
References TS_A24RegStruct::syncCommand, and TSLOCK.
void tsSyncResetResync | ( | ) |
Generate a Sync Reset Resync signal.
This type of Sync Reset will NOT reset event numbers
References TS_A24RegStruct::syncCommand, and TSLOCK.
void tsTriggerReadyReset | ( | ) |
Reset the registers that record the triggers enabled status of TI Slaves.
References TS_A24RegStruct::syncCommand, TS_SYNCCOMMAND_TRIGGER_READY_RESET, TSLOCK, and TSUNLOCK.
int tsTriggerTableConfig | ( | unsigned int ** | itable | ) |
Configure trigger table to be loaded with a user provided array.
itable | Input Table (8x256 Array of 4byte words) |
void tsTriggerTableDefault | ( | ) |
Configure trigger table to be loaded with a predefined trigger table (mapping GTP and FP inputs to trigger types).
void tsTrigLinkDisable | ( | ) |
Disable the trigger link.
References TS_A24RegStruct::syncCommand, TS_SYNCCOMMAND_TRIGGERLINK_DISABLE, TSLOCK, and TSUNLOCK.
void tsTrigLinkReset | ( | ) |
Reset the trigger link.
References TS_A24RegStruct::syncCommand, TS_SYNCCOMMAND_TRIGGERLINK_DISABLE, TS_SYNCCOMMAND_TRIGGERLINK_ENABLE, TSLOCK, and TSUNLOCK.
void tsUserSyncReset | ( | int | enable | ) |
Control level of the SyncReset signal.
enable |
|
References TS_A24RegStruct::syncCommand, TS_SYNCCOMMAND_SYNCRESET_HIGH, TS_SYNCCOMMAND_SYNCRESET_LOW, TSLOCK, and TSUNLOCK.