XTOS / OPEN SOURCE REAL-TIME SYSTEMOPEN SOURCE · 1.0.2 · PRERELEASE · IMAGES & SOURCE
libxtos-bcixtos_bci_calibrate

xtos_bci_calibrate

Sends the calibration ioctl; pinned v1.0.2 Cyton explicitly returns EOPNOTSUPP.

On this page

Declaration

c
#include <xtos/bci.h>

int xtos_bci_calibrate(xtos_bci_session_t *session);

Parameters

ParameterTypeDescription
sessionxtos_bci_session_t *Non-NULL session handle.

Return value

A NULL session returns -1/EINVAL; the pinned Cyton path returns -1/EOPNOTSUPP without calibration. Other drivers return the original ioctl result.

Errors

errnoCondition
EINVALsession is NULL or the driver rejects the current argument/state.
ENOTTY/EOPNOTSUPPThe device does not support the calibration ioctl.
system errnoPreserves driver or system errno from ioctl failure.

Notes

  • Pinned v1.0.2 Cyton calibration is explicitly unsupported and returns -1/errno=EOPNOTSUPP instead of reporting false success. This ioctl produces or applies no correction coefficients.
  • The SDK provides no calibration data, quality decision, or rollback; verify these with the actual driver and application protocol.

Example

Source

This reference describes headers and implementation in OpenXTOS v1.0.2 (c24e923717670c4724cdaf24c7c105caee8dc2fb).