xtos_ bci_ calibrate
Sends the calibration ioctl; pinned v1.0.2 Cyton explicitly returns EOPNOTSUPP.
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
A NULL session returns -1/EINVAL; the pinned Cyton path returns -1/EOPNOTSUPP without calibration. Other drivers return the original ioctl result.
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
- 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).