|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Texas Instruments INA226 current and power monitor. More...
Files | |
| file | ina226.h |
| Devicetree binding constants for the TI INA226 power monitor. | |
Reset mode | |
Reset-mode selection. | |
| #define | INA226_RST_NORMAL_OPERATION 0x00 |
| Normal operation. | |
| #define | INA226_RST_SYSTEM_RESET 0x01 |
| Trigger a system reset. | |
Averaging mode (number of samples) | |
Averaging-mode selection. | |
| #define | INA226_AVG_MODE_1 0x00 |
| 1 sample | |
| #define | INA226_AVG_MODE_4 0x01 |
| 4 samples | |
| #define | INA226_AVG_MODE_16 0x02 |
| 16 samples | |
| #define | INA226_AVG_MODE_64 0x03 |
| 64 samples | |
| #define | INA226_AVG_MODE_128 0x04 |
| 128 samples | |
| #define | INA226_AVG_MODE_256 0x05 |
| 256 samples | |
| #define | INA226_AVG_MODE_512 0x06 |
| 512 samples | |
| #define | INA226_AVG_MODE_1024 0x07 |
| 1024 samples | |
Bus and shunt voltage conversion time | |
Bus and shunt voltage conversion-time selection. | |
| #define | INA226_CONV_TIME_140 0x00 |
| 140 µs | |
| #define | INA226_CONV_TIME_204 0x01 |
| 204 µs | |
| #define | INA226_CONV_TIME_332 0x02 |
| 332 µs | |
| #define | INA226_CONV_TIME_588 0x03 |
| 588 µs | |
| #define | INA226_CONV_TIME_1100 0x04 |
| 1100 µs | |
| #define | INA226_CONV_TIME_2116 0x05 |
| 2116 µs | |
| #define | INA226_CONV_TIME_4156 0x06 |
| 4156 µs | |
| #define | INA226_CONV_TIME_8244 0x07 |
| 8244 µs | |
Operating mode | |
Operating-mode selection. | |
| #define | INA226_OPER_MODE_POWER_DOWN 0x00 |
| Power-down. | |
| #define | INA226_OPER_MODE_SHUNT_VOLTAGE_TRIG 0x01 |
| Shunt voltage, triggered. | |
| #define | INA226_OPER_MODE_BUS_VOLTAGE_TRIG 0x02 |
| Bus voltage, triggered. | |
| #define | INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_TRIG 0x03 |
| Shunt and bus, triggered. | |
| #define | INA226_OPER_MODE_SHUNT_VOLTAGE_CONT 0x05 |
| Shunt voltage, continuous. | |
| #define | INA226_OPER_MODE_BUS_VOLTAGE_CONT 0x06 |
| Bus voltage, continuous. | |
| #define | INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_CONT 0x07 |
| Shunt and bus, continuous. | |
Texas Instruments INA226 current and power monitor.
| #define INA226_AVG_MODE_1 0x00 |
#include <zephyr/dt-bindings/sensor/ina226.h>
1 sample
| #define INA226_AVG_MODE_1024 0x07 |
#include <zephyr/dt-bindings/sensor/ina226.h>
1024 samples
| #define INA226_AVG_MODE_128 0x04 |
#include <zephyr/dt-bindings/sensor/ina226.h>
128 samples
| #define INA226_AVG_MODE_16 0x02 |
#include <zephyr/dt-bindings/sensor/ina226.h>
16 samples
| #define INA226_AVG_MODE_256 0x05 |
#include <zephyr/dt-bindings/sensor/ina226.h>
256 samples
| #define INA226_AVG_MODE_4 0x01 |
#include <zephyr/dt-bindings/sensor/ina226.h>
4 samples
| #define INA226_AVG_MODE_512 0x06 |
#include <zephyr/dt-bindings/sensor/ina226.h>
512 samples
| #define INA226_AVG_MODE_64 0x03 |
#include <zephyr/dt-bindings/sensor/ina226.h>
64 samples
| #define INA226_CONV_TIME_1100 0x04 |
#include <zephyr/dt-bindings/sensor/ina226.h>
1100 µs
| #define INA226_CONV_TIME_140 0x00 |
#include <zephyr/dt-bindings/sensor/ina226.h>
140 µs
| #define INA226_CONV_TIME_204 0x01 |
#include <zephyr/dt-bindings/sensor/ina226.h>
204 µs
| #define INA226_CONV_TIME_2116 0x05 |
#include <zephyr/dt-bindings/sensor/ina226.h>
2116 µs
| #define INA226_CONV_TIME_332 0x02 |
#include <zephyr/dt-bindings/sensor/ina226.h>
332 µs
| #define INA226_CONV_TIME_4156 0x06 |
#include <zephyr/dt-bindings/sensor/ina226.h>
4156 µs
| #define INA226_CONV_TIME_588 0x03 |
#include <zephyr/dt-bindings/sensor/ina226.h>
588 µs
| #define INA226_CONV_TIME_8244 0x07 |
#include <zephyr/dt-bindings/sensor/ina226.h>
8244 µs
| #define INA226_OPER_MODE_BUS_VOLTAGE_CONT 0x06 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Bus voltage, continuous.
| #define INA226_OPER_MODE_BUS_VOLTAGE_TRIG 0x02 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Bus voltage, triggered.
| #define INA226_OPER_MODE_POWER_DOWN 0x00 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Power-down.
| #define INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_CONT 0x07 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Shunt and bus, continuous.
| #define INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_TRIG 0x03 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Shunt and bus, triggered.
| #define INA226_OPER_MODE_SHUNT_VOLTAGE_CONT 0x05 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Shunt voltage, continuous.
| #define INA226_OPER_MODE_SHUNT_VOLTAGE_TRIG 0x01 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Shunt voltage, triggered.
| #define INA226_RST_NORMAL_OPERATION 0x00 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Normal operation.
| #define INA226_RST_SYSTEM_RESET 0x01 |
#include <zephyr/dt-bindings/sensor/ina226.h>
Trigger a system reset.