Back to Sealevel      

HANDLE SeaMaxLinGetCommHandle ( SeaMaxLin *  SeaMaxPointer  ) 

Get the handle to the actual communication medium. For RTU types it will be a normal file pointer, but TCP will be a socket handle. For this reason, it was decided to only return RTU file pointers. An attempt to get the socket handle will return an ENODEV error.

Parameters:
[in] *SeaMaxPointer Pointer to a previously opened seaMaxModule
Returns:
int Error code.
Return values:
>0 Pointer to communications termios struct.
-EBADF No open module.
-ENODEV This is not an RTU type connection.
 
 
Generated on 3 Jun 2011.