JLab Pipeline TI Library
3v6.1
|
Modules | |
Master Data Readout | |
Functions | |
int | tiReadBlock (volatile unsigned int *data, int nwrds, int rflag) |
Read a block of events from the TI. More... | |
int | tiReadTriggerBlock (volatile unsigned int *data) |
Read a block from the TI and form it into a CODA Trigger Bank. More... | |
unsigned int | tiBReady () |
Returns the number of Blocks available for readout. More... | |
int | tiGetSyncEventFlag () |
Return the value of the Synchronization flag, obtained from tiBReady. i.e. Return the value of the SyncFlag for the current readout block. More... | |
int | tiGetSyncEventReceived () |
Return the value of whether or not the sync event has been received. More... | |
int | tiGetReadoutEvents () |
Return the value of the number of readout events accepted. More... | |
void | tiResetBlockReadout () |
Decrement the hardware counter for blocks available, effectively simulating a readout from the data fifo. More... | |
int | tiSyncResetRequest () |
Sync Reset Request is sent to TI-Master or TS. More... | |
unsigned int tiBReady | ( | ) |
Returns the number of Blocks available for readout.
References TI_A24RegStruct::blockBuffer, TI_BLOCKBUFFER_BLOCKS_READY_MASK, TI_BLOCKBUFFER_BREADY_INT_MASK, and TILOCK.
int tiGetReadoutEvents | ( | ) |
Return the value of the number of readout events accepted.
References TILOCK.
int tiGetSyncEventFlag | ( | ) |
int tiGetSyncEventReceived | ( | ) |
Return the value of whether or not the sync event has been received.
References TILOCK.
int tiReadBlock | ( | volatile unsigned int * | data, |
int | nwrds, | ||
int | rflag | ||
) |
Read a block of events from the TI.
data | - local memory address to place data |
nwrds | - Max number of words to transfer |
rflag | - Readout Flag
|
Referenced by tiReadTriggerBlock().
int tiReadTriggerBlock | ( | volatile unsigned int * | data | ) |
Read a block from the TI and form it into a CODA Trigger Bank.
data | - local memory address to place data |
References TI_BLOCK_HEADER_WORD_TYPE, TI_BLOCK_TRAILER_WORD_TYPE, TI_DATA_TYPE_DEFINE_MASK, TI_WORD_TYPE_MASK, tiBlockLevel, and tiReadBlock().
void tiResetBlockReadout | ( | ) |
Decrement the hardware counter for blocks available, effectively simulating a readout from the data fifo.
References TI_A24RegStruct::reset, TI_RESET_BLOCK_READOUT, TILOCK, and TIUNLOCK.
int tiSyncResetRequest | ( | ) |
Sync Reset Request is sent to TI-Master or TS.
This option is available for multicrate systems when the synchronization is suspect. It should be exercised only during "sync events" where the requested sync reset will immediately follow all ROCs concluding their readout.
References TILOCK.