ina2xx_defines.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Eistec AB
3  * 2019 Otto-von-Guericke-Universität Magdeburg
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
22 #ifndef INA2XX_DEFINES_H
23 #define INA2XX_DEFINES_H
24 
25 #ifdef __cplusplus
26  extern "C" {
27 #endif
28 
34 typedef enum ina2xx_reg {
42 
47 #define INA2XX_VBUS_CNVR (0x2)
48 #define INA2XX_VBUS_OVF (0x1)
55 #define INA2XX_RESET (0x8000)
56 #define INA2XX_DEFCONFIG (0x399f)
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* INA2XX_DEFINES_H */
ina2xx_reg
INA2XX register addresses.
@ INA2XX_REG_CURRENT
Current register (read only)
@ INA2XX_REG_SHUNT_VOLTAGE
Shunt voltage register (read only)
@ INA2XX_REG_CONFIGURATION
Configuration register (read/write)
@ INA2XX_REG_BUS_VOLTAGE
Bus voltage register (read only)
@ INA2XX_REG_POWER
Power register (read only)
@ INA2XX_REG_CALIBRATION
Calibration register (read/write)
enum ina2xx_reg ina2xx_reg_t
INA2XX register addresses.