1EGD_SENSOR_TYPE(3)           EEGDEV library manual          EGD_SENSOR_TYPE(3)
2
3
4

NAME

6       egd_sensor_type, egd_sensor_name - Get the id or name of a sensor type
7

SYNOPSIS

9       #include <eegdev.h>
10
11       int egd_sensor_type(const char* sname);
12       const char* egd_sensor_name(int stype);
13

DESCRIPTION

15       egd_sensor_type()  returns the identifier code of the sensor type named
16       sname. egd_sensor_name() is the reverse process: it retrieves the  name
17       of the sensor type identified by stype.
18
19       Depending  on  which  acquisition  devices  have  been  accessed by the
20       library, the sensor type identifier for a given name may  be  different
21       from  a previous program execution. However once a association has been
22       established it is ensured that  it  will  remain  the  same  until  the
23       process  termination.   Additionally,  the  sensor  types  named "eeg",
24       "trigger" and "undefined" are always associated respectively  to  0,  1
25       and 2.
26

RETURN VALUE

28       In case of success, egd_sensor_type() returns a non negative value cor‐
29       responding to the identifier of the sensor type called name.  Otherwise
30       it returns -1.
31
32       In  case  of  success, egd_sensor_name() returns the name of the sensor
33       type identified by stype. Otherwise, NULL is returned and errno is  set
34       accordingly.
35

ERRORS

37       egd_sensor_type() or egd_sensor_name() will fail if:
38
39       EINVAL sname is NULL or refers to an unknown sensor type or if stype is
40              not a known sensor type identifier.
41

SEE ALSO

43       egd_get_numch(3) egd_get_cap(3)
44
45
46
47
48EPFL                                 2011                   EGD_SENSOR_TYPE(3)
Impressum