DEVHIO_sio_wait Function

Syntax

#include <kmc/hio/devhio_sio.h>

int DEVHIO_sio_wait(
     int ch,
     int attr
);

Arguments

Name Description
in ch Channel number (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/08/16
Initial version.

CONFIDENTIAL