{"id":33939632,"url":"https://github.com/ftdi-rs/libftd2xx","last_synced_at":"2025-12-12T15:41:59.385Z","repository":{"id":43210907,"uuid":"275645036","full_name":"ftdi-rs/libftd2xx","owner":"ftdi-rs","description":"Rust safe wrappers for the libftd2xx drivers","archived":false,"fork":false,"pushed_at":"2025-11-21T04:15:01.000Z","size":231,"stargazers_count":38,"open_issues_count":6,"forks_count":17,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-11-21T06:16:02.732Z","etag":null,"topics":["ftd2xx","ftdi","rust","rust-safe-wrappers"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ftdi-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-06-28T18:30:06.000Z","updated_at":"2025-11-21T04:15:03.000Z","dependencies_parsed_at":"2023-12-29T09:25:45.070Z","dependency_job_id":"6852d496-eb43-4f20-88e1-2e923792e198","html_url":"https://github.com/ftdi-rs/libftd2xx","commit_stats":{"total_commits":169,"total_committers":11,"mean_commits":"15.363636363636363","dds":"0.20118343195266275","last_synced_commit":"711a35d9d792244aaf9df1ffdd047626b75935ae"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/ftdi-rs/libftd2xx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftdi-rs%2Flibftd2xx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftdi-rs%2Flibftd2xx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftdi-rs%2Flibftd2xx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftdi-rs%2Flibftd2xx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ftdi-rs","download_url":"https://codeload.github.com/ftdi-rs/libftd2xx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftdi-rs%2Flibftd2xx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27685630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ftd2xx","ftdi","rust","rust-safe-wrappers"],"created_at":"2025-12-12T15:41:58.605Z","updated_at":"2025-12-12T15:41:59.378Z","avatar_url":"https://github.com/ftdi-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/libftd2xx.svg)](https://crates.io/crates/libftd2xx)\n[![docs.rs](https://docs.rs/libftd2xx/badge.svg)](https://docs.rs/libftd2xx/)\n[![CI](https://github.com/ftdi-rs/libftd2xx/workflows/CI/badge.svg)](https://github.com/ftdi-rs/libftd2xx/actions)\n\n# libftd2xx\n\nRust safe wrapper for the [FTDI D2XX drivers].\n\nThis takes the [libftd2xx-ffi] C bindings crate and extends it with rust\nsafe wrappers.\n\n## Usage\nSimply add this crate as a dependency in your `Cargo.toml`.\n\n```toml\n[dependencies.libftd2xx]\nversion = \"0.33.1\"\n# statically link the vendor library, defaults to dynamic if not set\n# this will make things \"just work\" on Linux and Windows\nfeatures = [\"static\"]\n```\n\nThis is a basic example to get your started.\nCheck the source code or documentation for more examples.\n```rust\nuse libftd2xx::{Ftdi, FtdiCommon};\n\nlet mut ft = Ftdi::new()?;\nlet info = ft.device_info()?;\nprintln!(\"Device information: {:?}\", info);\n```\n\nThis crate is just a wrapper around the FTD2XX driver; I2C, SPI, and GPIO\nexamples using the [`embedded-hal`] traits can be found in\n[`ftdi-embedded-hal`].\n\n### udev rules\nTo access the FTDI USB device as a regular user on Linux you need to update\nthe [udev] rules.\n\nCreate a file called `/etc/udev/rules.d/99-ftdi.rules` with:\n```\nSUBSYSTEM==\"usb\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6001\", MODE=\"0666\"\nSUBSYSTEM==\"usb\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6010\", MODE=\"0666\"\nSUBSYSTEM==\"usb\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6011\", MODE=\"0666\"\nSUBSYSTEM==\"usb\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6014\", MODE=\"0666\"\nSUBSYSTEM==\"usb\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6015\", MODE=\"0666\"\n```\n\nThen, reload the rules:\n```bash\nsudo udevadm control --reload-rules\nsudo udevadm trigger\n```\n\n### Linking\n\nBy default this crate with use dynamic linking for the vendor library.\nUse the `static` feature flag to enable static linking.\n\n#### Dynamic Linking on Linux\n\nThe shared object `libftd2xx.so` must exist on your system.\nSee [FTDI Drivers Installation Guide for Linux] for instructions.\n\n#### Dynamic Linking on Windows\n\nThe FTD2XX DLL must exist on your system PATH.\nThe easiest way to install this is with the vendor provided [setup executable].\n\n#### Static Linking on Linux or Windows\n\nNo special considerations are needed, the static library is distributed with\npermission from FTDI in the [libftd2xx-ffi] crate.\n\n## References\n\n* [D2XX Programmers Guide V1.4]\n* [D2XX Drivers Download Page]\n\n## Troubleshooting\n### Unknown Device on Linux\nRemove the VCP FTDI driver.\n```bash\nsudo rmmod ftdi_sio\nsudo rmmod usbserial\n```\nSee [FTDI Drivers Installation Guide for Linux] for more details.\n\n[D2XX Drivers Download Page]: https://www.ftdichip.com/Drivers/D2XX.htm\n[D2xx Programmers Guide V1.4]: https://ftdichip.com/document/programming-guides/\n[FTDI D2XX drivers]: https://www.ftdichip.com/Drivers/D2XX.htm\n[FTDI Drivers Installation Guide for Linux]: http://www.ftdichip.cn/Support/Documents/AppNotes/AN_220_FTDI_Drivers_Installation_Guide_for_Linux.pdf\n[libftd2xx-ffi]: https://github.com/ftdi-rs/libftd2xx-ffi\n[setup executable]: https://www.ftdichip.com/Drivers/CDM/CDM21228_Setup.zip\n[udev]: https://en.wikipedia.org/wiki/Udev\n[`ftdi-embedded-hal`]: https://github.com/ftdi-rs/ftdi-embedded-hal\n[`embedded-hal`]: https://crates.io/crates/embedded-hal\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftdi-rs%2Flibftd2xx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fftdi-rs%2Flibftd2xx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftdi-rs%2Flibftd2xx/lists"}