Sponsor:

Your company here, and a link to your site. Click to find out more.

egd_close - Man Page

close a device

Synopsis

#include <eegdev.h>

int egd_close(struct eegdev* dev);

Description

egd_close() frees all resources associated to the device referenced by dev and closes it. It stops also implicitely any running acquisition.

After a successful call to egd_close(), the reference dev cannot be used any longer.

Return Value

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

Errors

egd_close() will fail if:

EINVAL

dev is NULL.

Referenced By

egd_open(3).

2010 EPFL EEGDEV library manual