diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-08-24 13:43:14 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-08-24 13:43:14 +0200 |
| commit | 4d7f9a81bbe3567d8a9ce709e5d879f7ca362ac2 (patch) | |
| tree | dbf0cfc7b4ff1a37ebd1d52df5c756974e5dda58 | |
| parent | 93fdebd96d33ef759294800efe99908b3146dbbc (diff) | |
Update
| -rwxr-xr-x | README.md | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,8 +1,8 @@ # INA260 Linux Drivers This project provides two drivers: -1) `ina260.c` that is compatible with [hwmon](https://docs.kernel.org/hwmon/hwmon-kernel-api.html) -2) `ina260_full.c` that provides an entire support for registers and fields of the ina260 and maximize performance over compatibility +1) `ina2xx.c` that is compatible with [hwmon](https://docs.kernel.org/hwmon/hwmon-kernel-api.html) +2) `ina260.c` that provides an entire support for registers and fields of the ina260 and maximize performance over compatibility ## Installation @@ -13,12 +13,11 @@ This project provides two drivers: - Add device: `echo ina260 [devaddr] > /sys/bus/i2c/devices/<bus>/new_device` - Delete device: `echo [devaddr] > /sys/bus/i2c/devices/<bus>/delete_device` -## Sysfs structure for the `ina260.c` +## Sysfs structure for the `ina2xx.c` -You will mostly use the [lm-sensors](https://github.com/lm-sensors/lm-sensors) utility. Although, the ina260 registers -are accessible from `/sys/class/hwmon/hwmon[0-9]+/registers/`. +You will mostly use the [lm-sensors](https://github.com/lm-sensors/lm-sensors) utility. -## Sysfs structure for the `ina260_full.c` +## Sysfs structure for the `ina260.c` - Overview: `tree /sys/kernel/ina260` - You can access to each device registers in `/sys/kernel/ina260/<device>/registers/` - You can access to each device register fields in `/sys/kernel/ina260/<device>/fields/` |
