| Summary |
#include <rl_usb.h>
int usbh_hid_data_out (
U8 ctrl,
U8 dev_idx,
U8* ptr_data,
U16 data_len
);
|
| Description | The function usbh_hid_data_out sends data to the 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 to data to be sent. The argument data_len is a number of bytes requested to be sent. The usbh_hid_data_out function is part of the RL-USB Host Class Driver software layer. |
| Return Value | A integer value indicating number of sent data bytes. |
| See Also | usbh_hid_data_in, usbh_hid_data_in_callback, 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[] = "1234";
..
if (usbh_hid_data_out (0, 0, &data, 4)) { // If data sent to HID device
..
}
)
|