XTOS / OPEN SOURCE REAL-TIME SYSTEMOPEN SOURCE · VERSION 0.9.0 · BUILD FROM SOURCE
libxtos-bcixtos_bci_stop

xtos_bci_stop

Requests streaming stop through the XTOS_BCI_STOP_STREAM ioctl.

On this page

Declaration

c
#include <xtos/bci.h>

int xtos_bci_stop(xtos_bci_session_t *session);

Parameters

ParameterTypeDescription
sessionxtos_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

errnoCondition
EINVALsession is NULL, or the driver rejects the argument or state.
ENOTTY/EOPNOTSUPPThe device does not support the ioctl or XTOS BCI stop capability.
system errnoPreserves 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.