HIOWrite

Syntax

#include <cafe.h>
#include <cafe/hio.h>

HIOStatus HIOWrite(HIOHandle handle, u32 sizeInBytes, const void *pData);

Parameters

handle Channel to write.
sizeInBytes Number of bytes to write.
pData Pointer to the data to write.

Return Values

>= 0 The number of bytes successfully written
HIO_STATUS_NO_CLIENT_TXN_BUF_AVAILABLE The write request could not be submitted. Retry the request as the condition is temporary.
< 0 The write failed.

Description

Writes the specified number of bytes to the channel designated by handle.

Do Not Call From

Callbacks Do not call this function from any callback function.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Production code Do not call this function in production code. It is available only for debugging purposes.

See Also

HIORead
HIOReadAsync
HIOReadAsyncEx
HIOWriteAsync
HIOWriteAsyncEx

Revision History

2013-05-08 Automated cleanup pass.
2012-04-11 Added const before void *.
2011-11-04 Updated return values.
2011-02-21 Initial version.


CONFIDENTIAL