◆ Ioctl()

int CSeaMaxLin::Ioctl ( 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]slaveIdAddress of the device you wish to access.
[in]whichWhich type of Ioctl you wish to call.
*dataBuffer to store or retrieve data from.
Returns
int Error code.
Return values
>0Number of bytes of data in the buffer.
-EBADFNo module open or write error.
-EINVALNull buffer or too much data in buffer.
-ENOMEMLow memory.
-ENODEVDidn't receive response.
-EFAULTMODBUS exception. First byte of buffer contains exception.

References SeaMaxLinIoctl().

 
 
Generated on Tue Sep 19 2017.