Queries the Sealevel I/O module to determine the module model number, type, baudrate, and parity.
- Deprecated:
- Version 3.2.4
- Parameters
-
[in] | handle | Valid handle returned by SM_Open(). |
[out] | model | Model number. |
[out] | commType | Type of communications interface. |
[out] | baudrate | |
[out] | parity | |
- Return values
-
0 | Success. |
-1 | Invalid SeaMAX handle. |
-2 | Connection not established. |
-3 | Error 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().