OpenBIC
OpenSource Bridge-IC
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
25};
26
30}; // operating mode
31
35}; // matching comparator
36
37typedef struct _ads1015_init_arg {
38 bool is_init;
39 // user defined
41 uint8_t alert_latch;
43
44#endif
struct _ads1015_init_arg ads1015_init_arg
DEVICE_OPERATION_MODE
Definition: ads1015.h:27
@ SINGLE_SHOT_MODE
Definition: ads1015.h:29
@ CONTINUOUS_MODE
Definition: ads1015.h:28
ADS1015_REG_MAP
Definition: ads1015.h:20
@ HI_THRESH_REG
Definition: ads1015.h:24
@ LO_THRESH_REG
Definition: ads1015.h:23
@ CONFIG_REG
Definition: ads1015.h:22
@ CONVERSION_REG
Definition: ads1015.h:21
LATCH_COMPARATOR
Definition: ads1015.h:32
@ ENABLE_LATCH
Definition: ads1015.h:34
@ DISABLE_LATCH
Definition: ads1015.h:33
Definition: ads1015.h:37
uint8_t alert_latch
Definition: ads1015.h:41
bool is_init
Definition: ads1015.h:38
uint8_t device_operation_mode
Definition: ads1015.h:40