Serial Framework
ContentsIndexHome
PreviousUpNext
TwclSerialClient.GetModemStatus Method

Retrieves the modem control-register values.

Syntax
Pascal
function GetModemStatus(out Status: TwclModemStatuses): Integer;
Parameters 
Description 
out Status: TwclModemStatuses 
If the function completed with success the parameter contaisn the current state of the modem control-register values.  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The GetModemStatus function is useful when you received the CTS, RLSD, DSR, or ring indicator signals(through OnEvent event.)  

The function fails if the hardware does not support the control-register values.  

 

Copyright (c) 2006-2019. All rights reserved.