开发者

Using USB port from c++

开发者 https://www.devze.com 2022-12-17 21:18 出处:网络
i was just wondering if somebody could give me any pointers about how to use USB ports on Ubuntu(and other unix systems) &&/|| (and/or :]) windows. I was trying to googling s开发者_开发问答ome

i was just wondering if somebody could give me any pointers about how to use USB ports on Ubuntu(and other unix systems) &&/|| (and/or :]) windows. I was trying to googling s开发者_开发问答ome stuff up but i failed horribly. Even names of libraries to be used etc would be appriciated.

Thanks, Tomas Herman


You can use libusb for direct access to USB. http://www.libusb.org/

If you instead wish to use a USB serial port or other device for which the OS already has drivers, look for other means. E.g. /dev/input/event* or /dev/ttyUSB* devices on Linux.


Two quick links for you:

http://www.linux-usb.org/ - The Linux USB project

http://www.libusb.org/ - "...the libusb project. It aims to create a library for use by user level applications to access USB devices regardless of OS."

0

精彩评论

暂无评论...
验证码 换一张
取 消