Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

eegdev-open-options(5) [debian man page]

EEGDEV-OPEN-OPTIONS(5)					       EEGDEV library manual					    EEGDEV-OPEN-OPTIONS(5)

NAME
eegdev-open-options - Device configuration format specification DESCRIPTION
Syntax of the configuration string The device configuration string should follow the syntax: device[[|option1|value1]...[|optionN|valueN]] If the specified device does not support a certain pair of option|value, this will be silently ignored by the opening function. device should be the name of a eegdev plugin or any. In the later case, it will try to open one of the devices supported by the installed plugins. Syntax of the configuration files The configuration files are made of statements (at most one per line) following this syntax (whitespace are ignored): option = value Comments are preceded by the '#' character: # comment line 1 # comment line 2 option = value #comment2 FILES
/etc/eegdev/eegdev.conf Shared configuration file. /etc/eegdev/<plugin>.conf Configuration file loaded when the plugin <plugin> is used. The settings specified here overrides the settings in the shared configura- tion file. EXAMPLES
Configuration string examples Device sourcing its data from the GDF file located at "/home/user/data.gdf": datafile|path|/home/user/data.gdf Biosemi device configured to use 32 electrodes: biosemi|numch|32 gTec system consisting in a chain of 2 systems (the first 2 available) with a notch filter at 60Hz without lowpass or highpass sampling at 512Hz (default sampling rate): gtec|notch|60|lowpass|none|highpass|none|deviceid|any+any Any supported type of device but should have the serial number UB-2009.10.06 if it is a gTec system: any|deviceid|UB-2009.10.06 Configuration file example # gTec configuration examples notch = 60 # Notch value for USA lowpass =none highpass=none # Specify a coupled system by default deviceid = any+any SEE ALSO
egd_open(3) EPFL
2011 EEGDEV-OPEN-OPTIONS(5)

Check Out this Related Man Page

EGD_GET_CAP(3)						       EEGDEV library manual						    EGD_GET_CAP(3)

NAME
egd_get_cap - Query various information about the device capabilities SYNOPSIS
#include <eegdev.h> int egd_get_cap(const struct eegdev* dev, int cap, void* val); DESCRIPTION
egd_get_cap() returns the information about the capability specified by cap of the recording device referenced by dev by the mean of the pointer val. The type of pointer passed through val is dependent on the requested capability cap which can be one the following (The expected type pointed by val is provided in parenthesis): EGD_CAP_FS (int) Sampling frequency that is currently set. The same value is returned by the function. EGD_CAP_TYPELIST (const int*) Array of sensor types sampled by the device terminated by -1. These values became valid as argument for egd_sensor_name(3) when opening the device dev if they were not yet before. The number of elements in the array (excluding the -1 element) is provided by the return value of the function. EGD_CAP_DEVTYPE (const char*) Null terminated string describing the type of the recording device (Manufacturer and model if dev refers to actual hardware). The length of string (excluding the null character) is provided by the return value of the function. EGD_DEVID (const char*) Null-terminated string describing the model of the recording device (or an unique identifier of the resource). The length of string (excluding the null character) is provided by the return value of the function. RETURN VALUE
In case of success, the function returns a positive value depending on the requested capability. Otherwise, -1 is returned and errno is set accordingly. ERRORS
egd_get_cap() will fail if: EINVAL dev is NULL, cap is not valid value or val is NULL while cap is not EGD_CAP_FS. SEE ALSO
egd_sensor_name(3) EPFL
2011 EGD_GET_CAP(3)
Man Page