egd_get_numch3
Get the number of channels sampled by type
Usage
#include <eegdev.h>
int egd_get_numch(const struct eegdev* dev, int stype);
Overview
egd_get_numch() returns the number of channels of type stype sampled by the recording device referenced by dev. stype must be one of the values returned by egd_sensor_type(3).
Return value
In case of success, the function returns a non negative value corresponding to the number of channels of type stype (possibly 0 if the device does not sample this type of data). Otherwise, -1 is returned and errno is set accordingly.
Errors
egd_get_numch() will fail if:
- EINVAL
-
dev is NULL or stype is not valid value.
Releases
Unchanged in 7 releases since Debian 7 (Wheezy).