JLab Pipeline TS Library  3v7.1
Interrupt/Polling

Functions

int tsIntConnect (unsigned int vector, VOIDFUNCPTR routine, unsigned int arg)
 Connect a user routine to the TS Interrupt or latched trigger, if polling. More...
 
int tsIntDisconnect ()
 Disable interrupts or kill the polling service thread. More...
 
int tsAckConnect (VOIDFUNCPTR routine, unsigned int arg)
 Connect a user routine to be executed instead of the default TS interrupt/trigger latching acknowledge prescription. More...
 
void tsIntAck ()
 Acknowledge an interrupt or latched trigger. This "should" effectively release the "Busy" state of the TS. More...
 
int tsIntEnable (int iflag)
 Enable interrupts or latching triggers (depending on set TS mode) More...
 
void tsIntDisable ()
 Disable interrupts or latching triggers. More...
 

Detailed Description

Function Documentation

◆ tsAckConnect()

int tsAckConnect ( VOIDFUNCPTR  routine,
unsigned int  arg 
)

Connect a user routine to be executed instead of the default TS interrupt/trigger latching acknowledge prescription.

Parameters
routineRoutine to call
argargument to pass to routine
Returns
OK if successful, otherwise ERROR

◆ tsIntAck()

void tsIntAck ( )

Acknowledge an interrupt or latched trigger. This "should" effectively release the "Busy" state of the TS.

Execute a user defined routine, if it is defined. Otherwise, use a default prescription.

◆ tsIntConnect()

int tsIntConnect ( unsigned int  vector,
VOIDFUNCPTR  routine,
unsigned int  arg 
)

Connect a user routine to the TS Interrupt or latched trigger, if polling.

Parameters
vectorVME Interrupt Vector
routineRoutine to call if block is available
argargument to pass to routine
Returns
OK if successful, otherwise ERROR

◆ tsIntDisable()

void tsIntDisable ( )

Disable interrupts or latching triggers.

References TS_A24RegStruct::intsetup, TS_INTSETUP_ENABLE, tsDisableTriggerSource(), and TSLOCK.

◆ tsIntDisconnect()

int tsIntDisconnect ( )

Disable interrupts or kill the polling service thread.

Returns
OK if successful, otherwise ERROR

◆ tsIntEnable()

int tsIntEnable ( int  iflag)

Enable interrupts or latching triggers (depending on set TS mode)

Parameters
iflagif = 1, trigger counter will be reset
Returns
OK if successful, otherwise ERROR

References tsAckCount, tsIntCount, TSLOCK, and tsResetEventCounter().