int __stdcall SM_GetDeviceConfig ( SM_HANDLE  handle,
DeviceConfig *  config 
)

Queries the Sealevel I/O module to determine the module model number, type, baudrate, parity, and firmware version number.

Parameters
[in]handleValid handle returned by SM_Open().
[out]configValid DeviceConfig struct.
Return values
0Success.
-1Invalid SeaMAX handle.
-2Connection not established.
-3Error reading or writing to device.
-4Invalid config parameter.

Each module contains an internally stored model number, communications type (USB, Ethernet, etc.), baudrate, parity, and firmware version number. This function returns those stored parameters as a way to identify what module is available on a particular slave ID, and the functionality of the firmware.

Note
For SeaDAC Lite modules, the model parameter will be the only valid parameter returned. All other values will be 0.
See also
DeviceConfig

Referenced by CSeaMaxW32::Ioctl().

 
 
Generated on Mon Nov 26 2018.