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

xtos_bci_calibrate

Requests device calibration through ioctl.

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

Returns the underlying ioctl’s 0 or -1; 0 only means the driver accepted the request.

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

  • The public Cyton path is a calibration placeholder: it logs not implemented and returns 0 without performing calibration.
  • 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 at OpenXTOS commit dd313955ad57542bcd2af8827157d1bbd0cf5e83.