Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libftd3xx support / libft260 / python support #69

Open
drebbe-intrepid opened this issue May 22, 2023 · 14 comments
Open

libftd3xx support / libft260 / python support #69

drebbe-intrepid opened this issue May 22, 2023 · 14 comments
Labels
question Further information is requested

Comments

@drebbe-intrepid
Copy link

drebbe-intrepid commented May 22, 2023

Hello,

I'm currently maintaining internally projects for ftd2xx, ftd3xx, and ft260 (windows only AFAIK) as Python C modules. They are unfinished and not really worth opening to the public. I'd like to start over in rust. If I can get the initial work done, would you be interested in joining it here under ftdi-rs?

@newAM
Copy link
Member

newAM commented May 22, 2023

What would be involved in this? I haven't looked into the ftd3xx chips, I know they have a different library, are the functions different enough for this to be a separate crate?

@newAM newAM added the question Further information is requested label May 22, 2023
@drebbe-intrepid
Copy link
Author

Its similar but different. It kind of feels like FTDI took the existing library and just copy / pasted it for use on the next chip. FT_ListDevices() is similar but FT_Open() is FT_Create() in ftd3xx. FT260 library is completely "different" with FT260_CreateDeviceList() and FT260_Open().

It might be possible once all these are implemented, a higher level crate to glue them all together would be nice. I'm mainly using these libraries for production time programming of the chips.

See below links for the programming guides as a reference.

https://ftdichip.com/wp-content/uploads/2020/08/D2XX_Programmers_GuideFT_000071.pdf

https://ftdichip.com/wp-content/uploads/2020/08/AN_379-D3xx-Programmers-Guide-1.pdf

https://ftdichip.com/wp-content/uploads/2022/05/AN_395_User_Guide_for_LibFT260.pdf

https://ftdichip.com/document/programming-guides/

@drebbe-intrepid
Copy link
Author

I did the bare minimum to get bindgen to work (linux x64) and to generate docs here: https://github.com/drebbe-intrepid/libftd3xx-ffi

@newAM
Copy link
Member

newAM commented May 24, 2023

That sounds good to me! I sent you an invite for the org. I think you have permission to make repositories.

@drebbe-intrepid
Copy link
Author

I moved the repository into here, I'll keep working on it to make it functional. Is there a way to contact you (discord) or something?

@newAM
Copy link
Member

newAM commented May 24, 2023

I'm usually on matrix for IM if you have that @newAM on :matrix.org

@drebbe-intrepid
Copy link
Author

@newAM I tried messaging you, not sure if you got it yet.

@newAM
Copy link
Member

newAM commented May 29, 2023

I haven't gotten anything yet, what's your matrix user?

@drebbe-intrepid
Copy link
Author

@drebbe:matrix.org

@newAM
Copy link
Member

newAM commented May 29, 2023

I sent you a message, hopefully it works. I'm also usually in the #rust-embedded:matrix.org room on matrix.

@Sandvoxel
Copy link

Did this stop being developed? A libft260 would be nice but I can only seem to find the c bindings.

@drebbe-intrepid
Copy link
Author

drebbe-intrepid commented Feb 23, 2024

@Sandvoxel I haven't had time to develop on this lately. I do need it though. There is a repo up for libftd3xx

@drebbe-intrepid
Copy link
Author

https://github.com/ftdi-rs/libftd3xx-ffi

https://github.com/ftdi-rs/libftd3xx

I haven't done anything for ft260

@Sandvoxel
Copy link

Thanks for the info I'm going down the route of talking with the ft260 directly with rusb thing seem to be going well with that. I dont really know where that would fit under this project but I'm willing to share it if you would like. It just would not be a full implementation as I only want to talk with the uart portion of the chip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants