JLab Pipeline TI Library  3v6.1
Master Status

Functions

int tiGetTriggerLock ()
 Get the current setting of the trigger lock mode. More...
 
void tiPrintTriggerTable (int showbits)
 Print trigger table to standard out. More...
 
int tiGetTriggerWindow ()
 Get the window of the input trigger coincidence window. More...
 
int tiGetTriggerInhibitWindow ()
 Get the width of the input trigger inhibit window. More...
 
int tiGetTrig21Delay ()
 Get the delay of Trig1 relative to Trig2 when trigger source is 11. More...
 
int tiGetTriggerLatchOnLevel ()
 Get the trigger latch pattern readout in the data stream to include the Level of the input trigger OR the transition to Hi. More...
 
int tiGetSyncEventInterval ()
 Get the SyncEvent Block interval. More...
 
int tiSyncResetRequestStatus (int pflag)
 Status of SyncReset Request received bits. More...
 
int tiGetConnectedFiberMask ()
 Returns the mask of fiber channels that report a "connected" status from a TI. More...
 
int tiGetTrigSrcEnabledFiberMask ()
 Returns the mask of fiber channels that report a "connected" status from a TI has it's trigger source enabled. More...
 

Detailed Description

Function Documentation

◆ tiGetConnectedFiberMask()

int tiGetConnectedFiberMask ( )

Returns the mask of fiber channels that report a "connected" status from a TI.

Returns
Fiber Connected Mask

References TI_A24RegStruct::fiber, TI_FIBER_CONNECTED_MASK, TILOCK, tiMaster, and TIUNLOCK.

◆ tiGetSyncEventInterval()

int tiGetSyncEventInterval ( )

Get the SyncEvent Block interval.

Returns
Block interval of the SyncEvent

References TI_A24RegStruct::syncEventCtrl, TI_SYNCEVENTCTRL_NBLOCKS_MASK, TILOCK, tiMaster, and TIUNLOCK.

◆ tiGetTrig21Delay()

int tiGetTrig21Delay ( )

Get the delay of Trig1 relative to Trig2 when trigger source is 11.

Returns
Latency in steps of 4 nanoseconds with an offset of ~2.6 microseconds, otherwise ERROR

References TI_TRIGGERWINDOW_TRIG21_MASK, TILOCK, TIUNLOCK, and TI_A24RegStruct::triggerWindow.

◆ tiGetTriggerInhibitWindow()

int tiGetTriggerInhibitWindow ( )

Get the width of the input trigger inhibit window.

Returns
Width of the input inhibit window (units of 4ns), otherwise ERROR

References TI_TRIGGERWINDOW_INHIBIT_MASK, TILOCK, TIUNLOCK, and TI_A24RegStruct::triggerWindow.

◆ tiGetTriggerLatchOnLevel()

int tiGetTriggerLatchOnLevel ( )

Get the trigger latch pattern readout in the data stream to include the Level of the input trigger OR the transition to Hi.

Returns
1 if enabled, 0 if disabled, otherwise ERROR

References TI_TRIGGERWINDOW_LEVEL_LATCH, TILOCK, TIUNLOCK, and TI_A24RegStruct::triggerWindow.

◆ tiGetTriggerLock()

int tiGetTriggerLock ( )

Get the current setting of the trigger lock mode.

Returns
1 if enabled, 0 if disabled, ERROR otherwise.

References TI_A24RegStruct::busy, TI_BUSY_TRIGGER_LOCK, TILOCK, tiMaster, and TIUNLOCK.

◆ tiGetTriggerWindow()

int tiGetTriggerWindow ( )

Get the window of the input trigger coincidence window.

Returns
Width of the input coincidence window (units of 4ns), otherwise ERROR

References TI_TRIGGERWINDOW_COINC_MASK, TILOCK, TIUNLOCK, and TI_A24RegStruct::triggerWindow.

◆ tiGetTrigSrcEnabledFiberMask()

int tiGetTrigSrcEnabledFiberMask ( )

Returns the mask of fiber channels that report a "connected" status from a TI has it's trigger source enabled.

Returns
Trigger Source Enabled Mask

References TI_A24RegStruct::fiber, TI_FIBER_TRIGSRC_ENABLED_MASK, TILOCK, tiMaster, and TIUNLOCK.

◆ tiPrintTriggerTable()

void tiPrintTriggerTable ( int  showbits)

Print trigger table to standard out.

Parameters
showbitsShow trigger bit pattern, instead of hex

◆ tiSyncResetRequestStatus()

int tiSyncResetRequestStatus ( int  pflag)

Status of SyncReset Request received bits.

Parameters
pflagPrint to standard out if not 0
Returns
Port mask of SyncReset Request received (port 1 = bit 0, TI-Master = bit 8), otherwise ERROR;

References TI_A24RegStruct::rocEnable, TI_ROCENABLE_SYNCRESET_REQUEST_MONITOR_MASK, TILOCK, tiMaster, and TIUNLOCK.

Referenced by tiStatus().