JLab fADC125 Library
1.2.1
|
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... | |
void fa125DecodeData | ( | unsigned int | data | ) |
Decode a data word from an fADC125 and print to standard out.
data | 32bit fADC125 data word |
References fadc_data.
int fa125GetTokenMask | ( | ) |
Return the slot mask of modules with the token.
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.
id | Slot number |
References fa125ID, FA125LOCK, fa125p, FA125UNLOCK, fa125_a24::proc, and fa125_a24_proc::trigsrc.
void fa125GStatus | ( | int | pflag | ) |
Print a summary of all initialized fADC1250s.
pflag | Not used |
References fa125_a24_main::adr32, fa125_a24_main::adr_mb, fa125_a24_main::block_count, fa125_a24_main::blockCSR, fa125_a24_proc::blocklevel, fa125_a24_main::clock, fa125_a24_fe::config1, fa125_a24_main::ctrl1, fa125_a24_proc::ctrl2, FA125_ADR32_BASE_MASK, FA125_ADR32_ENABLE, FA125_ADRMB_ENABLE, FA125_ADRMB_MAX_MASK, FA125_ADRMB_MIN_MASK, FA125_BLOCKCOUNT_MASK, FA125_BLOCKCSR_BLOCK_READY, FA125_CLOCK_INTERNAL, FA125_CLOCK_INTERNAL_ENABLE, FA125_CLOCK_MASK, FA125_CLOCK_P0, FA125_CLOCK_P2, FA125_CTRL1_ENABLE_BERR, FA125_CTRL1_ENABLE_MULTIBLOCK, FA125_CTRL1_FIRST_BOARD, FA125_CTRL1_LAST_BOARD, FA125_FE_CONFIG1_ENABLE, FA125_FE_CONFIG1_MODE_MASK, FA125_FE_CONFIG1_NPULSES_MASK, FA125_FE_CONFIG1_PLAYBACK_ENABLE, FA125_PROC_BLOCKLEVEL_MASK, FA125_PROC_CTRL2_SYNCRESET_P0, FA125_PROC_CTRL2_SYNCRESET_SOURCE_MASK, FA125_PROC_CTRL2_SYNCRESET_VME, FA125_TRIGSRC_TRIGGER_INTERNAL_SUM, FA125_TRIGSRC_TRIGGER_MASK, FA125_TRIGSRC_TRIGGER_P0, FA125_TRIGSRC_TRIGGER_P2, fa125A24Offset, FA125LOCK, fa125p, fa125Slot(), FA125UNLOCK, fa125_a24::fe, fa125_a24::main, nfa125, fa125_a24_fe::nsa, fa125_a24_fe::nsb, fa125_a24_fe::pl, fa125_a24::proc, fa125_a24_fe::ptw, fa125_a24_main::pwrctl, fa125_a24_proc::sync_count, fa125_a24_proc::trig2_count, fa125_a24_proc::trig_count, fa125_a24_proc::trigsrc, fa125_a24_main::version, fa125_a24_fe::version, and fa125_a24_proc::version.
int fa125PrintTemps | ( | int | id | ) |
Print the temperature of the main board and mezzanine to standard out.
id | Slot number |
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.
id | Slot number |
References FA125_MAX_ADC_CHANNELS, fa125ID, FA125LOCK, fa125p, FA125UNLOCK, and fa125_a24::fe.
unsigned short fa125ReadOffset | ( | int | id, |
int | chan | ||
) |
int fa125ReadOffsetToFile | ( | int | id, |
char * | filename | ||
) |
unsigned int fa125ScanMask | ( | ) |
int fa125Status | ( | int | id, |
int | pflag | ||
) |
Print Status of fADC125 to standard out.
id | Slot Number |
pflag | Print option flag
|
References fa125_a24_main::adr32, fa125_a24_main::adr_mb, fa125_a24_main::block_count, fa125_a24_main::blockCSR, fa125_a24_main::clock, fa125_a24_fe::config1, fa125_a24_proc::csr, fa125_a24_main::ctrl1, fa125_a24_proc::ctrl2, fa125_a24_proc::ev_count, FA125_ADR32_BASE_MASK, FA125_ADR32_ENABLE, FA125_ADRMB_MAX_MASK, FA125_ADRMB_MIN_MASK, FA125_CLOCK_INTERNAL, FA125_CLOCK_P0, FA125_CLOCK_P2, FA125_CTRL1_ENABLE_BERR, FA125_CTRL1_ENABLE_MULTIBLOCK, FA125_CTRL1_FIRST_BOARD, FA125_CTRL1_LAST_BOARD, FA125_FE_CONFIG1_ENABLE, FA125_FE_CONFIG1_MODE_MASK, FA125_FE_CONFIG1_NPULSES_MASK, FA125_FE_CONFIG1_PLAYBACK_ENABLE, fa125_mode_names, FA125_PROC_CTRL2_SYNCRESET_P0, FA125_PROC_CTRL2_SYNCRESET_SOURCE_MASK, FA125_PROC_CTRL2_SYNCRESET_VME, FA125_STATUS_SHOWREGS, FA125_TRIGSRC_TRIGGER_INTERNAL_SUM, FA125_TRIGSRC_TRIGGER_MASK, FA125_TRIGSRC_TRIGGER_P0, FA125_TRIGSRC_TRIGGER_P2, fa125A24Offset, fa125ID, FA125LOCK, fa125p, fa125pd, FA125UNLOCK, fa125_a24_main::id, fa125_a24_fe::nsa, fa125_a24_fe::nsb, fa125_a24_fe::pl, fa125_a24_fe::ptw, fa125_a24_main::pwrctl, fa125_a24_main::serial, fa125_a24_main::slot_ga, fa125_a24_main::swapctl, fa125_a24_fe::test, fa125_a24_proc::trig_count, fa125_a24_proc::trigsrc, fa125_a24_main::version, fa125_a24_fe::version, and fa125_a24_proc::version.