Function Com_MSR() Foundation

Reads the Modem Status Register.

Syntax
Com_MSR( <nComPortNum> ;
       ) --> nMSR
Return

Com_MSR() returns the contents of the Modem Status Register as a numeric value. The function IsBit() must be used to detect which bits are set.

Com_MSR() returns always 0 since Windows does not support the contents of the Modem Status Register to be read or changed.

Description

#define constants to be used for IsBit() are found in XBTCOM.CH

Bits set in the return value:
Bit Constant Description
No bit set MSR_ERROR Something went wrong
Bit 1 set MSR_DELTA_CTS CTS changed
Bit 2 set MSR_DELTA_DSR DSR changed
Bit 3 set MSR_TERI RI changed
Bit 4 set MSR_DELTA_DCD DCD changed
Bit 5 set MSR_CTS CTS is active
Bit 6 set MSR_DSR DSR is active
Bit 7 set MSR_RI RI detected
Bit 8 set MSR_DCD DCD is active

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.