# INA260-sysfs-driver Link to the [ina260 datasheet](https://www.ti.com/lit/gpn/INA260). ## Installation $ make $ sudo insmod ina260.ko ## Managing INA260 devices - Add device: `echo ina260 [devaddr] > /sys/bus/i2c/devices//new_device` - Delete device: `echo [devaddr] > /sys/bus/i2c/devices//delete_device` ## Sysfs structure - Overview: `tree /sys/kernel/ina260` - You can access to each device registers in `/sys/kernel/ina260//registers/` - You can access to each device register fields in `/sys/kernel/ina260//fields/` - You can access to the currently measured current, voltage and power via `/sys/kernel/ina260//` (units are watts, amperes and volts respectively) For more informations on the registers/fields, please refer to the [ina260 datasheet](https://www.ti.com/lit/gpn/INA260). ## Notes - Tested so far on a [Beaglebone Black](https://www.beagleboard.org/boards/beaglebone-black) with a [Mikrobus Cape](https://www.mikroe.com/beaglebone-mikrobus-cape) with up to four ina260 devices attached.