I never really wanted to deal with the USB stuff, but for a new project I can't get around it.
I want to port a PC software to the Teensy.
It uses libusb:
libusb: http://libusb.sourceforge.net/api-1.0/
API: http://libusb.sourceforge.net/api-1.0/libusb_api.html
I have a list of the functions I would need (maybe not complete):
libusb_control_transfer()
libusb_bulk_transfer()
libusb_fill_bulk_transfer()
libusb_submit_transfer()
libusb_free_transfer()
libusb_alloc_transfer()
libusb_cancel_transfer()
libusb_handle_events_timeout()
libusb_handle_events_timeout_completed()
libusb_dev_mem_alloc()
libusb_dev_mem_free()
libusb_init()
libusb_get_device()
libusb_get_device_descriptor()
libusb_get_string_descriptor_ascii()
libusb_open()
libusb_claim_interface()
libusb_close()
libusb_get_device_list()
libusb_free_device_list()
libusb_reset_device()
libusb_exit()
libusb_release_interface()
(Possibly not complete)
What do you think, is this feasible?
Of course it would be ideal if you could make a libusb compatible wrapper.
Then it would be easy to port software that uses libusb to the Teensy (USB-Host).
What are the chances?
I think the ones in the first package above are the most important.
I want to port a PC software to the Teensy.
It uses libusb:
libusb: http://libusb.sourceforge.net/api-1.0/
API: http://libusb.sourceforge.net/api-1.0/libusb_api.html
I have a list of the functions I would need (maybe not complete):
libusb_control_transfer()
libusb_bulk_transfer()
libusb_fill_bulk_transfer()
libusb_submit_transfer()
libusb_free_transfer()
libusb_alloc_transfer()
libusb_cancel_transfer()
libusb_handle_events_timeout()
libusb_handle_events_timeout_completed()
libusb_dev_mem_alloc()
libusb_dev_mem_free()
libusb_init()
libusb_get_device()
libusb_get_device_descriptor()
libusb_get_string_descriptor_ascii()
libusb_open()
libusb_claim_interface()
libusb_close()
libusb_get_device_list()
libusb_free_device_list()
libusb_reset_device()
libusb_exit()
libusb_release_interface()
(Possibly not complete)
What do you think, is this feasible?
Of course it would be ideal if you could make a libusb compatible wrapper.
Then it would be easy to port software that uses libusb to the Teensy (USB-Host).
What are the chances?
I think the ones in the first package above are the most important.
Last edited: