User Tools

Site Tools


마소전략커맨더

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
마소전략커맨더 [2009/11/06 10:12] suapapa마소전략커맨더 [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 관련 파일 ======
 +  * drivers/hiddev.c
 +  * drivers/hid/usbhid/hid-pidff.c
 +  * Documentation/usb/gadget_hid.txt
  
 +====== HID report ======
 +  * /dev/hidgX
 +  * /dev/hidrawX
 +
 +====== references ======
 +  *[[http://www.usb.org/developers/hidpage/|Usage Tables for Physical Interface Devices]]
 +
 +
 +libusb
 +<code c>
 +int usb_control_msg(usb_dev_handle *dev, int requesttype, int request, int value, int index, char *bytes, int size, int timeout);
 +</code>
 +in kernel
 +<code>
 +/**
 + * usb_control_msg - Builds a control urb, sends it off and waits for completion
 + * @dev: pointer to the usb device to send the message to
 + * @pipe: endpoint "pipe" to send the message to
 + * @request: USB message request value
 + * @requesttype: USB message request type value
 + * @value: USB message value
 + * @index: USB message index value
 + * @data: pointer to the data to send
 + * @size: length in bytes of the data to send
 + * @timeout: time in msecs to wait for the message to complete before timing
 + * out (if 0 the wait is forever)
 + */
 +int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request,
 +     __u8 requesttype, __u16 value, __u16 index, void *data,
 +     __u16 size, int timeout)
 +</code>
 ====== code practice ====== ====== code practice ======
 ===== 깜박이는 속도 ===== ===== 깜박이는 속도 =====
마소전략커맨더.1257502376.txt.gz · Last modified: 2013/08/03 05:04 (external edit)