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