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

Functions

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.
 

Detailed Description

Function Documentation

◆ FERS_configure()

int FERS_configure ( int handle,
int mode )

Configures a FERS board.

Parameters
[in]handleBoard handle
[in]modeConfiguration mode, as in Configuration Modes
Returns
0 on success, or a negative error code as defined in FERSLIB_ErrorCodes

◆ FERS_LoadConfigFile()

int FERS_LoadConfigFile ( char * filepath)

Loads a configuration file.

Parameters
[in]filepathPath to the configuration file
Returns
0 on success, or a negative error code as defined in FERSLIB_ErrorCodes

◆ FERS_SetParam()

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)

Parameters
[in]handleBoard handle
[in]param_nameName of the parameter to set
[in]value_originalValue to set for the parameter
Returns
0 on success, or a negative error code as defined in FERSLIB_ErrorCodes

◆ FERS_GetParam()

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.

Parameters
[out]valuePointer to the value of the parameter
[in]handleBoard handle
[in]param_nameName of the parameter to get
Returns
0 on success, or a negative error code as defined in FERSLIB_ErrorCodes