X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.maxusbftdi;h=0934407ed84f8c8bf739cfad50d7fb89b4165f10;hp=8a7d1d4b41a65282765b780e55bfb49246d94196;hb=c2f3ad0c8d0ece4dde761e255cd4cfacf76ed2ea;hpb=90b5c7d99bdbf0f07e7a1306189e851d57bedad4 diff --git a/client/goodfet.maxusbftdi b/client/goodfet.maxusbftdi index 8a7d1d4..0934407 100755 --- a/client/goodfet.maxusbftdi +++ b/client/goodfet.maxusbftdi @@ -192,29 +192,7 @@ class GoodFETMAXUSBFTDI(GoodFETMAXUSB): # STRING descriptor 3 - Serial Number ID "\x14\x03S\x00/\x00N\x00 \x003\x004\x002\x000\x00E\x00" ]; - RepD=[ - 0x05,0x01, # Usage Page (generic desktop) - 0x09,0x06, # Usage (keyboard) - 0xA1,0x01, # Collection - 0x05,0x07, # Usage Page 7 (keyboard/keypad) - 0x19,0xE0, # Usage Minimum = 224 - 0x29,0xE7, # Usage Maximum = 231 - 0x15,0x00, # Logical Minimum = 0 - 0x25,0x01, # Logical Maximum = 1 - 0x75,0x01, # Report Size = 1 - 0x95,0x08, # Report Count = 8 - 0x81,0x02, # Input(Data,Variable,Absolute) - 0x95,0x01, # Report Count = 1 - 0x75,0x08, # Report Size = 8 - 0x81,0x01, # Input(Constant) - 0x19,0x00, # Usage Minimum = 0 - 0x29,0x65, # Usage Maximum = 101 - 0x15,0x00, # Logical Minimum = 0, - 0x25,0x65, # Logical Maximum = 101 - 0x75,0x08, # Report Size = 8 - 0x95,0x01, # Report Count = 1 - 0x81,0x00, # Input(Data,Variable,Array) - 0xC0] + def send_descriptor(self,SUD): """Send the USB descriptors based upon the setup data.""" desclen=0; @@ -230,9 +208,6 @@ class GoodFETMAXUSBFTDI(GoodFETMAXUSB): elif desctype==GD_STRING: desclen=self.strDesc[ord(SUD[wValueL])][0]; ddata=self.strDesc[ord(SUD[wValueL])]; - #elif desctype==GD_REPORT: - # desclen=self.CD[25]; - # ddata=self.RepD; #TODO Configuration, String, Hid, and Report @@ -293,7 +268,7 @@ class GoodFETMAXUSBFTDI(GoodFETMAXUSB): #else: # self.do_IN3(); - typestring="GoodFET emulates FTDI properly, if you can read this!"; + typestring="GoodFET emulates FTDI properly, if you can read this!\n"; typepos=0; def type_IN3(self):