JLab Pipeline TI Library  3v6.1
Interrupt/Polling

Functions

int tiIntConnect (unsigned int vector, VOIDFUNCPTR routine, unsigned int arg)
 Connect a user routine to the TI Interrupt or latched trigger, if polling. More...
 
int tiIntDisconnect ()
 Disable interrupts or kill the polling service thread. More...
 
int tiAckConnect (VOIDFUNCPTR routine, unsigned int arg)
 Connect a user routine to be executed instead of the default TI interrupt/trigger latching acknowledge prescription. More...
 
void tiIntAck ()
 Acknowledge an interrupt or latched trigger. This "should" effectively release the "Busy" state of the TI. More...
 
int tiIntEnable (int iflag)
 Enable interrupts or latching triggers (depending on set TI mode) More...
 
void tiIntDisable ()
 Disable interrupts or latching triggers. More...
 

Detailed Description

Function Documentation

◆ tiAckConnect()

int tiAckConnect ( VOIDFUNCPTR  routine,
unsigned int  arg 
)

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

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

◆ tiIntAck()

void tiIntAck ( )

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

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

◆ tiIntConnect()

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

Connect a user routine to the TI 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

◆ tiIntDisable()

void tiIntDisable ( )

◆ tiIntDisconnect()

int tiIntDisconnect ( )

Disable interrupts or kill the polling service thread.

Returns
OK if successful, otherwise ERROR

◆ tiIntEnable()

int tiIntEnable ( int  iflag)

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

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

References tiAckCount, tiIntCount, and TILOCK.