HIO2ReadStatus

C Specification


#include <revolution/hio2.h>
#define HIO2_STATUS_TX  0x00000001
#define HIO2_STATUS_RX  0x00000002
BOOL    HIO2ReadStatus  ( HIO2Handle handle, u32* status );

Arguments

handle    Handle retrieved using the HI02Open function.
status    Pointer to the buffer that stores the following interrupt statuses.
HIO2_STATUS_TX indicates that a send notification (mailbox write) has been sent from the PC to the target.   HIO2_STATUS_RX indicates that a send notification (mailbox write) has been sent from the target to the PC, but the host has not read the mailbox.

Return Values

TRUE if the acquisition suceeds and FALSE if it fails.

Description

This function acquires the HIO2 device interrupt status.

See Also

Revision History

03/01/2006 Initial version.