xtos_ bci_ calibrate
Requests device calibration through ioctl.
On this page
Declaration
#include <xtos/bci.h>
int xtos_bci_calibrate(xtos_bci_session_t *session);Parameters
| Parameter | Type | Description |
|---|---|---|
| session | xtos_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
| errno | Condition |
|---|---|
| EINVAL | session is NULL or the driver rejects the current argument/state. |
| ENOTTY/EOPNOTSUPP | The device does not support the calibration ioctl. |
| system errno | Preserves 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.