xtos_ bci_ stop
Requests streaming stop through the XTOS_BCI_STOP_STREAM ioctl.
On this page
Declaration
#include <xtos/bci.h>
int xtos_bci_stop(xtos_bci_session_t *session);Parameters
| Parameter | Type | Description |
|---|---|---|
| session | xtos_bci_session_t * | Non-NULL session handle. |
Return value
Returns 0 and clears streaming after ioctl success; returns -1 while retaining the prior flag on failure.
Errors
| errno | Condition |
|---|---|
| EINVAL | session is NULL, or the driver rejects the argument or state. |
| ENOTTY/EOPNOTSUPP | The device does not support the ioctl or XTOS BCI stop capability. |
| system errno | Preserves driver or system errno from ioctl failure. |
Notes
- Statistics can still be read after a successful stop; destroy also attempts stop for an active session.
- The caller must coordinate acquisition-thread shutdown; the SDK does not wait for other threads.
Example
Source
This reference describes headers and implementation at OpenXTOS commit dd313955ad57542bcd2af8827157d1bbd0cf5e83.