EGD_SENSOR_TYPE(3)
π EGD_SENSOR_TYPE π
okay bestie, welcome to the EGD_SENSOR_TYPE(3) page from the EEGDEV library manual β yes it's a real manual page, yes it's a whole vibe, and yes we're gonna read it together π«Ά
β¨ NAME β¨
egd_sensor_type, egd_sensor_name β grab the id or the name of a sensor type, whichever way you're going π
πΈ SYNOPSIS πΈ
#include <eegdev.h>
int egd_sensor_type(const char* sname);
const char* egd_sensor_name(int stype);
like, that's it. two little functions. iconic. π
π¦ DESCRIPTION π¦
so egd_sensor_type() hands you back the identifier code of whatever sensor type is called sname. and egd_sensor_name() is literally the reverse glow-up: you give it the sensor type identified by stype, and it retrieves the name for you. it's giving mutuals. π
now here's the tea, bestie: depending on which acquisition devices the library has actually accessed, the sensor type identifier for a given name may be different from a previous program execution. not a bug, just how it is, no cap. but once an association has been established, it is ensured that it will remain the same until the process termination. periodt. π―
and additionally β this part is the iconique part β the sensor types named "eeg", "trigger" and "undefined" are always associated respectively to 0, 1 and 2. those three never switch up on you. main character energy. π
π RETURN VALUE π
- when it works out:
egd_sensor_type()returns a non negative value, which is the identifier of the sensor type called name. and if it doesn't work out? it returns-1. π - when it works out:
egd_sensor_name()returns the name of the sensor type identified by stype. and if it doesn't work out?NULLis returned, anderrnois set accordingly. rude but fair.
π ERRORS π
egd_sensor_type() or egd_sensor_name() will fail if:
EINVALβ sname isNULLor refers to an unknown sensor type, or stype is not a known sensor type identifier. so like, don't pass garbage, bestie, they will clock it immediately π
π SEE ALSO π
go read those next, they're cute too β
and that's the whole page fr fr π this lil slice of the manual is EPFL, 2011 vintage β so yes, she's been serving correct answers since 2011 and she's still slaying πΈβ¨ bye bestie, go get those sensor types π
π¦ 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