|
JLab Pipeline TS Library
3v7.1
|
Functions | |
| int | tsPartInit (int pID, unsigned int tAddr, unsigned int mode, int iFlag) |
| Initialize a TS partition. More... | |
| int | tsPartSetBusySource (int busysrc) |
| Set the busy source for this partition. More... | |
| int | tsPartSetBlockBufferLevel (unsigned int bufferlevel) |
| Set up the Block Buffer Level. More... | |
| int | tsPartSetTDInput (unsigned int tdinput) |
| Select the input that has the TD Busy. More... | |
| int | tsPartSetFPInput (unsigned short input1, unsigned short input2, unsigned short input3) |
| Set the FP Inputs for this partition. More... | |
| int | tsPartSetGTPInput (unsigned short input1, unsigned short input2, unsigned short input3, unsigned short input4, unsigned short input5) |
| Set the GTP Inputs for this partition. More... | |
| int | tsPartLoadTriggerTable () |
| Load the trigger table for current partition. More... | |
| int | tsPartReadBlock (volatile unsigned int *data, int nwrds) |
| Read a block of events from the current TS partition. More... | |
| unsigned int | tsPartBReady () |
| Returns the number of Blocks available for readout for this partition. More... | |
| void | tsPartIntAck () |
| Acknowledge an interrupt or latched trigger for this partition. More... | |
| int | tsPartIntEnable (int iflag) |
| Enable interrupts or latching triggers for this partition. More... | |
| void | tsPartIntDisable () |
| Disable interrupts or latching triggers for this partition. More... | |
| int | tsPartIntConnect (VOIDFUNCPTR routine, unsigned int arg) |
| Connect a user routine to the TS Interrupt or latched trigger, if polling. More... | |
| int | tsPartIntDisconnect () |
| Disable interrupts or kill the polling service thread. More... | |
| unsigned int tsPartBReady | ( | ) |
Returns the number of Blocks available for readout for this partition.
| int tsPartInit | ( | int | pID, |
| unsigned int | tAddr, | ||
| unsigned int | mode, | ||
| int | iFlag | ||
| ) |
Initialize a TS partition.
| pID | The partition identification number (1-4) |
| tAddr |
|
| mode | What mode to signal data ready from the partition
|
| iFlag | Initialization bit mask
|
References TS_A24RegStruct::boardID, MAX_VME_SLOTS, TS_BOARDID_GEOADR_MASK, TS_BOARDID_TYPE_MASK, TS_BOARDID_TYPE_TS, TS_FIRMWARE_ID_MASK, TS_FIRMWARE_MAJOR_VERSION_MASK, TS_FIRMWARE_TYPE_MASK, TS_FIRWMARE_MINOR_VERSION_MASK, tsA24Offset, and tsGetFirmwareVersion().
| void tsPartIntAck | ( | ) |
Acknowledge an interrupt or latched trigger for this partition.
| int tsPartIntConnect | ( | VOIDFUNCPTR | routine, |
| unsigned int | arg | ||
| ) |
Connect a user routine to the TS Interrupt or latched trigger, if polling.
| routine | Routine to call if block is available |
| arg | argument to pass to routine |
| void tsPartIntDisable | ( | ) |
Disable interrupts or latching triggers for this partition.
| int tsPartIntDisconnect | ( | ) |
Disable interrupts or kill the polling service thread.
| int tsPartIntEnable | ( | int | iflag | ) |
Enable interrupts or latching triggers for this partition.
| iflag | if = 1, trigger counter will be reset |
| int tsPartLoadTriggerTable | ( | ) |
Load the trigger table for current partition.
| int tsPartReadBlock | ( | volatile unsigned int * | data, |
| int | nwrds | ||
| ) |
Read a block of events from the current TS partition.
| data | - local memory address to place data |
| nwrds | - Max number of words to transfer |
| int tsPartSetBlockBufferLevel | ( | unsigned int | bufferlevel | ) |
Set up the Block Buffer Level.
| bufferlevel | How many unacknowledged blocks in the system before busy |
| int tsPartSetBusySource | ( | int | busysrc | ) |
Set the busy source for this partition.
| busysrc |
|
| int tsPartSetFPInput | ( | unsigned short | input1, |
| unsigned short | input2, | ||
| unsigned short | input3 | ||
| ) |
Set the FP Inputs for this partition.
| input1 | |
| input2 | |
| input3 |
| int tsPartSetGTPInput | ( | unsigned short | input1, |
| unsigned short | input2, | ||
| unsigned short | input3, | ||
| unsigned short | input4, | ||
| unsigned short | input5 | ||
| ) |
Set the GTP Inputs for this partition.
| input1 | |
| input2 | |
| input3 | |
| input4 | |
| input5 |
| int tsPartSetTDInput | ( | unsigned int | tdinput | ) |
Select the input that has the TD Busy.
| tdinput | Input selection |