2010/9/6 Kaan AKŞİT <kun...@gmail.com>: > Dear all, > > I am trying to immigrate some code from C to Python. I am stuck with above C > line: > > libusb_bulk_transfer(handle, endpoint | LIBUSB_ENDPOINT_IN, data, size, > &recvd, 0)
Just use self.read(endpoint, size) This is enough... > > What I have noticed, self.dev.write(endpoint,data) is not totally same with > above line. I am looking forward to hear your advises... > > Beside this I found 4 endpoints in my USB device. Is there a way to > determine what are those 4 pipes are for? DATA_IN, DATA_OUT,.... So far I > manage to understand what are they for but it will be great to automatize it > to have more flexibility. > > Best regards, > Kaan > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > pyusb-users mailing list > pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users