logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

egd_start, egd_stop - start and stop buffered acquisition

Description

egd_start()  marks  the  beginning  of buffered acquisition from the device referenced by dev. This means
       that the data starts getting accumulated in  an  internal  ringbuffer  and  this  buffered  data  can  be
       sequentially obtained by successive calls to egd_get_data(3). A buffered acquisition started implies that
       the user has to get the data often enough to prevent the situation of a full ringbuffer.

       egd_stop()  halts  the  buffered acquisition of the device referenced by dev, relieving the user from the
       obligation to get data regularly.

Errors

egd_start() and egd_stop() will fail if:

       EINVALdev is NULL.

Name

       egd_start, egd_stop - start and stop buffered acquisition

Return Value

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

See Also

egd_get_data(3), egd_get_available(3)

EPFL                                                  2010                                          EGD_START(3)

Synopsis

#include<eegdev.h>integd_start(structeegdev*dev);integd_stop(structeegdev*dev);

See Also