Datasheet

Function
BOOL AndroidAppHIDRegister(BYTE address, BYTE id, BYTE* descriptor, BYTE length);
5.1.8 AndroidAppHIDSendEvent Function
Sends a HID report to the associated Android device
File
usb_host_android.h
C
BYTE AndroidAppHIDSendEvent(
BYTE address,
BYTE id,
BYTE* report,
BYTE length
);
Description
Sends a HID report to the associated Android device
Remarks
None
Preconditions
HID device should have already been registers with the AndroidAppHIDRegister ( see page 27)() function
Parameters
Parameters Description
BYTE address address of the USB peripheral to send the report to
BYTE id Report ID of the report being sent
BYTE* report data for the report
BYTE length length of the report
Function
BYTE AndroidAppHIDSendEvent(BYTE address, BYTE id, BYTE* report, BYTE length);
5.2 Error Codes
Macros
Name Description
USB_ERROR_BUFFER_TOO_SMALL
( see page 29)
Error code indicating that the buffer passed to the read function was
too small. Since the USB host can't control how much data it will
receive in a single packet, the user must provide a buffer that is at
least the size of the endpoint of the attached device. If a buffer is
passed in that is too small, the read will not start and this error is
returned to the user.
Microchip's Accessory Framework for Android(tm) 28
28
5