zoukankan      html  css  js  c++  java
  • libusb与libFTDI

    libusb-dev提供usb接口的操作支持,libftdi-dev提供FTDI芯片ft2232D的支持


    libusb

    http://www.libusb.org/

    libusb-1.0: windows_backend

    http://www.libusb.org/wiki/windows_backend

    Driver Installation

    To access your USB devices with the Windows backend, if the device is not HID compliant, you will need to install the relevant driver. Two options are available:

    • The easiest option is to use the most recent version of our Automated Driver Installer GUI: "zadig.exe", which is part of the Windows Driver Installer library, libwdi.
      The current version, which is compatible with both 32 and 64 bit Windows platforms, starting with Windows 2000, should be able to install a WinUSB driver for any USB device.
      Note that because the installer needs to run with administrative privileges, it is recommended to check the md5 checksum after download (or recompile your own version from  the source)
      •  zadig.exe: 5.8 MB, md5sum: 30091f2c328661d006438630d13238bc, compiled with MinGW-w64 from libwdi v1.0.4.
        NB: When run in advanced mode, Zadig also allows the selection and installation of the signed libusb0.sys driver from  libusb-win32 (v.1.2.2.0).
    • Or you can download the  WinUSB driver files, then customize the .inf for your device and install the driver by following the instructions that are either provided here or in the README file that comes with the driver archive.
    libusb 是一个用C语言开发的跨平台的USB设备访问接口库。libusb 设计了一系列的外部API 为应用程序所调用,通过这些API应用程序可以操作硬件,从libusb的源代码可以看出,这些API 调用了内核的底层接口,和kernel driver中所用到的函数所实现的功能差不多,只是libusb更加接近USB 规范。使得libusb的使用也比开发内核驱动相对容易的多。


    libFTDI - FTDI USB driver with bitbang mode

    libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232D and FT245R, including the popular bitbang mode. The library is linked with your program in userspace, no kernel driver required.

    libFTDI works perfectly with Linux, Windows, MacOS X and BSD variants thanks to libusb.

     

  • 相关阅读:
    攀岩
    插入排序
    runtime error
    vector
    旅行家
    九键字母组合
    [蓝桥杯][基础训练]Sine之舞
    代码计算程序运行的时间
    max_element
    distance
  • 原文地址:https://www.cnblogs.com/arci/p/1944956.html
Copyright © 2011-2022 走看看