CDEVHIO::WaitSio Member Function

Syntax

#include <kmc/hio/CDevHIO.h>

int WaitSio(
     int ch,
     int attr
);

Arguments

Name Description
in ch Channel number to wait for (from 0 to DEVHIO_SIO_MAX_CHANNEL-1).
in attr Specifying DEVHIO_SIO_ATTR_NONE causes the function to block until the communication partner calls connect.
Specifying DEVHIO_SIO_ATTR_NOWAIT causes the operation to return immediately without blocking.

Return Values

Negative value: Error.
0: Not connected.
1: Connected (communication possible).

Description

Waits until the target device for serial communication calls connect.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL