HIO2Write

Syntax

#include <revolution/hio2.h>

BOOL    HIO2Write ( HIO2Handle handle, u32 addr, const void* buffer, s32 size );

Arguments

handle Handle retrieved using the HIO2Open function.
addr Write address of the EXI-USB interface shared memory. Must be 4-byte aligned.
buffer Pointer to the buffer where the write data is set. Must be 32-byte aligned.
size Data size to write. Must be a multiple of 32 bytes.

Return Values

Returns TRUE if write succeeds; otherwise returns FALSE.

Description

The HIO2Write function writes the amount of data size from the specified buffer to the start address addr in shared memory. This function blocks until all data is written.

This function may put the current thread to sleep. For precautions when calling similar functions, refer to Interrupts and Callback Functions.

See Also

None.

Revision History

2007/09/25 Added information on the sleep status of threads.
2006/03/01 Initial version.


CONFIDENTIAL