//Bits 3-5 of IR denote addressing mode of instruction
int irAddressMode = (ir >> 2) & 0x07;通过使用0x03对ir中保存的值进行ANDing,我们只剩下位模式中的第6-7位的值(以小端字节顺序工作)。然而,我不理解第一行中需要>>运算符,为什么在ANDing之前需要先执行(ir >> 2),才能找到ir变量中第3-5位的值?
我安装的Ubuntu13.04,64位,似乎无法检测到设备。我在我的机器上尝试了几个不同的USB端口,并得到了同样的结果。004: ID 056a:030e Wacom Co., LtdOct 16 16:51:05 earth kernel: [ 7062.388031] usb 3-new full-speed USB device number 4 using ohci_hcd
Oct 16 16:51:05 earth kernel: [ 7062.611038] usb 3-New USB