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

SPI API for Python #722

Open
berk-acikgoz opened this issue Jan 19, 2024 · 1 comment
Open

SPI API for Python #722

berk-acikgoz opened this issue Jan 19, 2024 · 1 comment

Comments

@berk-acikgoz
Copy link

berk-acikgoz commented Jan 19, 2024

We are developing a program to utilize the front-panel GPIO pins of USRP X410 for SPI applications. The examples written in C++ proved useful for most purposes. However, we would like to carry the SPI functionality over to Python, for better integration with our existing code base.

The UHD development manual points to the C++ documentation for equivalent Python APIs. However, the spi_getter_iface class does not exist in Python, neither does a module with equivalent functionality (like the gpio_power class in Python equivalent to the gpio_power_iface class in C++). None of the methods of the uhd.libpyuhd.rfnoc.mb_controller (which was how I got the gpio_power object) seem to have anything to do with SPI. Is SPI functionality already implemented in Python? If so, how can it be utilized to write user applications for front panel GPIO? If not, what are the current plans on releasing it on later versions of UHD? We are using UHD version 4.6.0.

Thanks in advance!

@manderseck
Copy link
Contributor

@berk-acikgoz Sorry for the late reply. The spi_getter_iface class is indeed not yet implemented in Python. It is in our backlog, it just wasn't prioritized yet. I'll add a note to the backlog item helping us to prioritize it but I cannot promise any specific release for this feature yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants