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 suceeds and FALSE if write fails.

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.

See Also

Revision History

03/01/2006 Initial version.