Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
21
#ifndef INA3221_DEFINES_H
22
#define INA3221_DEFINES_H
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
#define INA3221_REG_ADDR_LEN (1)
29
#define INA3221_REG_LEN (2)
31
#define INA3221_SHUNT_VOLTAGE_PRECISION_UV (40)
32
#define INA3221_BUS_VOLTAGE_PRECISION_MV (8)
34
#define INA3221_MANUFACTURER_ID (0x5449)
35
#define INA3221_DIE_ID (0x3220)
41
#define INA3221_MAX_SHUNT_REG_VAL ((int16_t)(0x7FF8))
42
#define INA3221_MIN_SHUNT_REG_VAL ((int16_t)(0x8000))
43
#define INA3221_MAX_BUS_REG_VAL ((int16_t)(0x7FF8))
44
#define INA3221_MIN_BUS_REG_VAL ((int16_t)(0x8000))
45
#define INA3221_MAX_SHUNT_SUM_REG_VAL ((int16_t)(0x7FFE))
46
#define INA3221_MIN_SHUNT_SUM_REG_VAL ((int16_t)(0x8000))
47
#define INA3221_MAX_SHUNT_UV (163800)
48
#define INA3221_MIN_SHUNT_UV (-163840)
49
#define INA3221_MAX_BUS_MV (26000)
50
#define INA3221_MIN_BUS_MV (0)
51
#define INA3221_MAX_SHUNT_SUM_UV (655320)
52
#define INA3221_MIN_SHUNT_SUM_UV (-655360)
55
#ifdef __cplusplus
56
}
57
#endif
58
59
#endif
/* INA3221_DEFINES_H */
60
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17