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

NAME

6       egd_close - close a device
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

21       The function returns 0 in case of succes. Otherwise, -1 is returned and
22       errno is set accordingly.
23

ERRORS

25       egd_close() will fail if:
26
27       EINVAL dev is NULL.
28
29
30
31EPFL                                 2010                         EGD_CLOSE(3)
Impressum