#include <RTL.h>
#include <rl_usb.h>
void usbd_hid_set_report (
U8 rtype, // Report type
U8 rid, // Report ID
U8* buf, // Pointer to the buffer to report data
int len, // Length of report (in bytes)
U8 req // Request type
);
Description
The function usbd_hid_set_report handles data that was
received from the USB Host. The function is called when report was
received.
Arguments:
rtype: report type
Value
Description
HID_REPORT_OUTPUT
Output report received.
HID_REPORT_FEATURE
Feature report received.
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
Report came through control endpoint.
USBD_HID_REQ_EP_INT
Report came through interrupt endpoint.
The function usbd_hid_set_report is part of the USB Device
Function Driver layer of the RL-USB Device Software Stack.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.