Configures the local PC's serial port baudrate (For Serial Connections Only).
- Parameters
-
| [in] | handle | Valid handle returned by SM_Open(). |
| [in] | baudrate | |
| [in] | parity | |
- Return values
-
| 0 | Successful. |
| -1 | Invalid SeaMAX handle. |
| -2 | Connection not established. |
| -3 | Current connection is non-serial. |
| -4 | Could not configure serial connection. Possible invalid parameter. |
This function configures the PC's local serial port connection speed and parity - it does not configure any communication rates or parameters on the module itself.
In order to configure a module's communication parameters, see SM_SetCommunications().
- See also
- Baudrate Values, Parity Values