mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-30 17:50:46 +00:00
63d2fb53fc
Add BaylibreAcmeInstrument, a new instrument providing support for the Baylibre ACME board as a wrapper for the IIO interface. This class provides better access to the ACME hardware (e.g. the ability to control the sampling frequency) and to the retrieved samples than what the other instrument, AcmeCapeInstrument, provides. Furthermore, it removes an unnecessary and limiting dependency by interfacing directly with the IIO drivers instead of relying on an intermediate script ("iio-capture") potentially introducing unexpected bugs. Finally, it allows handling multiple probes (the ACME can have up to 8) through an easy-to-use single instance of this class instead of having to have an instance of AcmeCapeInstrument per channel potentially (untested) leading to race conditions between the underlying scripts for accessing the hardware. This commit does not overwrite AcmeCapeInstrument as BaylibreAcmeInstrument does not provide interface compatibility with that class. Anyhow, we believe that anything that can be achieved with AcmeCapeInstrument can be done with BaylibreAcmeInstrument (the reciprocal is not true) so that BaylibreAcmeInstrument might eventually replace AcmeCapeInstrument. Add BaylibreAcmeInstrument documentation detailing the class interface and the ACME instrument itself and discussing the way it works and its potential limitations.