Metadata-Version: 2.5
Name: instro-i2c-aardvark
Version: 1.0.1
Summary: Total Phase Aardvark I2C driver for instro
Project-URL: Homepage, https://github.com/nominal-io/instro
Project-URL: Documentation, https://instro.nominal.io
Project-URL: Repository, https://github.com/nominal-io/instro
Project-URL: Issues, https://github.com/nominal-io/instro/issues
Project-URL: Changelog, https://github.com/nominal-io/instro/blob/main/packages/instro-i2c-aardvark/CHANGELOG.md
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: aardvark,host-adapter,i2c,instro,total-phase
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Manufacturing
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: System :: Hardware
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Requires-Python: <3.15,>=3.11
Requires-Dist: instro
Requires-Dist: pyaardvark>=0.8.1
Description-Content-Type: text/markdown

# instro-i2c-aardvark

Total Phase Aardvark I2C driver for [`instro`](https://github.com/nominal-io/instro).

This package contributes `Aardvark` under `instro.i2c.drivers.totalphase`. The driver talks to the [Total Phase Aardvark](https://www.totalphase.com/products/aardvark-i2cspi/) I2C/SPI host adapter through the `pyaardvark` binding, and runs behind the `I2CInterface` hardware abstraction.

## Installation

```bash
pip install 'instro[aardvark]'   # alias: instro[i2c]
```

The Aardvark shared library is a separate vendor install from Total Phase and is required at runtime on Windows, macOS, and Linux.

## Usage

Construct the driver with the adapter serial number, then pass it to `I2CInterface` along with a system definition describing the peripherals on the bus:

```python
from instro.i2c import I2CInterface
from instro.i2c.drivers.totalphase import Aardvark

i2c = I2CInterface(
    name="myI2C",
    driver=Aardvark(serial_number="2239-764425"),
    system_definition=my_system_definition(),
)
```

See the [I2C guides](https://instro.nominal.io) for system definitions, register and field access, and publishing to Nominal Core.

## License

[Apache License 2.0](https://github.com/nominal-io/instro/blob/main/packages/instro-i2c-aardvark/LICENSE).
