HIDResetDevice

Syntax

#include <cafe/hid.h>
    
HID_ERROR_CODE  HIDResetDevice(
                                    u32         handle,
                                    HIDCallback async_callback,
                                    void        *p_user
                                    );

Parameters

handle Handle associated with the HID device.
async_callback Pointer to HIDCallback for asynchronous completion notification.
p_user User-specified pointer passed to HIDCallback.

Return Values

HIDResetDevice returns HID_ERROR_CODE. For blocking calls, a return value of ≥ 0 specifies the number of bytes transferred for the request. For asynchronous calls, a return value of HID_ERROR_OK specifies that the call was initiated successfully and the result of the transaction will be specified in the HIDCallback parameters upon completion.

Description

HIDResetDevice resets physical device associated with a HIDDevice.handle. HIDResetDevice executes in a blocking manner when no HIDCallback is specified.

Do Not Call From

Background Do not call this function from the background.

See Also

HID_ERROR_CODE
HIDCallback

Revision History

2014/01/20 Initial version.


CONFIDENTIAL