CAEN FERS Library v1.3.0
SDK for FERS systems
Loading...
Searching...
No Matches
Pedestal
Collaboration diagram for Pedestal:

Functions

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.
 

Detailed Description

Function Documentation

◆ FERS_WritePedestals()

int FERS_WritePedestals ( int handle,
uint16_t * PedLG,
uint16_t * PedHG,
uint16_t * dco )

Write Pedestal calibration.

Warning
The flash memory contains vital parameters for the board. Overwriting certain pages can damage the hardware!!! Do not use this function without contacting CAEN first
Parameters
[in]handledevice handle
[in]PedLGLow Gain pedestal array[64]
[in]PedHGHigh Gain pedestal array[64]
[in]dcoDCoffset (use NULL to keep old values)
Returns
0 in case of success, or a negative error code specified in FERSLIB_ErrorCodes

◆ FERS_ReadPedestalsFromFlash()

int FERS_ReadPedestalsFromFlash ( int handle,
char * date,
uint16_t * PedLG,
uint16_t * PedHG,
uint16_t * dco )

Read pedestal calibration and DC offset.

Warning
The flash memory contains vital parameters for the board. Overwriting certain pages can damage the hardware!!! Do not use this function without contacting CAEN first
Parameters
[in]handledevice handle
[out]datedate of calibration saved (DD/MM/YYYY)
[out]PedLGLog Gain pedestal array[64]
[out]PedHGHigh Gain pedestal array[64]
[out]dcoDCoffset (DAC). 4 values. Use NULL pointer if not requested
Returns
0 in case of success, or a negative error code specified in FERSLIB_ErrorCodes

◆ FERS_PedestalBackupPage()

int FERS_PedestalBackupPage ( int handle,
int EnBckPage )

Switch to pedestal backup page.

Parameters
[in]handledevice handle
[in]EnBckPageEnBckPage: 0=normal page, 1=packup page
Returns
0 in case of success, or a negative error code specified in FERSLIB_ErrorCodes

◆ FERS_SetCommonPedestal()

int FERS_SetCommonPedestal ( int handle,
uint16_t Pedestal )

Set a common pedestal (applied to all channels after pedestal calibration)

Warning
This function enables pedestal calibration
Parameters
[in]handledevice handle
[in]Pedestalcommon pedestal
Returns
0

◆ FERS_EnablePedestalCalibration()

int FERS_EnablePedestalCalibration ( int handle,
int enable )

Enable / Disabled pedestal calibration.

Parameters
[in]handleDevice handle
[in]enabledisabled, enabled
Returns
0