OpenBIC
OpenSource Bridge-IC
Toggle main menu visibility
Main Page
Related Pages
Classes
Class List
Class Index
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
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
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
x
Enumerations
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
ads1015.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef ADS1015_H
18
#define ADS1015_H
19
20
enum
ADS1015_REG_MAP
{
21
CONVERSION_REG
,
22
CONFIG_REG
,
23
LO_THRESH_REG
,
24
HI_THRESH_REG
,
25
};
26
27
enum
DEVICE_OPERATION_MODE
{
28
CONTINUOUS_MODE
,
29
SINGLE_SHOT_MODE
,
30
};
// operating mode
31
32
enum
LATCH_COMPARATOR
{
33
DISABLE_LATCH
,
34
ENABLE_LATCH
,
35
};
// matching comparator
36
37
typedef
struct
_ads1015_init_arg
{
38
bool
is_init
;
39
// user defined
40
uint8_t
device_operation_mode
;
41
uint8_t
alert_latch
;
42
}
ads1015_init_arg
;
43
44
#endif
ads1015_init_arg
struct _ads1015_init_arg ads1015_init_arg
DEVICE_OPERATION_MODE
DEVICE_OPERATION_MODE
Definition:
ads1015.h:27
SINGLE_SHOT_MODE
@ SINGLE_SHOT_MODE
Definition:
ads1015.h:29
CONTINUOUS_MODE
@ CONTINUOUS_MODE
Definition:
ads1015.h:28
ADS1015_REG_MAP
ADS1015_REG_MAP
Definition:
ads1015.h:20
HI_THRESH_REG
@ HI_THRESH_REG
Definition:
ads1015.h:24
LO_THRESH_REG
@ LO_THRESH_REG
Definition:
ads1015.h:23
CONFIG_REG
@ CONFIG_REG
Definition:
ads1015.h:22
CONVERSION_REG
@ CONVERSION_REG
Definition:
ads1015.h:21
LATCH_COMPARATOR
LATCH_COMPARATOR
Definition:
ads1015.h:32
ENABLE_LATCH
@ ENABLE_LATCH
Definition:
ads1015.h:34
DISABLE_LATCH
@ DISABLE_LATCH
Definition:
ads1015.h:33
_ads1015_init_arg
Definition:
ads1015.h:37
_ads1015_init_arg::alert_latch
uint8_t alert_latch
Definition:
ads1015.h:41
_ads1015_init_arg::is_init
bool is_init
Definition:
ads1015.h:38
_ads1015_init_arg::device_operation_mode
uint8_t device_operation_mode
Definition:
ads1015.h:40
common
dev
include
ads1015.h
Generated by
1.9.2