linux:ftdi
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| linux:ftdi [2020/10/31 12:41] – [1.1 libmpsse] zhangguo | linux:ftdi [2026/10/14 06:39] (当前版本) – 外部编辑 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== | + | # ftdi |
| - | + | ## - 相关的开源库 | |
| - | + | ### - libmpsse | |
| - | ===== - 相关的开源库 | + | |
| - | + | ||
| - | ==== - libmpsse | + | |
| 它的调用底层也是libftdi | 它的调用底层也是libftdi | ||
| 行 11: | 行 8: | ||
| 可以直接生成python接口,方便python调用,目前在windows环境试用过,目前只支持SPI/ | 可以直接生成python接口,方便python调用,目前在windows环境试用过,目前只支持SPI/ | ||
| - | -------------- | + | --- |
| 依目前来看,自己在这个的基础上修改C代码看起来是一种比较靠谱的方式。 | 依目前来看,自己在这个的基础上修改C代码看起来是一种比较靠谱的方式。 | ||
| - | 这个项目是采用的swig与python之间进行交互接口,数据的传递是通过char *, 但是char *处理char值> | + | 这个项目是采用的swig与python之间进行交互接口,数据的传递是通过char *, 但是char *处理char值> |
| - | ==== - pyftdi | + | ### - pyftdi |
| - | '' | + | `pip install pyftdi`, https:// |
| - | 纯python实现,没有调用libftdi, | + | 纯python实现,没有调用libftdi, |
| - | <color # | + | <span style=" |
| - 其中write_dr会在TCK是出一个10ns左右的毛刺应该是个BUG,无法确认是FTDI芯片问题还是开源代码的问题。 | - 其中write_dr会在TCK是出一个10ns左右的毛刺应该是个BUG,无法确认是FTDI芯片问题还是开源代码的问题。 | ||
| - write_dr, read_dr, shift_register,都没有实现在Exit1-DR时把最后一个bit的数据发送或接收功能,JTAG功能无法真正使用。 | - write_dr, read_dr, shift_register,都没有实现在Exit1-DR时把最后一个bit的数据发送或接收功能,JTAG功能无法真正使用。 | ||
| - | 安装方式:管理员方式运行'' | + | 安装方式:管理员方式运行`python3 setup.py install`,<span style=" |
| Overview | Overview | ||
| 行 52: | 行 49: | ||
| - SPI master, with simultanous GPIO support, up to 12 pins per port, with support for non-byte sized transfer | - SPI master, with simultanous GPIO support, up to 12 pins per port, with support for non-byte sized transfer | ||
| - I2C master, with simultanous GPIO support, up to 14 pins per port | - I2C master, with simultanous GPIO support, up to 14 pins per port | ||
| - | - <color # | + | - <span style=" |
| - EEPROM support (some parameters cannot yet be modified, only retrieved) | - EEPROM support (some parameters cannot yet be modified, only retrieved) | ||
| - Experimental CBUS support on selected devices, 4 pins per port | - Experimental CBUS support on selected devices, 4 pins per port | ||
| 行 64: | 行 61: | ||
| - | ==== - pylibftdi | + | ### - pylibftdi |
| pylibftdi is a minimal Pythonic interface to FTDI devices using libftdi. | pylibftdi is a minimal Pythonic interface to FTDI devices using libftdi. | ||
| - | '' | + | `pip install pylibftdi`, |
| 支持串口, BitBang模式。 | 支持串口, BitBang模式。 | ||
| - | ==== - libFTDI | + | ### - libFTDI |
| 这个是开源的c库(https:// | 这个是开源的c库(https:// | ||
| 行 79: | 行 75: | ||
| FTD2XX is a closed-source library. A program licensed under the GNU General Public License (such as OpenOCD) cannot be distributed in binary form if linked to FTD2XX during compilation. LibFTDI is licensed under the GNU Lesser General Public License v2.1. Information on LGPL v2.1 is available at http:// | FTD2XX is a closed-source library. A program licensed under the GNU General Public License (such as OpenOCD) cannot be distributed in binary form if linked to FTD2XX during compilation. LibFTDI is licensed under the GNU Lesser General Public License v2.1. Information on LGPL v2.1 is available at http:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ## - windows系统下的使用 | ||
| + | window python ftdi | ||
| + | |||
| + | |||
| + | 原文链接: | ||
| + | |||
| + | |||
| + | 此方案自己没有试通,python调用时出现了大概DLL找不到的问题, | ||
| + | |||
| + | 还是用自己编写DLL的方式给python用靠谱点。 | ||
| + | |||
linux/ftdi.1604119314.txt.gz · 最后更改: (外部编辑)
