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

NAME

6       egd_start, egd_stop - start and stop buffered acquisition
7

SYNOPSIS

9       #include <eegdev.h>
10
11       int egd_start(struct eegdev* dev);
12       int egd_stop(struct eegdev* dev);
13

DESCRIPTION

15       egd_start() marks the beginning of buffered acquisition from the device
16       referenced by dev. This means that the data starts getting  accumulated
17       in  an  internal  ringbuffer and this buffered data can be sequentially
18       obtained by successive calls to egd_get_data(3). A buffered acquisition
19       started  implies that the user has to get the data often enough to pre‐
20       vent the situation of a full ringbuffer.
21
22       egd_stop() halts the buffered acquisition of the device  referenced  by
23       dev, relieving the user from the obligation to get data regularly.
24

RETURN VALUE

26       The function returns 0 in case of succes. Otherwise, -1 is returned and
27       errno is set accordingly.
28

ERRORS

30       egd_start() and egd_stop() will fail if:
31
32       EINVAL dev is NULL.
33

SEE ALSO

35       egd_get_data(3), egd_get_available(3)
36
37
38
39EPFL                                 2010                         EGD_START(3)
Impressum