OpenBIC
OpenSource Bridge-IC
xdp710.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 XDP710_H
18#define XDP710_H
19
20#include <stdint.h>
21
27};
28
35};
36
37typedef struct {
39 uint16_t m;
40 uint16_t b;
41 uint16_t r; /* multiples of 10, r = -2 -> val = 100 */
42 float r_sense; /* mohm */
44
45typedef struct _xdp710_init_arg {
46 float r_sense;
48
49#endif // XDP710_H
Definition: xdp710.h:45
float r_sense
Definition: xdp710.h:46
Definition: xdp710.h:37
bool mbr_init
Definition: xdp710.h:38
uint16_t m
Definition: xdp710.h:39
uint16_t r
Definition: xdp710.h:41
float r_sense
Definition: xdp710.h:42
uint16_t b
Definition: xdp710.h:40
struct _xdp710_init_arg xdp710_init_arg
XDP710_VSNS_CS
Definition: xdp710.h:29
@ VSNS_CS_100
Definition: xdp710.h:33
@ VSNS_CS_50
Definition: xdp710.h:32
@ VSNS_CS_MAX
Definition: xdp710.h:34
@ VSNS_CS_25
Definition: xdp710.h:31
@ VSNS_CS_12_5
Definition: xdp710.h:30
XDP710_VTLM_RNG
Definition: xdp710.h:22
@ VTLM_RNG_88
Definition: xdp710.h:23
@ VTLM_RNG_RESERVED
Definition: xdp710.h:26
@ VTLM_RNG_44
Definition: xdp710.h:24
@ VTLM_RNG_22
Definition: xdp710.h:25