Queries the Sealevel I/O module to determine the module model number, type, baudrate, parity, and firmware version number.
- Parameters
-
[in] | handle | Valid handle returned by SM_Open(). |
[out] | config | Valid DeviceConfig struct. |
- Return values
-
0 | Success. |
-1 | Invalid SeaMAX handle. |
-2 | Connection not established. |
-3 | Error reading or writing to device. |
-4 | Invalid 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().