Multi-function tool to configure and access SeaIO specific features. Ioctl can be used to get and set device parameters and states.
- Parameters
-
| [in] | *SeaMaxPointer | Pointer to an open seaMaxModule. |
| [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 seaio_ioctl_s::address, seaio_ioctl_get_params_s::baud_rate, seaio_ioctl_get_params_s::bridge_type, PIO96_config_s::channel1, PIO96_config_s::channel2, adda_config::channel_mode, adda_config::channels, seaio_ioctl_s::comms, seaio_ioctl_s::config, adda_config::device, IOCTL_GET_ADDA_EXT_CONFIG, seaio_ioctl_get_params_s::model, SeaMAX_PIO_ioctl_s::model, seaio_ioctl_ext_config::model, seaio_ioctl_address_s::new_address, seaio_ioctl_comms_s::new_baud_rate, seaio_ioctl_comms_s::new_parity, NO_CONNECT, seaio_ioctl_s::params, seaio_ioctl_get_params_s::parity, seaio_ioctl_s::pio, SeaMAX_PIO_ioctl_s::PIO96, adda_config::reference_offset, and seaio_ioctl_s::u.
Referenced by CSeaMaxLin::Ioctl().