JLab VME Pipeline TI Library  3v11.3
JLab VME Pipeline TI library
 All Classes Functions Variables Groups
Functions
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.
 

Detailed Description

Function Documentation

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
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.

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
int tiIntDisconnect ( )

Disable interrupts or kill the polling service thread.

Returns
OK if successful, otherwise ERROR
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