Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ina226.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INA226_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_INA226_H_
9
11
12/* Reset Mode. */
13#define INA226_RST_NORMAL_OPERATION 0x00
14#define INA226_RST_SYSTEM_RESET 0x01
15
16/* Averaging Mode. */
17#define INA226_AVG_MODE_1 0x00
18#define INA226_AVG_MODE_4 0x01
19#define INA226_AVG_MODE_16 0x02
20#define INA226_AVG_MODE_64 0x03
21#define INA226_AVG_MODE_128 0x04
22#define INA226_AVG_MODE_256 0x05
23#define INA226_AVG_MODE_512 0x06
24#define INA226_AVG_MODE_1024 0x07
25
26/* Conversion time for bus and shunt voltage in micro-seconds. */
27#define INA226_CONV_TIME_140 0x00
28#define INA226_CONV_TIME_204 0x01
29#define INA226_CONV_TIME_332 0x02
30#define INA226_CONV_TIME_588 0x03
31#define INA226_CONV_TIME_1100 0x04
32#define INA226_CONV_TIME_2116 0x05
33#define INA226_CONV_TIME_4156 0x06
34#define INA226_CONV_TIME_8244 0x07
35
36/* Operating Mode. */
37#define INA226_OPER_MODE_POWER_DOWN 0x00
38#define INA226_OPER_MODE_SHUNT_VOLTAGE_TRIG 0x01
39#define INA226_OPER_MODE_BUS_VOLTAGE_TRIG 0x02
40#define INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_TRIG 0x03
41#define INA226_OPER_MODE_SHUNT_VOLTAGE_CONT 0x05
42#define INA226_OPER_MODE_BUS_VOLTAGE_CONT 0x06
43#define INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_CONT 0x07
44
45#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_INA226_H_ */