MgslSetParams


Prototype  
ULONG MgslSetParams( HANDLE hDevice,
                     PMGSL_PARAMS pParams );
Parameters  
hDevice
handle to open port
pParams
pointer to application initialized MGSL_PARAMS structure
Return Value  
ERROR_SUCCESS (0)
parameter set successful
ERROR_INVALID_PARAMETER
error in MGSL_PARAMS structure
ERROR_INVALID_HANDLE
hDevice is invalid

Configure the SyncLink adapter for communications. The communications mode, asynchronous or HDLC, is specified in the MGSL_PARAMS structure. Other members of the MGSL_PARAMS structure configure the details of each mode.

Calling MgslSetParams disables the transmitter and receiver, discarding any buffered data and canceling and pending receive or transmit requests. The state of the serial control signals DTR and RTS is not affected.

See also: Configuring the Port, MgslGetParams


Previous Contents Next