EGD_GET_NUMCH(3)
β¨ EGD_GET_NUMCH β¨
okay bestie, so this is a page from the EEGDEV library manual (manual section 3, the library-call girlies π ) and it's literally all about counting channels. like, how many channels of a given sensor type is your device actually sampling? that's the whole vibe. let's get into it π
πΈ NAME πΈ
egd_get_numch β get the number of channels sampled by type π
π¦ SYNOPSIS π¦
#include <eegdev.h>
int egd_get_numch(const struct eegdev* dev, int stype);
β¨ DESCRIPTION β¨
so egd_get_numch() hands you back the number of channels of type stype that are being sampled by the recording device that dev points at. no cap, that's it, that's the function π«Ά
and like, important detail: stype has to be one of the values that egd_sensor_type(3) gives you. don't just freestyle a random int in there, okay? π
π RETURN VALUE π
on a successful slay, the function returns a non-negative value β that's your number of channels of type stype. and yes, it can legitimately be 0, because sometimes a device just doesn't sample that type of data at all and that's valid of it π
but if things go wrong? it returns -1 and sets errno accordingly. classic. π
π ERRORS π
egd_get_numch() will fail if:
EINVALβdevisNULL, or stype is not a valid value. literally the two ways to break it, bestie.
π SEE ALSO π
and that's the whole page, no notes π this icon was brought to you by EPFL, dated 2011, and it lives in the EEGDEV library manual β go count some channels, you've got this πβπ
π¦ 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 2011 (c) EPFL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms