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

xtos_bci_start

Requests streaming through the XTOS_BCI_START_STREAM ioctl.

On this page

Declaration

c
#include <xtos/bci.h>

int xtos_bci_start(xtos_bci_session_t *session);

Parameters

ParameterTypeDescription
sessionxtos_bci_session_t *Non-NULL session handle.

Return value

Returns 0 and sets streaming after ioctl success; returns -1 without setting it 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 start capability.
system errnoPreserves driver or system errno from ioctl failure.

Notes

  • Actual acquisition, permissions, and hardware capability are driver-defined; 0 only means the ioctl succeeded.
  • The session has no concurrency lock; do not race this call with stop, destroy, or configuration.

Example

Source

This reference describes headers and implementation at OpenXTOS commit dd313955ad57542bcd2af8827157d1bbd0cf5e83.