Lines Matching full:device

21  * This function will do USB_REQ_SET_IDLE request to set idle period to the usb hid device
32 struct uinstance* device; in rt_usbh_hid_set_idle() local
37 RT_ASSERT(intf->device != RT_NULL); in rt_usbh_hid_set_idle()
39 device = intf->device; in rt_usbh_hid_set_idle()
48 if(rt_usb_hcd_control_xfer(device->hcd, device, &setup, RT_NULL, 0, in rt_usbh_hid_set_idle()
54 * This function will do USB_REQ_GET_REPORT request to get report from the usb hid device
66 struct uinstance* device; in rt_usbh_hid_get_report() local
71 RT_ASSERT(intf->device != RT_NULL); in rt_usbh_hid_get_report()
73 device = intf->device; in rt_usbh_hid_get_report()
82 if(rt_usb_hcd_control_xfer(device->hcd, device, &setup, buffer, size, in rt_usbh_hid_get_report()
88 * This function will do USB_REQ_SET_REPORT request to set report to the usb hid device
99 struct uinstance* device; in rt_usbh_hid_set_report() local
104 RT_ASSERT(intf->device != RT_NULL); in rt_usbh_hid_set_report()
106 device = intf->device; in rt_usbh_hid_set_report()
115 if(rt_usb_hcd_control_xfer(device->hcd, device, &setup, buffer, size, in rt_usbh_hid_set_report()
121 * This function will do USB_REQ_SET_PROTOCOL request to set protocal to the usb hid device.
131 struct uinstance* device; in rt_usbh_hid_set_protocal() local
136 RT_ASSERT(intf->device != RT_NULL); in rt_usbh_hid_set_protocal()
138 device = intf->device; in rt_usbh_hid_set_protocal()
147 if(rt_usb_hcd_control_xfer(device->hcd, device, &setup, RT_NULL, 0, in rt_usbh_hid_set_protocal()
153 * This function will do USB_REQ_GET_DESCRIPTOR request for the device instance
166 struct uinstance* device; in rt_usbh_hid_get_report_descriptor() local
171 RT_ASSERT(intf->device != RT_NULL); in rt_usbh_hid_get_report_descriptor()
173 device = intf->device; in rt_usbh_hid_get_report_descriptor()
182 if(rt_usb_hcd_control_xfer(device->hcd, device, &setup, buffer, size, in rt_usbh_hid_get_report_descriptor()
229 RT_ASSERT(pipe->intf->device->hcd != RT_NULL); in rt_usbh_hid_callback()
231 rt_usb_hcd_int_xfer(pipe->intf->device->hcd, pipe, hid->buffer, in rt_usbh_hid_callback()
259 * This function will run hid class driver when usb device is detected and identified
260 * as a hid class device, it will continue the enumulate process.
285 ("HID device enable, protocal id %d\n", pro_id)); in rt_usbh_hid_enable()
321 ret = rt_usb_hcd_alloc_pipe(intf->device->hcd, &hid->pipe_in, in rt_usbh_hid_enable()
331 RT_ASSERT(pipe->intf->device->hcd != RT_NULL); in rt_usbh_hid_enable()
333 rt_usb_hcd_int_xfer(pipe->intf->device->hcd, hid->pipe_in, in rt_usbh_hid_enable()
339 * This function will be invoked when usb device plug out is detected and it would clean
361 rt_usb_hcd_free_pipe(intf->device->hcd, hid->pipe_in); in rt_usbh_hid_disable()