Loading...
Searching...
No Matches
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
10#pragma once
11
23
24#ifdef __cplusplus
25 extern "C" {
26#endif
27
41
46#define INA2XX_VBUS_CNVR (0x2)
47#define INA2XX_VBUS_OVF (0x1)
49
54#define INA2XX_RESET (0x8000)
55#define INA2XX_DEFCONFIG (0x399f)
57
58#ifdef __cplusplus
59}
60#endif
61
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.