Go to the documentation of this file.
20 #ifndef INA3221_INTERNAL_H
21 #define INA3221_INTERNAL_H
static int16_t bus_voltage_mv_to_reg_val(int16_t b_mv)
Convert bus voltage in mV to register value.
static int16_t sum_shunt_voltage_uv_to_reg_val(int32_t sum_suv)
Convert shunt voltage sum value in uV to register value.
#define INA3221_MAX_SHUNT_UV
Max.
#define assert(cond)
abort the program if assertion is false
#define INA3221_MAX_BUS_MV
Max.
#define INA3221_MAX_SHUNT_SUM_UV
Max.
POSIX.1-2008 compliant version of the assert macro.
#define INA3221_MAX_SHUNT_REG_VAL
0111 1111 1111 1000
#define INA3221_MAX_BUS_REG_VAL
0111 1111 1111 1000
static int32_t sum_reg_val_to_shunt_voltage_uv(int16_t sum_reg_val)
Convert register value to shunt voltage sum value in mV.
Device driver interface for Texas Instruments INA3221 three-channel ,high-side current and bus voltag...
Internal definitions for Texas Instruments INA3221 three-channel, high-side current and bus voltage m...
#define INA3221_MAX_SHUNT_SUM_REG_VAL
0111 1111 1111 1110
static int32_t reg_val_to_shunt_voltage_uv(int16_t reg_val)
Convert register value to shunt voltage in uV.
#define INA3221_MIN_BUS_MV
Min.
#define INA3221_SHUNT_VOLTAGE_PRECISION_UV
Shunt voltage measurement precision.
#define INA3221_BUS_VOLTAGE_PRECISION_MV
Bus voltage measurement precision.
static int16_t shunt_voltage_uv_to_reg_val(int32_t s_uv)
Convert shunt voltage in uV to register value.
static int16_t reg_val_to_bus_voltage_mv(int16_t reg_val)
Convert register value to bus voltage in mV.