Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Modules
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
d
e
f
g
h
j
l
m
n
o
p
r
s
t
u
w
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
g
h
i
k
l
m
n
p
q
r
s
t
u
v
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
{
37
INA2XX_REG_CONFIGURATION
= 0x00,
38
INA2XX_REG_SHUNT_VOLTAGE
= 0x01,
39
INA2XX_REG_BUS_VOLTAGE
= 0x02,
40
INA2XX_REG_POWER
= 0x03,
41
INA2XX_REG_CURRENT
= 0x04,
42
INA2XX_REG_CALIBRATION
= 0x05,
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
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17