Platform | Win32 |
Purpose |
To set the "wait for line feed" state for READCOMMDEVICE@. |
Syntax |
INTEGER (KIND=3) SETCOMMWAITFORLINEFEED@(PORTNUM,STATE) |
Description |
Use this function to configure a serial port that has been opened by a call to OPENCOMMDEVICE@. PORTNUM must be a valid port number in the range 1 to 4. STATE is zero by default. Call this function with STATE=1 in order to cause READCOMMDEVICE@ to to wait for a linefeed character before returning. |
Return value |
SETCOMMWAITFORLINEFEED@ returns a positive value when successful otherwise it returns -1. |