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