Back to Sealevel      

int SeaMaxLinIoctl ( SeaMaxLin *  SeaMaxPointer,
slave_address_t  slaveId,
IOCTL_t  which,
void *  data 
)

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.
 
 
Generated on 3 Jun 2011.