|
| int | ConfigureProbe (int handle) |
| |
| char * | FERS_GetLibReleaseNum () |
| | Get the release number of the library.
|
| |
| char * | FERS_GetLibReleaseDate () |
| | Get the release date of the library.
|
| |
| int | FERS_LibMsg (char *fmt,...) |
| | Write on FERSlib log file.
|
| |
| int | FERS_GetLastError (char description[1024]) |
| | Get the last message error of library.
|
| |
| void | _setLastLocalError (const char *description,...) |
| |
| int | FERS_OpenRawDataFile (int *handle, int RunNum, int NumBrd) |
| | Open raw data file, to be done before starting the run.
|
| |
| int | FERS_CloseRawDataFile (int *handle, int NumBrd) |
| | Close raw data file after run stops.
|
| |
| float | FERS_GetClockPeriod (int handle) |
| | Get the clock of the FERS board.
|
| |
| int | FERS_OpenDevice (char *path, int *handle) |
| | Open a device (either FERS board, concentrator or offline)
|
| |
| int | FERS_IsOpen (char *path) |
| | Check if a device is already opened.
|
| |
| int | FERS_IsOpenByHandle (int handle, char *path) |
| | Check if a device is already opened, with handle.
|
| |
| int | FERS_CloseDevice (int handle) |
| | Cloase a device (either FERS board or concentrator)
|
| |
| int | FERS_TotalAllocatedMemory () |
| | Return the total size of the allocated buffers for the readout of all boards.
|
| |
| int | FERS_Reset_IPaddress (int handle) |
| | Restore the factory IP address (192.168.50.3) of the device. The board must be connected through the USB port.
|
| |
| int | FERS_Get_CncPath (char *dev_path, char *cnc_path) |
| | Find the path of the concentrator to which a device is connected.
|
| |
| int | FERS_InitTDLchains (int handle, float DelayAdjust[8][16]) |
| | Send a sync broadcast command via TDL.
|
| |
| bool | FERS_TDLchainsInitialized (int handle) |
| | Check if TDL chains are initialized.
|
| |
| uint16_t | FERS_GetNumBrdConnected () |
| | Get the number of boards connected.
|
| |
| int | FERS_ReadRegister (int handle, uint32_t address, uint32_t *data) |
| | Read a register of a FERS board.
|
| |
| int | FERS_WriteRegister (int handle, uint32_t address, uint32_t data) |
| | Write a register of a FERS board.
|
| |
| int | FERS_WriteRegisterSlice (int handle, uint32_t address, uint32_t start_bit, uint32_t stop_bit, uint32_t data) |
| | Write a slice of a register of a FERS board.
|
| |
| int | FERS_SendCommand (int handle, uint32_t cmd) |
| |
Send a command to the board
|
| |
| int | FERS_SendCommandBroadcast (int *handle, uint32_t cmd, uint32_t delay) |
| | Send a broadcast command to multiple boards connected to a concentrator.
|
| |
| int | FERS_I2C_ReadRegister (int handle, uint32_t i2c_dev_addr, uint32_t reg_addr, uint32_t *reg_data) |
| | Read a register of an I2C register (picoTDC, PLL, ...)
|
| |
| int | FERS_I2C_WriteRegister (int handle, uint32_t i2c_dev_addr, uint32_t reg_addr, uint32_t reg_data) |
| | Write a register of an I2C register (picoTDC, PLL, ...)
|
| |
| int | FERS_I2C_WriteRegisterSlice (int handle, uint32_t i2c_dev_addr, uint32_t address, uint32_t start_bit, uint32_t stop_bit, uint32_t data) |
| | Write a slice of a register of an I2C device.
|
| |
| int | FERS_ReadFlashPage (int handle, int pagenum, int size, uint8_t *data) |
| | Read a page from the flash memory.
|
| |
| int | FERS_WriteFlashPage (int handle, int pagenum, int size, uint8_t *data) |
| | Write a page of the flash memory.
|
| |
| int | FERS_XROC_WriteRegister (int handle, int page_addr, int sub_addr, uint8_t data) |
| | Write a register of the XROC ASIC chip via I2C.
|
| |
| int | FERS_XROC_ReadRegister (int handle, int page_addr, int sub_addr, uint8_t *data) |
| | Read a register of the XROC ASIC chip via I2C.
|
| |
| int | FERS_XROC_WriteRegisterSilce (int handle, int page_addr, int sub_addr, uint32_t start_bit, uint32_t stop_bit, uint8_t data) |
| | Write a register slice of the XROC ASIC chip via I2C.
|
| |
| int | FERS_ReadConcentratorInfo (int handle, FERS_CncInfo_t *cinfo) |
| | Read concentrator info from the device.
|
| |
| int | FERS_WriteBoardInfo (int handle, FERS_BoardInfo_t binfo) |
| | Write Board info into the relevant flash memory page.
|
| |
| int | FERS_WritePedestals (int handle, uint16_t *PedLG, uint16_t *PedHG, uint16_t *dco) |
| | Write Pedestal calibration.
|
| |
| int | FERS_ReadPedestalsFromFlash (int handle, char *date, uint16_t *PedLG, uint16_t *PedHG, uint16_t *dco) |
| | Read pedestal calibration and DC offset.
|
| |
| int | FERS_PedestalBackupPage (int handle, int EnBckPage) |
| | Switch to pedestal backup page.
|
| |
| int | FERS_SetCommonPedestal (int handle, uint16_t Pedestal) |
| | Set a common pedestal (applied to all channels after pedestal calibration)
|
| |
| int | FERS_EnablePedestalCalibration (int handle, int enable) |
| | Enable / Disabled pedestal calibration.
|
| |
| int | FERS_GetChannelPedestalBeforeCalib (int handle, int ch, uint16_t *PedLG, uint16_t *PedHG) |
| |
| int | FERS_SetEnergyBitsRange (uint16_t EnergyRange) |
| |
| int | FERS_GetBoardInfo (int handle, FERS_BoardInfo_t *BrdInfo) |
| | Get board info saved into the library structure.
|
| |
| int | FERS_GetCncInfo (int handle, FERS_CncInfo_t *BrdInfo) |
| | Get concentrator info saved into the library structure.
|
| |
| uint32_t | FERS_pid (int handle) |
| | Get the board PID.
|
| |
| uint16_t | FERS_Code (int handle) |
| | Get the code of the FERS board.
|
| |
| char * | FERS_ModelName (int handle) |
| | Get the model name of the FERS board.
|
| |
| uint32_t | FERS_FPGA_FWrev (int handle) |
| | Get the FPGA firmware revision of the FERS board.
|
| |
| uint32_t | FERS_FPGA_FW_MajorRev (int handle) |
| | Get the major revision of the FPGA firmware.
|
| |
| uint32_t | FERS_FPGA_FW_MinorRev (int handle) |
| | Get the minor revision of the FPGA firmware.
|
| |
| uint32_t | FERS_uC_FWrev (int handle) |
| | Get them microcontroller firmware revision.
|
| |
| uint16_t | FERS_NumChannels (int handle) |
| | Get the number of channels of the FERS board.
|
| |
| uint8_t | FERS_PCB_Rev (int handle) |
| | Get the PCB revision of the FERS board.
|
| |
| bool | FERS_IsXROC (int handle) |
| | Check if the board mounts an XROC ASIC chip.
|
| |
| int | FERS_DumpBoardRegister (int handle) |
| | Dump the board register information to a file.
|
| |
| int | FERS_DumpCfgSaved (int handle) |
| | Dump the saved configuration.
|
| |
| int | FERS_Get_TDC0_Temp (int handle, float *temp) |
| | Get the temperature from picoTDC0 (on the board)
|
| |
| int | FERS_Get_TDC1_Temp (int handle, float *temp) |
| | Get the temperature from picoTDC1 (on the mezzanine)
|
| |
| int | FERS_Get_FPGA_Temp (int handle, float *temp) |
| | Get FPGA die temperature.
|
| |
| int | FERS_Get_Board_Temp (int handle, float *temp) |
| | Get Board temperature, between PIC and FPGA.
|
| |
| int | FERS_HV_Init (int handle) |
| | Initialize the HV communication bus (I2C)
|
| |
| int | FERS_HV_WriteReg (int handle, uint32_t reg_addr, uint32_t dtype, uint32_t reg_data) |
| | Write a value of the HV.
|
| |
| int | FERS_HV_ReadReg (int handle, uint32_t reg_addr, uint32_t dtype, uint32_t *reg_data) |
| | Read a register of HV.
|
| |
| int | FERS_HV_Set_OnOff (int handle, int OnOff) |
| | Turn the high voltage module ON or OFF.
|
| |
| int | FERS_HV_Get_Status (int handle, int *OnOff, int *Ramping, int *OvC, int *OvV) |
| | Get the status of the high voltage module.
|
| |
| int | FERS_HV_Get_FWVer (int handle, uint32_t *FWver) |
| | Get the Firmware Version of the high voltage module.
|
| |
| int | FERS_HV_Get_SerNum (int handle, int *sernum) |
| | Get the serial number of the high voltage module.
|
| |
| int | FERS_HV_Set_Vbias (int handle, float vbias) |
| | Set HV output voltage (bias)
|
| |
| int | FERS_HV_Get_Vbias (int handle, float *vbias) |
| | Get the output bias voltage set.
|
| |
| int | FERS_HV_Get_Vmon (int handle, float *vmon) |
| | Get HV output voltage (HV read back with internal ADC)
|
| |
| int | FERS_HV_Set_Imax (int handle, float imax) |
| | Set the maximum output current from the high voltage module.
|
| |
| int | FERS_HV_Get_Imax (int handle, float *imax) |
| | Get the maximum allowed current of the high voltage module.
|
| |
| int | FERS_HV_Get_Imon (int handle, float *imon) |
| | Get the output monitored current flowing into the detector.
|
| |
| int | FERS_HV_Get_IntTemp (int handle, float *temp) |
| | Get the internal temperature of the HV module.
|
| |
| int | FERS_HV_Get_DetectorTemp (int handle, float *temp) |
| | Get external temperature (of the detector). Temp sensor must be connected to dedicated lines.
|
| |
| int | FERS_HV_Set_Tsens_Coeff (int handle, float Tsens_coeff[3]) |
| | Set coefficients for external temperature sensor. T = V*V*c2 + V*c1 + c0.
|
| |
| int | FERS_HV_Set_TempFeedback (int handle, int enable, float Tsens_coeff) |
| | Set coefficient for Vbias temperature feedback.
|
| |
| int | FERS_TDC_WriteReg (int handle, int tdc_id, uint32_t addr, uint32_t data) |
| |
| int | FERS_TDC_ReadReg (int handle, int tdc_id, uint32_t addr, uint32_t *data) |
| |
| int | FERS_TDC_Config (int handle, int tdc_id, int StartSrc, int StopSrc) |
| |
| int | FERS_TDC_DoStartStopMeasurement (int handle, int tdc_id, double *tof_ns) |
| |
| int | FERS_configure (int handle, int mode) |
| | Configures a FERS board.
|
| |
| int | FERS_LoadConfigFile (char *filepath) |
| | Loads a configuration file.
|
| |
| int | FERS_SetParam (int handle, const char *param_name, const char *value_original) |
| | Set a parameter by name. The function assigns the value to the relevant parameter in the FERScfg struct, but it doesn't actually write it into the board (this is done by the "FERS_configure" function)
|
| |
| int | FERS_GetParam (int handle, const char *param_name, char *value) |
| | Get the value of a parameter. The function reads the value from the relevant parameter in the FERScfg struct, but it doesn't actually read it from the board.
|
| |
| int | FERS_InitReadout (int handle, int ROmode, int *AllocatedSize) |
| | Init readout for one board (allocate buffers and initialize variables)
|
| |
| int | FERS_CloseReadout (int handle) |
| | De-init readoout (free buffers)
|
| |
| int | FERS_FlushData (int handle) |
| | Flush the data buffer (Read and discard data until the RX buffer is empty)
|
| |
| int | FERS_GetCrcErrorCnt (int cnc_handle, uint32_t *errcnt) |
| | Get the number of CRC errors detected by the concentrator since the last start of run.
|
| |
| int | FERS_StartAcquisition (int *handle, int NumBrd, int StartMode, int RunNum) |
| | Start data acquisition. Set ReadoutState = RUNNING, wait until all threads are running, then send the run command to the boards, according to the given start mode.
|
| |
| int | FERS_StopAcquisition (int *handle, int NumBrd, int StartMode, int RunNum) |
| | Send the stop command to the boards (according to the same mode used to start them)
|
| |
| int | FERS_GetEvent (int *handle, int *bindex, int *DataQualifier, double *tstamp_us, void **Event, int *nb) |
| | Read and decode one event from the readout buffers. There are two readout modes: sorted or unsorted. If sorting is requested, the readout init function will allocate queues for sorting.
|
| |
| int | FERS_GetEventFromBoard (int handle, int *DataQualifier, double *tstamp_us, void **Event, int *nb) |
| | Read and decode one event from a specific board.
|
| |
| int | FERS_FirmwareUpgrade (int handle, char filen[200], void(*ptr)(char *msg, int progress)) |
| | Upgrade the firmware of the board.
|
| |
| int | FERS_FirmwareBootApplication_ethusb (int handle) |
| | Reboot the firmware application via Ethernet/USB.
|
| |
| int | FERS_FirmwareBootApplication_tdl (int *handle) |
| | Reboot the firmware application via TDL.
|
| |
| int | FERS_CheckBootloaderVersion (int handle, int *isInBootloader, uint32_t *version, uint32_t *release) |
| | Check if the FPGA is in "bootloader mode" and read the bootloader version.
|
| |
| int | FERS_ReadA5256EEPROMInfo (int handle, FERS_A5256_Info_t *binfo) |
| | Read Adapter A5256 info into the relevant EEPROM memory page.
|
| |
| int | FERS_WriteA5256EEPROMInfo (int handle, FERS_A5256_Info_t binfo) |
| | Write Adapter A5256 info into the relevant EEPROM memory page.
|
| |
| int | FERS_ReadEEPROMBlock (int handle, int start_address, int size, uint8_t *data) |
| | Reads a block of data from the EEPROM.
|
| |
| int | FERS_WriteEEPROMBlock (int handle, int start_address, int size, uint8_t *data) |
| | Writes a block of data to the EEPROM.
|
| |
| int | FERS_checkA5256presence (int handle, FERS_A5256_Info_t *tinfo) |
| | Check A5256 presence.
|
| |
| int | FERS_ChIndex_ada2tdc (int Adapter_ch, int *TDC_ch, int brd) |
| | Remap Adapter channel to TDC channel.
|
| |
| int | FERS_ChIndex_tdc2ada (int TDC_ch, int *Adapter_ch, int brd) |
| | Remap TDC channel to Adapter channel.
|
| |
| int | FERS_FindMemThrDest (int handle) |
| | Find the source where calibration is stored (if present EEPROM is default)
|
| |
| int | FERS_ReadThrCalib (int handle, int npts, int MemThrDest, char *date, float *ThrOffset) |
| | Read threshold calibration offsets from flash memory.
|
| |
| int | FERS_AdapterNch (int brd) |
| | Get the number of channels for the adapter.
|
| |
| int | FERS_DisableThrCalib (int handle) |
| | Disable threshold calibration.
|
| |
| int | FERS_Set_DiscrThreshold (int handle, int Adapter_ch, float thr_mv, int brd) |
| | Set the discriminator threshold.
|
| |
| int | FERS_ChMask_ada2tdc (uint32_t AdapterMask, uint32_t *ChMask0, uint32_t *ChMask1, int brd) |
| | Remap bits of adapter channel mask to the picoTDC channel mask.
|
| |
| int | FERS_CalibThresholdOffset (int handle, float min_thr, float max_thr, int *done, float *ThrOffset, float *RMSnoise, void(*ptr)(char *msg, int progress)) |
| | Calibate the threshold offset of A5256 adapter.
|
| |
| int | FERS_WriteThrCalib (int handle, int npts, int MemThrDest, float *ThrOffset) |
| | Write Threshold offset calibration of A5256 adapter to flash.
|
| |