Back to Sealevel      

int SM_ConfigureSerialConnection ( SM_HANDLE  handle,
int  baudrate,
int  parity 
)

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 estabished.
-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

 
 
Generated on 18 Sep 2007.