How to define the value to match my device ?
I want to write a usb driver for my device ! But when i read some samples , i find there some information about definning the value to match the device,eg:
#define USB_SKEL_VENDOR_ID 0xfff0 #define USB_SKEL_PRODUCT_ID 0xfff0 My question is how to know the values about the device,or how to define the value to match the devices ? |
You can try to plug the usb disk and see which device is assigned (es. /dev/sdb). Then try
Code:
$ udevinfo -a -p /sys/block/sdb |
Thanks !
|
All times are GMT -5. The time now is 09:29 AM. |