|
CAEN FERS Library v1.3.0
SDK for FERS systems
|
Functions | |
| 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_HV_Init | ( | int | handle | ) |
Initialize the HV communication bus (I2C)
| [in] | handle | Handle to the FERS device |
| int FERS_HV_WriteReg | ( | int | handle, |
| uint32_t | reg_addr, | ||
| uint32_t | dtype, | ||
| uint32_t | reg_data ) |
Write a value of the HV.
| [in] | handle | Handle to the FERS device |
| [in] | reg_addr | Address of the register |
| [in] | dtype | Data type (0=signed int, 1=fixed point (Val*10000), 2=unsigned int, 3=float) |
| [in] | reg_data | Data to write |
| int FERS_HV_ReadReg | ( | int | handle, |
| uint32_t | reg_addr, | ||
| uint32_t | dtype, | ||
| uint32_t * | reg_data ) |
Read a register of HV.
| [out] | reg_data | Pointer to the read value |
| [in] | handle | Handle to the FERS device |
| [in] | reg_addr | Address of the register |
| [in] | dtype | Data type (0=signed int, 1=fixed point (Val*10000), 2=unsigned int, 3=float) |
| int FERS_HV_Set_OnOff | ( | int | handle, |
| int | OnOff ) |
Turn the high voltage module ON or OFF.
| [in] | handle | Handle to the FERS device |
| [in] | OnOff | 1 to turn on, 0 to turn off |
| int FERS_HV_Get_Status | ( | int | handle, |
| int * | OnOff, | ||
| int * | Ramping, | ||
| int * | OvC, | ||
| int * | OvV ) |
Get the status of the high voltage module.
| [out] | OnOff | Pointer to the on/off status (1 = on, 0 = off) |
| [out] | Ramping | Pointer to the ramping status (1 = ramping, 0 = not ramping) |
| [out] | OvC | Pointer to the overcurrent status (1 = fault, 0 = normal) |
| [out] | OvV | Pointer to the overvoltage status (1 = fault, 0 = normal) |
| [in] | handle | Handle to the FERS device |
| int FERS_HV_Get_FWVer | ( | int | handle, |
| uint32_t * | FWver ) |
Get the Firmware Version of the high voltage module.
| [out] | FWver | Pointer to Fimware version |
| [in] | handle | Handle to the get FERS device |
| int FERS_HV_Get_SerNum | ( | int | handle, |
| int * | sernum ) |
Get the serial number of the high voltage module.
| [out] | sernum | Pointer to the get serial number |
| [in] | handle | Handle to the FERS device |
| int FERS_HV_Set_Vbias | ( | int | handle, |
| float | vbias ) |
Set HV output voltage (bias)
| [in] | handle | Handle to the FERS device |
| [in] | vbias | Output bias voltage in Volts |
| int FERS_HV_Get_Vbias | ( | int | handle, |
| float * | vbias ) |
Get the output bias voltage set.
| [out] | vbias | Pointer to the output voltage setting in Volts (read from register) |
| [in] | handle | Handle to the FERS device |
| int FERS_HV_Get_Vmon | ( | int | handle, |
| float * | vmon ) |
Get HV output voltage (HV read back with internal ADC)
| [out] | vmon | Pointer to the monitored voltage in Volts |
| [in] | handle | Handle to the FERS device |
| int FERS_HV_Set_Imax | ( | int | handle, |
| float | imax ) |
Set the maximum output current from the high voltage module.
| [in] | handle | Handle to the FERS device |
| [in] | imax | Maximum output current in mA |
| int FERS_HV_Get_Imax | ( | int | handle, |
| float * | imax ) |
Get the maximum allowed current of the high voltage module.
| [out] | imax | Pointer to the maximum current |
| [in] | handle | Handle to the FERS device |
| int FERS_HV_Get_Imon | ( | int | handle, |
| float * | imon ) |
Get the output monitored current flowing into the detector.
| [out] | imon | Pointer to the output current in mA |
| [in] | handle | Handle to the FERS device |
| int FERS_HV_Get_IntTemp | ( | int | handle, |
| float * | temp ) |
Get the internal temperature of the HV module.
| [out] | temp | Pointer to the internal temperature in Celsius |
| [in] | handle | Handle to the FERS device |
| int FERS_HV_Get_DetectorTemp | ( | int | handle, |
| float * | temp ) |
Get external temperature (of the detector). Temp sensor must be connected to dedicated lines.
| [out] | temp | Pointer to the detector temperature in Celsius |
| [in] | handle | Handle to the FERS device |
| 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.
| [in] | handle | Handle to the FERS device |
| [in] | Tsens_coeff | Coefficients array (c0=offset, c1=linear, c2=quadratic) |
| int FERS_HV_Set_TempFeedback | ( | int | handle, |
| int | enable, | ||
| float | Tsens_coeff ) |
Set coefficient for Vbias temperature feedback.
| [in] | handle | Handle to the FERS device |
| [in] | enable | 1 to enable, 0 to disable |
| [in] | Tsens_coeff | Coefficients for temperature feedback (mV/C) |