| Summary |
#include <rl_usb.h>
int usbh_hid_data_in (
U8 ctrl,
U8 dev_idx,
U8* ptr_data
);
|
| Description | The function usbh_hid_data_in retrieves the data sent by an USB HID device. The argument ctrl is the index of USB Host Controller. The argument dev_idx is the index of device instance. The argument ptr_data is a pointer where data will be returned. The usbh_hid_data_in function is part of the RL-USB Host Class Driver software layer. |
| Return Value | A integer value indicating number of received data bytes. |
| See Also | usbh_hid_data_in_callback, usbh_hid_data_out, usbh_hid_get_last_error, usbh_hid_kbd_getkey, usbh_hid_mouse_getdata, usbh_hid_parse_report_desc, usbh_hid_status |
| Example |
#include <rl_usb.h>
void parse_HID (void) {
U8 data[16];
..
if (usbh_hid_data_in (0, 0, &data)) { // If data received from HID device
..
}
)
|