Silverfrost Logo About Us | Contact Us
 

SETYIELDCOMM@

Platform

Win32

Purpose

To set the yield state for READCOMMDEVICE@.

Syntax

INTEGER (KIND=3) SETYIELDCOMM@(PORTNUM,STATE)
INTEGER (KIND=3) 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 allow subsequent calls to READCOMMDEVICE@ to yield to other applications whilst waiting for data.

Return value

SETYIELDCOMM@ returns a positive value when successful otherwise it returns -1.

 

 

Copyright © 1999-2017 Silverfrost Limited