HIDSetupHandler

Syntax

#include <revolution/hid.h>
typedef void (*HIDSetupHandler)(HIDError he, u32 user);

Arguments

HIDError The asynchronous result of the call to HIDOpenAsync or HIDCloseAsync. These are the return values for HIDOpenAsync:
  • HID_ERROR_OK
  • HID_ERROR_FIRMWARE_VERSION
  • HID_ERROR_FIRMWARE_MALFUNCTION
These are the return values for HIDCloseAsync:
  • HID_ERROR_OK
  • HID_ERROR_FIRMWARE_MALFUNCTION
  • HID_ERROR_BUSY
For explanations of the error codes, see HIDError.
u32 user User-defined parameter. This is the value specified when HIDOpenAsync and HIDCloseAsync are called.

Description

An asynchronous user-defined callback function for the HIDOpenAsync and HIDCloseAsync functions.

See Also

HIDOpenAsync
HIDCloseAsync
HIDError

Revision History

2008/09/24 Initial version.



CONFIDENTIAL