Accessing low-level registers of an embedded device using Python

I have an embedded device with Python installed. Is it possible to explicitly access registers in pure Python, or do I need to write C extensions for my Python code?

+5
source share
2 answers

It seems that you cannot access low level registers. I recommend simply writing a short C extension code to allow Python to access the registers you need.

+5
source

I assume that "registers" means "i / o-mapped device registers".

If you have Linux-x86, there is a Python PortIO package .

: "PortIO - Python - , outb, inb .., C Linux x86".

+1

All Articles