JLab fADC125 Library  1.2.1
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
Status

Functions

int fa125Status (int id, int pflag)
 Print Status of fADC125 to standard out. More...
 
void fa125GStatus (int pflag)
 Print a summary of all initialized fADC1250s. More...
 
unsigned short fa125ReadOffset (int id, int chan)
 Readback the DAC offset set for a specific fADC125 Channel. More...
 
int fa125ReadOffsetToFile (int id, char *filename)
 Readback the DAC offset set for a specific fADC125 Channel into a specified file. More...
 
int fa125PrintThreshold (int id)
 Print to standarad out the set readout threshold for all fADC125 Channels in the specified module. More...
 
int fa125PrintTemps (int id)
 Print the temperature of the main board and mezzanine to standard out. More...
 
int fa125GetTriggerSource (int id)
 Returns the trigger source for the specified fADC125. More...
 
int fa125GetTokenMask ()
 Return the slot mask of modules with the token. More...
 
unsigned int fa125ScanMask ()
 Return the vme slot mask of all initialized fADC125s. More...
 
void fa125DecodeData (unsigned int data)
 Decode a data word from an fADC125 and print to standard out. More...
 

Detailed Description

Function Documentation

void fa125DecodeData ( unsigned int  data)

Decode a data word from an fADC125 and print to standard out.

Parameters
data32bit fADC125 data word

References fadc_data.

int fa125GetTokenMask ( )

Return the slot mask of modules with the token.

Returns
Token Slot Mask if successful, otherwise ERROR.

References fa125_a24_main::blockCSR, FA125_BLOCKCSR_HAS_TOKEN, fa125p, fa125Slot(), fa125_a24::main, and nfa125.

int fa125GetTriggerSource ( int  id)

Returns the trigger source for the specified fADC125.

Parameters
idSlot number
Returns
  • 0 P0 (VXS)
  • 1 Software
  • 2 Internal Sum
  • 3 P2
  • ERROR otherwise

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

int fa125PrintTemps ( int  id)

Print the temperature of the main board and mezzanine to standard out.

Parameters
idSlot number
Returns
OK if successful, otherwise ERROR.

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

int fa125PrintThreshold ( int  id)

Print to standarad out the set readout threshold for all fADC125 Channels in the specified module.

Parameters
idSlot number
Returns
OK if successful, otherwise ERROR.

References FA125_MAX_ADC_CHANNELS, fa125ID, FA125LOCK, fa125p, FA125UNLOCK, and fa125_a24::fe.

unsigned short fa125ReadOffset ( int  id,
int  chan 
)

Readback the DAC offset set for a specific fADC125 Channel.

Parameters
idSlot number
chanChannel Number
Returns
DAC offset if successful, otherwise ERROR.

References fa125ID, and fa125p.

int fa125ReadOffsetToFile ( int  id,
char *  filename 
)

Readback the DAC offset set for a specific fADC125 Channel into a specified file.

Parameters
idSlot number
filenameFilename to store all DAC offset
Returns
DAC offset if successful, otherwise ERROR.

References fa125ID, and fa125p.

unsigned int fa125ScanMask ( )

Return the vme slot mask of all initialized fADC125s.

Returns
VME Slot mask, otherwise ERROR.

References fa125ID, and nfa125.

int fa125Status ( int  id,
int  pflag 
)