#include <revolution/hio2.h> BOOL HIO2Write ( HIO2Handle handle, u32 addr, const void* buffer, s32 size );
| 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. |
Returns TRUE if write succeeds; otherwise returns FALSE.
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.
None.
2007/09/25 Added information on the sleep status of threads.
2006/03/01 Initial version.
CONFIDENTIAL