#include <RTL.h>
#include <rl_usb.h>
int usbd_hid_get_report (
U8 rtype, // Report type
U8 rid, // Report ID
U8* buf, // Pointer to the buffer to report data
U8 req // Request type
);
Description
The function usbd_hid_get_report prepares data that will be
returned to the USB Host. The function is called on any of following
events; after previous report was sent, if idle period has expired or
if report was requested through control endpoint.
Arguments:
rtype: report type
Value
Description
HID_REPORT_INPUT
Input report requested.
HID_REPORT_FEATURE
Feature report requested.
rid: report ID (0 - if only one report exists in
system)
buf: pointer to the buffer to report data
req:
Value
Description
USBD_HID_REQ_EP_CTRL
Request came from control endpoint.
USBD_HID_REQ_PERIOD_UPDATE
Request came from idle period expiration.
USBD_HID_REQ_EP_INT
Request came from previously sent report on interrupt
endpoint.
The function usbd_hid_get_report is part of the USB Device
Function Driver layer of the RL-USB Device Software Stack.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.