DEVHIO_sio_write Function

Syntax

#include <kmc/hio/devhio_sio.h>

int DEVHIO_sio_write(
     int ch,
     const void * buf,
     int length,
     int attr
);

Arguments

Name Description
in ch Channel number (from 0 to DEVHIO_COMM_MAX_CHANNEL-1).
in buf Send buffer.
in length Length of the data to send.
in attr Specifying DEVHIO_SIO_ATTR_NONE causes the function to block until the specified amount of data is sent.
Specifying DEVHIO_SIO_ATTR_NOWAIT causes the function to return either when the specified amount of data is sent or when the receive buffer becomes full (whichever comes first).

Return Values

Negative value: Error.
Zero or greater: Sent data.

Description

Sends data via serial communication.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL