Loading...
Searching...
No Matches
ina3221_defines.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Otto-von-Guericke-Universität Magdeburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#define INA3221_REG_ADDR_LEN (1)
25#define INA3221_REG_LEN (2)
26
27#define INA3221_SHUNT_VOLTAGE_PRECISION_UV (40)
28#define INA3221_BUS_VOLTAGE_PRECISION_MV (8)
29
30#define INA3221_MANUFACTURER_ID (0x5449)
31#define INA3221_DIE_ID (0x3220)
32
37#define INA3221_MAX_SHUNT_REG_VAL ((int16_t)(0x7FF8))
38#define INA3221_MIN_SHUNT_REG_VAL ((int16_t)(0x8000))
39#define INA3221_MAX_BUS_REG_VAL ((int16_t)(0x7FF8))
40#define INA3221_MIN_BUS_REG_VAL ((int16_t)(0x8000))
41#define INA3221_MAX_SHUNT_SUM_REG_VAL ((int16_t)(0x7FFE))
42#define INA3221_MIN_SHUNT_SUM_REG_VAL ((int16_t)(0x8000))
43#define INA3221_MAX_SHUNT_UV (163800)
44#define INA3221_MIN_SHUNT_UV (-163840)
45#define INA3221_MAX_BUS_MV (26000)
46#define INA3221_MIN_BUS_MV (0)
47#define INA3221_MAX_SHUNT_SUM_UV (655320)
48#define INA3221_MIN_SHUNT_SUM_UV (-655360)
50
51#ifdef __cplusplus
52}
53#endif
54