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 
26 #ifdef __cplusplus
27  extern "C" {
28 #endif
29 
30 
36 typedef enum ina2xx_reg {
43 } ina2xx_reg_t;
44 
49 #define INA2XX_VBUS_CNVR (0x2)
50 #define INA2XX_VBUS_OVF (0x1)
57 #define INA2XX_RESET (0x8000)
58 #define INA2XX_DEFCONFIG (0x399f)
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* INA2XX_DEFINES_H */
66 
INA2XX_REG_POWER
@ INA2XX_REG_POWER
Power register (read only)
Definition: ina2xx_defines.h:40
INA2XX_REG_CURRENT
@ INA2XX_REG_CURRENT
Current register (read only)
Definition: ina2xx_defines.h:41
INA2XX_REG_SHUNT_VOLTAGE
@ INA2XX_REG_SHUNT_VOLTAGE
Shunt voltage register (read only)
Definition: ina2xx_defines.h:38
INA2XX_REG_CONFIGURATION
@ INA2XX_REG_CONFIGURATION
Configuration register (read/write)
Definition: ina2xx_defines.h:37
ina2xx_reg
ina2xx_reg
INA2XX register addresses.
Definition: ina2xx_defines.h:36
INA2XX_REG_CALIBRATION
@ INA2XX_REG_CALIBRATION
Calibration register (read/write)
Definition: ina2xx_defines.h:42
ina2xx_reg_t
enum ina2xx_reg ina2xx_reg_t
INA2XX register addresses.
INA2XX_REG_BUS_VOLTAGE
@ INA2XX_REG_BUS_VOLTAGE
Bus voltage register (read only)
Definition: ina2xx_defines.h:39