JLab fADC125 Library  1.2.1
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
Deprecated - To be removed

Functions

int fa125SetByteSwap (int id, int enable)
 Enable/Disable onboard byteswapping. More...
 
int fa125SetMulThreshold (int id, int dacData)
 Set the multiplicity sum for an internal trigger. More...
 
int fa125Clear (int id)
 Clear used with serial acquisition buffers. Deprecated as this is no longer the way to readout data from the module. More...
 
int fa125ReadEvent (int id, volatile UINT32 *data, int nwrds, unsigned int rflag)
 General Data readout routine. Deprecated. Replaced with fa125ReadBlock. More...
 

Detailed Description

Function Documentation

int fa125Clear ( int  id)

Clear used with serial acquisition buffers. Deprecated as this is no longer the way to readout data from the module.

Parameters
idSlot number
Returns
OK if successful, otherwise ERROR.

References fa125_a24_proc::csr, FA125_PROC_CSR_CLEAR, fa125ID, FA125LOCK, fa125p, FA125UNLOCK, and fa125_a24::proc.

Referenced by fa125Init(), and fa125ReadEvent().

int fa125ReadEvent ( int  id,
volatile UINT32 *  data,
int  nwrds,
unsigned int  rflag 
)

General Data readout routine. Deprecated. Replaced with fa125ReadBlock.

Parameters
idSlot number of module to read
datalocal memory address to place data
nwrdsMaximum number of words to transfer
rflag- Readout Flag Bits 0-3: Readout type Bits 4-31: Specific to readout type 0 - programmed I/O from the specified board Bits 4-31: Number of samples to obtain from each channel If input number of samples is odd, it will be incremented by 1.
Returns
Number of 32bit words readout if successful, otherwise ERROR.

References FA125_DATA_END, FA125_DATA_FORMAT0, FA125_PAD_WORD, fa125Clear(), fa125ID, FA125LOCK, fa125p, FA125UNLOCK, and fa125_a24::fe.

int fa125SetByteSwap ( int  id,
int  enable 
)

Enable/Disable onboard byteswapping.

Parameters
idSlot number
enable
  • 0: Disable
  • 1: Enable
Returns
OK if successful, otherwise ERROR.

References fa125ID, FA125LOCK, fa125p, FA125UNLOCK, fa125_a24::main, and fa125_a24_main::swapctl.

int fa125SetMulThreshold ( int  id,
int  dacData 
)

Set the multiplicity sum for an internal trigger.

Parameters
idSlot number
dacDataMultiplicity sum
Returns
OK if successful, otherwise ERROR.

References fa125ID, and fa125p.