HIO2Read

C Specification

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

Arguments

handle    Handle retrieved using the HI02Open function.
addr    Read address of shared memory for the EXI-USB interface. This address must be 4-byte aligned.
buffer    Pointer to the buffer that stores the data to read. This address must be 32-byte aligned.
size    Data size to read. Must be a multiple of 32 bytes.

Return Values

This function returns TRUE if read suceeds and FALSE otherwise.

Description

The HIO2Read function reads the amount of data size from the start address addr in the specified shared memory and then stores the data in buffer. Data is read in 4-byte increments. This function blocks until all data is read.

See Also

Revision History

03/01/2006 Initial version.