Multi-function tool to configure and access SeaIO specific features. Ioctl can be used to get and set device parameters and states.
- Parameters
-
| [in] | slaveId | Address of the device you wish to access. |
| [in] | which | Which type of Ioctl you wish to call. |
| *data | Buffer to store or retrieve data from. |
- Returns
- int Error code.
- Return values
-
| >0 | Number of bytes of data in the buffer. |
| -EBADF | No module open or write error. |
| -EINVAL | Null buffer or too much data in buffer. |
| -ENOMEM | Low memory. |
| -ENODEV | Didn't receive response. |
| -EFAULT | MODBUS exception. First byte of buffer contains exception. |
References SeaMaxLinIoctl().