1EGD_CLOSE(3) EEGDEV library manual EGD_CLOSE(3)
2
3
4
6 egd_close - close a device
7
9 #include <eegdev.h>
10
11 int egd_close(struct eegdev* dev);
12
14 egd_close() frees all resources associated to the device referenced by
15 dev and closes it. It stops also implicitely any running acquisition.
16
17 After a successful call to egd_close(), the reference dev cannot be
18 used any longer.
19
21 The function returns 0 in case of succes. Otherwise, -1 is returned and
22 errno is set accordingly.
23
25 egd_close() will fail if:
26
27 EINVAL dev is NULL.
28
29
30
31EPFL 2010 EGD_CLOSE(3)