int __stdcall SM_GetConfig ( SM_HANDLE  handle,
int *  model,
int *  commType,
int *  baudrate,
int *  parity 
)

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

Deprecated:
Version 3.2.4
Parameters
[in]handleValid handle returned by SM_Open().
[out]modelModel number.
[out]commTypeType of communications interface.
[out]baudrate
[out]parity
Return values
0Success.
-1Invalid SeaMAX handle.
-2Connection not established.
-3Error reading or writing to device.
Note
This function has been replaced by SM_GetDeviceConfig(). See the updated function for parameter and return values.

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

Note
For SeaDAC Lite modules, the model parameter will be the only vaild parameter returned. CommType, baudrate, and parity may be supplied as null parameters (zero). Null or zero will be returned for any parameters supplied other than model.
See also
Communication Type Values, Baudrate Values, Parity Values

Referenced by CSeaMaxW32::Read(), and SM_SetPolarity().

 
 
Generated on Mon Nov 26 2018.