HIDCallback

Syntax

#include <cafe/hid.h>
    
typedef void (*HIDCallback)(
                u32             handle,   
                HID_ERROR_CODE  error,
                u8              *p_buffer,
                u32             bytes_transferred,
                void            *p_user
                );

Parameters

handle HIDDevice handle associated with the transaction request.
error HID_ERROR_CODE representing the result of the transaction request.
p_buffer Data buffer associated with the transaction request.
bytes_transferred Number of bytes transferred for the transaction request.
p_user User-specified pointer to associate with the transaction request.

Return Values

None.

Description

HID transaction functions can be called in an asynchronous or synchronous (blocking) manner. HIDCallback is implemented by HID clients to receive notification of asynchronous transaction completion.

Do Not Call From

Background Do not call this function from the background.

See Also

HID_ERROR_CODE
HIDGetDescriptor
HIDSetDescriptor
HIDGetReport
HIDSetReport
HIDGetProtocol
HIDSetProtocol
HIDGetIdle
HIDSetIdle
HIDRead
HIDWrite

Revision History

2013-05-08 Automated cleanup pass.
2011-09-29 Initial version.


CONFIDENTIAL