* When I use this command below:

print  e.bEndpointAddress,usb.util.endpoint_type(e.bEndpointAddress)

It returns types as in integer but I am not sure which integer corresponds
to these:

ENDPOINT_TYPE_CTRL, ENDPOINT_TYPE_ISO, ENDPOINT_TYPE_BULK or
ENDPOINT_TYPE_INTR.

Currently I am using an endpoint with endpoint_type of 2 to write and an
another endpoint with endpoint_type of 0. It seems to send and receive
bytes.

07 Eylül 2010 01:35 tarihinde Kaan AKŞİT <kun...@gmail.com> yazdı:

> 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)
>
> 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

Reply via email to