@GetOSComPortInfo
Syntax
@GetOSComPortInfo(OSCOMHANDLE1;FNWRTO1;FNRETO1;FNCTLHS1;FNFLOWR1;FNTO1;FNERC1;FNBRC1;FNXON1;FNXOFF1);
@GetOSComPortInfo(OSCOMHANDLE1;FNWRTO1;FNRETO1;FNCTLHS1;FNFLOWR1;FNTO1;FNERC1;FNBRC1;FNXON1;FNXOFF1;NTFNReadIntervalTO);
@GetOSComPortInfo(OSCOMHANDLE1;FNWRTO1;FNRETO1;FNCTLHS1;FNFLOWR1;FNTO1;FNERC1;FNBRC1;FNXON1;FNXOFF1;FNNTReadIntervalTO;FNNTReadTotalTOMultiplyer);
@GetOSComPortInfo(OSCOMHANDLE1;FNWRTO1;FNRETO1;FNCTLHS1;FNFLOWR1;FNTO1;FNERC1;FNBRC1;FNXON1;FNXOFF1;FNNTReadIntervalTO;FNNTReadTotalTOMultiplyer;FNNTWriteTotalTOMultiplyer);
Description
Returns the settings of the COMPORTS with the COSCOMPORTHANDLE COSCOMPORTHANDLE1.
FNWRTO1:
Write timeout (specified ?? normally 6000)
Under NT this is the WriteTotalTimeoutConstant.
See http://msdn2.microsoft.com/en-us/library/ms885171.aspx.
FNRETO1:
Read timeout (specified ?? normally 6000)
Under NT this is the ReadTotalTimeoutConstant.
See http://msdn2.microsoft.com/en-us/library/ms885171.aspx.
FNCTLHS1:
CtlHandShake (specified ?? normally 1)
Bit meaning
1 MODE_DTR_CONTROL
2 MODE_DTR_HANDSHAKE
3
4 MODE_CTS_HANDSHAKE
5 MODE_DSR_HANDSHAKE
6 MODE_DCD_HANDSHAKE
7 MODE_DSR_SENSITVITY
FNFLOWR1:
1 MODE_AUTO_TRANSMIT
2 MODE_AUTO_RECEIVE
3 MODE_ERROR_CHAR
4 MODE_NULL_STRIPPING
5 MODE_BREAK_CHAR NOT SUPPORTED BY NT. MODE IS ALWAYS BINARY!
6 MODE_RTS_CONTROL
7 MODE_RTS_HANDSHAKE
6&7 MODE_TRANSMIT_TOGGLE
FNTO1:
Timeout (specified ?? normally 218)
Always 0 under NT because these timeouts are not supported!
Bit meaning
1 MODE_NO_WRITE_TIMEOUT
2 MODE_READ_TIMEOUT
3 MODE_WAIT_READ_TIMEOUT
2&3 MODE_NOWAIT_READ_TIMEOUT
FNERC1:
ErrorReplacementChar (specified ?? normally 0)
FNBRC1:
BreakReplacementChar (specified ?? normally 0)
Not supported under NT. The mode is always binary!
FNXON1:
XONChar (specified ?? normally 17)
FNXOFF1:
XOFFChar (specified ?? normally 19)
NTFNReadIntervalTO:
This parameter is useful only under NT and does not exist under OS/2!
See http://msdn2.microsoft.com/en-us/library/ms885171.aspx.
FNNTReadTotalTOMultiplyer:
This parameter is useful only under NT and does not exist under OS/2!
See http://msdn2.microsoft.com/en-us/library/ms885171.aspx.
FNNTWriteTotalTOMultiplyer:
This parameter is useful only under NT and does not exist under OS/2!
See http://msdn2.microsoft.com/en-us/library/ms885171.aspx.
Example: @GetOSComPortInfo(OSCOMHANDLE1;FNWRTO1;FNRETO1;FNCTLHS1;FNFLOWR1;FNTO1;FNERC1;FNBRC1;FNXON1;FNXOFF1)
Ret:=@GetOSComPortInfo(com1;P1;P2;P3;P4;P5;P6;P7;P8;P9);
@LogReport(Ret;3);
@LogReport("WriteTimeOut :"+@Text(P1);3);
@LogReport("ReadTimeOut :"+@Text(P2);3);
@LogReport("CtlHandShake :"+@Text(P3);3);
@LogReport("FlowReplace :"+@Text(P4);3);
@LogReport("TimeOut :"+@Text(P5);3);
@LogReport("ErrReplaceChar:"+@Text(P6);3);
@LogReport("BrkReplaceChar:"+@Text(P7);3);
@LogReport("XONChar :"+@Text(P8);3);
@LogReport("XOFFChar :"+@Text(P9);3);
This are the settings of the OSCOMPORT with the OSCOMPORTHANDLE com1 gegets and output.
Note : This text was machine-translated and may contain inaccuracies.
