EGD_START(3)
π EGD_START(3) π
okay bestie, so this is a page from the EEGDEV library manual, and it's literally just about starting and stopping buffered acquisition. two functions. that's it. that's the whole vibe. slay.
β¨ NAME β¨
egd_start, egd_stop β start and stop buffered acquisition π
πΈ SYNOPSIS πΈ
#include <eegdev.h>
int egd_start(struct eegdev* dev);
int egd_stop(struct eegdev* dev);
π¦ DESCRIPTION π¦
so egd_start() marks the beginning of buffered acquisition from the device that dev points at. what does that mean fr fr? it means the data starts getting accumulated in an internal ringbuffer β¨, and you can then get that buffered data sequentially by making successive calls to egd_get_data(3).
β οΈ okay and here's the thing, bestie β once a buffered acquisition has started, you have to get the data often enough to prevent the situation of a full ringbuffer. no cap. the ringbuffer does not wait for you. it's giving main character energy and you are the one who has to keep up π
and egd_stop() halts the buffered acquisition of the device that dev points at, which relieves you from the obligation to get data regularly. iconic. you're free ποΈ
π RETURN VALUE π
the function returns 0 in case of succes. otherwise, -1 is returned and errno is set accordingly.
π yes it literally says "succes" in the original, we don't fix that, we respect the text.
π ERRORS π
egd_start() and egd_stop() will fail if:
EINVALβdevisNULL. π like, there's no device. there's nothing. it's giving void.
π SEE ALSO π
okay that's the whole page bestie, go start your acquisition and remember to actually read the data or your ringbuffer will fill up and it will be a whole situation πβ¨
this has been the EEGDEV library manual, brought to you by EPFL, dated 2010 β yes 2010, a vintage classic, still slaying to this day ππ
π¦ where this page comes from
- debian bookworm: libeegdev-dev 0.2-6+b1
- debian trixie: libeegdev-dev 0.2-10
- fedora 43: eegdev-devel 0.2-33.fc43 Β· LGPL-3.0-or-later
- fedora 44: eegdev-devel 0.2-34.fc44 Β· LGPL-3.0-or-later
- ubuntu jammy: libeegdev-dev 0.2-6
- ubuntu noble: libeegdev-dev 0.2-9build2
- ubuntu questing: libeegdev-dev 0.2-10
- ubuntu resolute: libeegdev-dev 0.2-12
- ubuntu stonking: libeegdev-dev 0.2-12
- Copyright 2010 (c) EPFL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms