LCOV - code coverage report
Current view: top level - zephyr/dt-bindings/sensor - ina226.h Hit Total Coverage
Test: new.info Lines: 0 26 0.0 %
Date: 2024-12-21 18:13:37

          Line data    Source code
       1           0 : /*
       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             : 
      10             : #include <zephyr/dt-bindings/dt-util.h>
      11             : 
      12             : /* Reset Mode. */
      13           0 : #define INA226_RST_NORMAL_OPERATION     0x00
      14           0 : #define INA226_RST_SYSTEM_RESET         0x01
      15             : 
      16             : /* Averaging Mode. */
      17           0 : #define INA226_AVG_MODE_1               0x00
      18           0 : #define INA226_AVG_MODE_4               0x01
      19           0 : #define INA226_AVG_MODE_16              0x02
      20           0 : #define INA226_AVG_MODE_64              0x03
      21           0 : #define INA226_AVG_MODE_128             0x04
      22           0 : #define INA226_AVG_MODE_256             0x05
      23           0 : #define INA226_AVG_MODE_512             0x06
      24           0 : #define INA226_AVG_MODE_1024            0x07
      25             : 
      26             : /* Conversion time for bus and shunt voltage in micro-seconds. */
      27           0 : #define INA226_CONV_TIME_140            0x00
      28           0 : #define INA226_CONV_TIME_204            0x01
      29           0 : #define INA226_CONV_TIME_332            0x02
      30           0 : #define INA226_CONV_TIME_588            0x03
      31           0 : #define INA226_CONV_TIME_1100           0x04
      32           0 : #define INA226_CONV_TIME_2116           0x05
      33           0 : #define INA226_CONV_TIME_4156           0x06
      34           0 : #define INA226_CONV_TIME_8244           0x07
      35             : 
      36             : /* Operating Mode. */
      37           0 : #define INA226_OPER_MODE_POWER_DOWN                     0x00
      38           0 : #define INA226_OPER_MODE_SHUNT_VOLTAGE_TRIG             0x01
      39           0 : #define INA226_OPER_MODE_BUS_VOLTAGE_TRIG               0x02
      40           0 : #define INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_TRIG         0x03
      41           0 : #define INA226_OPER_MODE_SHUNT_VOLTAGE_CONT             0x05
      42           0 : #define INA226_OPER_MODE_BUS_VOLTAGE_CONT               0x06
      43           0 : #define INA226_OPER_MODE_SHUNT_BUS_VOLTAGE_CONT         0x07
      44             : 
      45             : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_INA226_H_ */

Generated by: LCOV version 1.14