OpenBIC
OpenSource Bridge-IC
isl28022.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 ISL28022_H
18
#define ISL28022_H
19
20
#define ISL28022_CONFIG_REG 0x00
21
#define ISL28022_SHUNT_VOLTAGE_REG 0x01
22
#define ISL28022_BUS_VOLTAGE_REG 0x02
23
#define ISL28022_POWER_REG 0x03
24
#define ISL28022_CURRENT_REG 0x04
25
#define ISL28022_CALIBRATION_REG 0x05
26
#define ISL28022_SHUNT_VOLTAGE_THRESHOLD_REG 0x06
27
#define ISL28022_BUS_VOLTAGE_THRESHOLD_REG 0x07
28
#define ISL28022_DCS_INTERRUPT_STATUS_REG 0x08
29
#define ISL28022_AUX_CONTROL_REG 0x09
30
31
/* The VBUS voltage threshold LSB is 256 mV. */
32
#define ISL28022_BUS_VOLTAGE_THRESHOLD_LSB 256
33
34
#endif
common
dev
include
isl28022.h
Generated by
1.9.2