|
|
| int __stdcall SME_GetNetworkSerialParams |
( |
SME_HANDLE |
handle, |
|
|
int * |
baudrate, |
|
|
int * |
parity | |
|
) |
| | |
Gets the Ethernet to serial translation speed (serial output baudrate).
- Parameters:
-
| [in] | handle | Valid handle returned by SME_Initialize(). |
| [out] | baudrate | |
| [out] | parity | |
- Return values:
-
| 0 | Successful completion. |
| -1 | Invalid SME_Initialize handle. |
| -2 | No module selected. Call SME_SearchForModules() first. |
| -3 | Could not get the current module's serial parameters. |
Retrieves the current setting of the Ethernet to serial bridge. A value of -1 returned in either parameter indicates an invalid or unknown value was returned.
- Note:
- The Ethernet to serial bridge only supports baudrates 1200, 2400, 4800, 9600, 19200, 38400, and 115200 with parity values none, odd, or even.
- See also:
- Baudrate Values, Parity Values
|