I have an embedded device with Python installed on in. Is it possible to explicitly access registers in pure Python, or should I write C extensions for my Python code?
It seems that you can't access the low level registers. I recommend just writing a short C extension code to allow Python to access the registers you need.
I assume "registers" means "i/o-mapped device registers".
If you have Linux-x86, there is a Python PortIO package.
From the link: "PortIO is a Python wrapper for the port I/O macros like outb, inb, etc. provided by the C library on Linux x86 platforms. "
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With