Loading...
Searching...
No Matches
ina3221_defines.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Otto-von-Guericke-Universität Magdeburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#define INA3221_REG_ADDR_LEN (1)
28#define INA3221_REG_LEN (2)
29
30#define INA3221_SHUNT_VOLTAGE_PRECISION_UV (40)
31#define INA3221_BUS_VOLTAGE_PRECISION_MV (8)
32
33#define INA3221_MANUFACTURER_ID (0x5449)
34#define INA3221_DIE_ID (0x3220)
35
40#define INA3221_MAX_SHUNT_REG_VAL ((int16_t)(0x7FF8))
41#define INA3221_MIN_SHUNT_REG_VAL ((int16_t)(0x8000))
42#define INA3221_MAX_BUS_REG_VAL ((int16_t)(0x7FF8))
43#define INA3221_MIN_BUS_REG_VAL ((int16_t)(0x8000))
44#define INA3221_MAX_SHUNT_SUM_REG_VAL ((int16_t)(0x7FFE))
45#define INA3221_MIN_SHUNT_SUM_REG_VAL ((int16_t)(0x8000))
46#define INA3221_MAX_SHUNT_UV (163800)
47#define INA3221_MIN_SHUNT_UV (-163840)
48#define INA3221_MAX_BUS_MV (26000)
49#define INA3221_MIN_BUS_MV (0)
50#define INA3221_MAX_SHUNT_SUM_UV (655320)
51#define INA3221_MIN_SHUNT_SUM_UV (-655360)
53
54#ifdef __cplusplus
55}
56#endif
57