HIO2Write

C Specification

#include <revolution/hio2.h>
BOOL    HIO2Write ( HIO2Handle handle, u32 addr, const void* buffer, s32 size );

Arguments

handle    Handle retrieved using the HI02Open function.
addr    Write address of the EXI-USB interface shared memory. This address must be 4-byte aligned.
buffer    Pointer to the buffer where the write data is set. This address 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

Revision History

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


CONFIDENTIAL