bivab / smbus-cffi

Python bindings for Linux SMBus access through i2c-dev using cffi
GNU General Public License v2.0
61 stars 31 forks source link

Real I²C protocol with i2c_master_recv and i2c_master_send transactions #13

Open kaklik opened 8 years ago

kaklik commented 8 years ago

Hello, What is the best way to implement i2c_master_recv and i2c_master_send transactions in to a Python library? https://www.kernel.org/doc/Documentation/i2c/i2c-protocol

I searched for Python library which could call these I2C standard transfers. But I was not successful.. Every known Python library implements SMBus transfer subset only....

kaklik commented 7 years ago

I solved this problem by adding new methods to my fork of i2c-tools' python-smbus module. Details are here: https://github.com/MLAB-project/pymlab/issues/1#event-587804779

The improvement allows correct readout of real I2C devices (not SMBus) which have not addressed registers.