HPM SDK
HPMicro Software Development Kit
hpm_pmbus_def.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 HPMicro
3
*
4
* SPDX-License-Identifier: BSD-3-Clause
5
*
6
*/
7
8
#ifndef __HPM_PMBUS_CMD_H
9
#define __HPM_PMBUS_CMD_H
10
11
12
/* Define Command macros, support 1.2 version */
13
#define PMBUS_CODE_PAGE 0x00
14
#define PMBUS_CODE_OPERATION 0x01
15
#define PMBUS_CODE_ON_OFF_CONFIG 0x02
16
#define PMBUS_CODE_CLEAR_FAULTS 0x03
17
#define PMBUS_CODE_PHASE 0x04
18
#define PMBUS_CODE_PAGE_PLUS_WRITE 0x05
19
#define PMBUS_CODE_PAGE_PLUS_READ 0x06
20
#define PMBUS_CODE_RESERVED_1 0x07
21
#define PMBUS_CODE_RESERVED_2 0x08
22
#define PMBUS_CODE_RESERVED_3 0x09
23
#define PMBUS_CODE_RESERVED_4 0x0A
24
#define PMBUS_CODE_RESERVED_5 0x0B
25
#define PMBUS_CODE_RESERVED_6 0x0C
26
#define PMBUS_CODE_RESERVED_7 0x0D
27
#define PMBUS_CODE_RESERVED_8 0x0E
28
#define PMBUS_CODE_RESERVED_9 0x0F
29
#define PMBUS_CODE_WRITE_PROTECT 0x10
30
#define PMBUS_CODE_STORE_DEFAULT_ALL 0x11
31
#define PMBUS_CODE_RESTORE_DEFAULT_ALL 0x12
32
#define PMBUS_CODE_STORE_DEFAULT_CODE 0x13
33
#define PMBUS_CODE_RESTORE_DEFAULT_CODE 0x14
34
#define PMBUS_CODE_STORE_USER_ALL 0x15
35
#define PMBUS_CODE_RESTORE_USER_ALL 0x16
36
#define PMBUS_CODE_STORE_USER_CODE 0x17
37
#define PMBUS_CODE_RESTORE_USER_CODE 0x18
38
#define PMBUS_CODE_CAPABILITY 0x19
39
#define PMBUS_CODE_QUERY 0x1A
40
#define PMBUS_CODE_SMBALERT_MASK 0x1B
41
#define PMBUS_CODE_RESERVED_10 0x1C
42
#define PMBUS_CODE_RESERVED_11 0x1D
43
#define PMBUS_CODE_RESERVED_12 0x1E
44
#define PMBUS_CODE_RESERVED_13 0x1F
45
#define PMBUS_CODE_VOUT_MODE 0x20
46
#define PMBUS_CODE_VOUT_COMMAND 0x21
47
#define PMBUS_CODE_VOUT_TRIM 0x22
48
#define PMBUS_CODE_VOUT_CAL_OFFSET 0x23
49
#define PMBUS_CODE_VOUT_MAX 0x24
50
#define PMBUS_CODE_VOUT_MARGIN_HIGH 0x25
51
#define PMBUS_CODE_VOUT_MARGIN_LOW 0x26
52
#define PMBUS_CODE_VOUT_TRANSITION_RATE 0x27
53
#define PMBUS_CODE_VOUT_DROOP 0x28
54
#define PMBUS_CODE_VOUT_SCALE_LOOP 0x29
55
#define PMBUS_CODE_VOUT_SCALE_MONITOR 0x2A
56
#define PMBUS_CODE_RESERVED_14 0x2B
57
#define PMBUS_CODE_RESERVED_15 0x2C
58
#define PMBUS_CODE_RESERVED_16 0x2D
59
#define PMBUS_CODE_RESERVED_17 0x2E
60
#define PMBUS_CODE_RESERVED_18 0x2F
61
#define PMBUS_CODE_COEFFICIENTS 0x30
62
#define PMBUS_CODE_POUT_MAX 0x31
63
#define PMBUS_CODE_MAX_DUTY 0x32
64
#define PMBUS_CODE_FREQUENCY_SWITCH 0x33
65
#define PMBUS_CODE_RESERVED_19 0x34
66
#define PMBUS_CODE_VIN_ON 0x35
67
#define PMBUS_CODE_VIN_OFF 0x36
68
#define PMBUS_CODE_INTERLEAVE 0x37
69
#define PMBUS_CODE_IOUT_CAL_GAIN 0x38
70
#define PMBUS_CODE_IOUT_CAL_OFFSET 0x39
71
#define PMBUS_CODE_FAN_CONFIG_1_2 0x3A
72
#define PMBUS_CODE_FAN_COMMAND_1 0x3B
73
#define PMBUS_CODE_FAN_COMMAND_2 0x3C
74
#define PMBUS_CODE_FAN_CONFIG_3_4 0x3D
75
#define PMBUS_CODE_FAN_COMMAND_3 0x3E
76
#define PMBUS_CODE_FAN_COMMAND_4 0x3F
77
#define PMBUS_CODE_VOUT_OV_FAULT_LIMIT 0x40
78
#define PMBUS_CODE_VOUT_OV_FAULT_RESPONSE 0x41
79
#define PMBUS_CODE_VOUT_OV_WARN_LIMIT 0x42
80
#define PMBUS_CODE_VOUT_UV_WARN_LIMIT 0x43
81
#define PMBUS_CODE_VOUT_UV_FAULT_LIMIT 0x44
82
#define PMBUS_CODE_VOUT_UV_FAULT_RESPONSE 0x45
83
#define PMBUS_CODE_IOUT_OC_FAULT_LIMIT 0x46
84
#define PMBUS_CODE_IOUT_OC_FAULT_RESPONSE 0x47
85
#define PMBUS_CODE_IOUT_OC_LV_FAULT_LIMIT 0x48
86
#define PMBUS_CODE_IOUT_OC_LV_FAULT_RESPONSE 0x49
87
#define PMBUS_CODE_IOUT_OC_WARN_LIMIT 0x4A
88
#define PMBUS_CODE_IOUT_UC_FAULT_LIMIT 0x4B
89
#define PMBUS_CODE_IOUT_UC_FAULT_RESPONSE 0x4C
90
#define PMBUS_CODE_RESERVED_20 0x4D
91
#define PMBUS_CODE_RESERVED_21 0x4E
92
#define PMBUS_CODE_OT_FAULT_LIMIT 0x4F
93
#define PMBUS_CODE_OT_FAULT_RESPONSE 0x50
94
#define PMBUS_CODE_OT_WARN_LIMIT 0x51
95
#define PMBUS_CODE_UT_WARN_LIMIT 0x52
96
#define PMBUS_CODE_UT_FAULT_LIMIT 0x53
97
#define PMBUS_CODE_UT_FAULT_RESPONSE 0x54
98
#define PMBUS_CODE_VIN_OV_FAULT_LIMIT 0x55
99
#define PMBUS_CODE_VIN_OV_FAULT_RESPONSE 0x56
100
#define PMBUS_CODE_VIN_OV_WARN_LIMIT 0x57
101
#define PMBUS_CODE_VIN_UV_WARN_LIMIT 0x58
102
#define PMBUS_CODE_VIN_UV_FAULT_LIMIT 0x59
103
#define PMBUS_CODE_VIN_UV_FAULT_RESPONSE 0x5A
104
#define PMBUS_CODE_IIN_OC_FAULT_LIMIT 0x5B
105
#define PMBUS_CODE_IIN_OC_FAULT_RESPONSE 0x5C
106
#define PMBUS_CODE_IIN_OC_WARN_LIMIT 0x5D
107
#define PMBUS_CODE_POWER_GOOD_ON 0x5E
108
#define PMBUS_CODE_POWER_GOOD_OFF 0x5F
109
#define PMBUS_CODE_TON_DELAY 0x60
110
#define PMBUS_CODE_TON_RISE 0x61
111
#define PMBUS_CODE_TON_MAX_FAULT_LIMIT 0x62
112
#define PMBUS_CODE_TON_MAX_FAULT_RESPONSE 0x63
113
#define PMBUS_CODE_TOFF_DELAY 0x64
114
#define PMBUS_CODE_TOFF_FALL 0x65
115
#define PMBUS_CODE_TOFF_MAX_WARN_LIMIT 0x66
116
#define PMBUS_CODE_RESERVED_22 0x67
117
#define PMBUS_CODE_POUT_OP_FAULT_LIMIT 0x68
118
#define PMBUS_CODE_POUT_OP_FAULT_RESPONSE 0x69
119
#define PMBUS_CODE_POUT_OP_WARN_LIMIT 0x6A
120
#define PMBUS_CODE_PIN_OP_WARN_LIMIT 0x6B
121
#define PMBUS_CODE_RESERVED_23 0x6C
122
#define PMBUS_CODE_RESERVED_24 0x6D
123
#define PMBUS_CODE_RESERVED_25 0x6E
124
#define PMBUS_CODE_RESERVED_26 0x6F
125
#define PMBUS_CODE_RESERVED_27 0x70
126
#define PMBUS_CODE_RESERVED_28 0x71
127
#define PMBUS_CODE_RESERVED_29 0x72
128
#define PMBUS_CODE_RESERVED_30 0x73
129
#define PMBUS_CODE_RESERVED_31 0x74
130
#define PMBUS_CODE_RESERVED_32 0x75
131
#define PMBUS_CODE_RESERVED_33 0x76
132
#define PMBUS_CODE_RESERVED_34 0x77
133
#define PMBUS_CODE_STATUS_BYTE 0x78
134
#define PMBUS_CODE_STATUS_WORD 0x79
135
#define PMBUS_CODE_STATUS_VOUT 0x7A
136
#define PMBUS_CODE_STATUS_IOUT 0x7B
137
#define PMBUS_CODE_STATUS_INPUT 0x7C
138
#define PMBUS_CODE_STATUS_TEMPERATURE 0x7D
139
#define PMBUS_CODE_STATUS_CML 0x7E
140
#define PMBUS_CODE_STATUS_OTHER 0x7F
141
#define PMBUS_CODE_STATUS_MFR_SPECIFIC 0x80
142
#define PMBUS_CODE_STATUS_FANS_1_2 0x81
143
#define PMBUS_CODE_STATUS_FANS_3_4 0x82
144
#define PMBUS_CODE_RESERVED_35 0x83
145
#define PMBUS_CODE_RESERVED_36 0x84
146
#define PMBUS_CODE_RESERVED_37 0x85
147
#define PMBUS_CODE_READ_EIN 0x86
148
#define PMBUS_CODE_READ_EOUT 0x87
149
#define PMBUS_CODE_READ_VIN 0x88
150
#define PMBUS_CODE_READ_IIN 0x89
151
#define PMBUS_CODE_READ_VCAP 0x8A
152
#define PMBUS_CODE_READ_VOUT 0x8B
153
#define PMBUS_CODE_READ_IOUT 0x8C
154
#define PMBUS_CODE_READ_TEMPERATURE_1 0x8D
155
#define PMBUS_CODE_READ_TEMPERATURE_2 0x8E
156
#define PMBUS_CODE_READ_TEMPERATURE_3 0x8F
157
#define PMBUS_CODE_READ_FAN_SPEED_1 0x90
158
#define PMBUS_CODE_READ_FAN_SPEED_2 0x91
159
#define PMBUS_CODE_READ_FAN_SPEED_3 0x92
160
#define PMBUS_CODE_READ_FAN_SPEED_4 0x93
161
#define PMBUS_CODE_READ_DUTY_CYCLE 0x94
162
#define PMBUS_CODE_READ_FREQUENCY 0x95
163
#define PMBUS_CODE_READ_POUT 0x96
164
#define PMBUS_CODE_READ_PIN 0x97
165
#define PMBUS_CODE_PMBUS_REVISION 0x98
166
#define PMBUS_CODE_MFR_ID 0x99
167
#define PMBUS_CODE_MFR_MODEL 0x9A
168
#define PMBUS_CODE_MFR_REVISION 0x9B
169
#define PMBUS_CODE_MFR_LOCATION 0x9C
170
#define PMBUS_CODE_MFR_DATE 0x9D
171
#define PMBUS_CODE_MFR_SERIAL 0x9E
172
#define PMBUS_CODE_APP_PROFILE_SUPPORT 0x9F
173
#define PMBUS_CODE_MFR_VIN_MIN 0xA0
174
#define PMBUS_CODE_MFR_VIN_MAX 0xA1
175
#define PMBUS_CODE_MFR_IIN_MAX 0xA2
176
#define PMBUS_CODE_MFR_PIN_MAX 0xA3
177
#define PMBUS_CODE_MFR_VOUT_MIN 0xA4
178
#define PMBUS_CODE_MFR_VOUT_MAX 0xA5
179
#define PMBUS_CODE_MFR_IOUT_MAX 0xA6
180
#define PMBUS_CODE_MFR_POUT_MAX 0xA7
181
#define PMBUS_CODE_MFR_TAMBIENT_MAX 0xA8
182
#define PMBUS_CODE_MFR_TAMBIENT_MIN 0xA9
183
#define PMBUS_CODE_MFR_EFFICIENCY_LL 0xAA
184
#define PMBUS_CODE_MFR_EFFICIENCY_HL 0xAB
185
#define PMBUS_CODE_MFR_PIN_ACCURACY 0xAC
186
#define PMBUS_CODE_IC_DEVICE_ID 0xAD
187
#define PMBUS_CODE_IC_DEVICE_REV 0xAE
188
#define PMBUS_CODE_RESERVED_38 0xAF
189
#define PMBUS_CODE_USER_DATA_00 0xB0
190
#define PMBUS_CODE_USER_DATA_01 0xB1
191
#define PMBUS_CODE_USER_DATA_02 0xB2
192
#define PMBUS_CODE_USER_DATA_03 0xB3
193
#define PMBUS_CODE_USER_DATA_04 0xB4
194
#define PMBUS_CODE_USER_DATA_05 0xB5
195
#define PMBUS_CODE_USER_DATA_06 0xB6
196
#define PMBUS_CODE_USER_DATA_07 0xB7
197
#define PMBUS_CODE_USER_DATA_08 0xB8
198
#define PMBUS_CODE_USER_DATA_09 0xB9
199
#define PMBUS_CODE_USER_DATA_10 0xBA
200
#define PMBUS_CODE_USER_DATA_11 0xBB
201
#define PMBUS_CODE_USER_DATA_12 0xBC
202
#define PMBUS_CODE_USER_DATA_13 0xBD
203
#define PMBUS_CODE_USER_DATA_14 0xBE
204
#define PMBUS_CODE_USER_DATA_15 0xBF
205
#define PMBUS_CODE_MFR_MAX_TEMP_1 0xC0
206
#define PMBUS_CODE_MFR_MAX_TEMP_2 0xC1
207
#define PMBUS_CODE_MFR_MAX_TEMP_3 0xC2
208
#define PMBUS_CODE_RESERVED_39 0xC3
209
#define PMBUS_CODE_RESERVED_40 0xC4
210
#define PMBUS_CODE_RESERVED_41 0xC5
211
#define PMBUS_CODE_RESERVED_42 0xC6
212
#define PMBUS_CODE_RESERVED_43 0xC7
213
#define PMBUS_CODE_RESERVED_44 0xC8
214
#define PMBUS_CODE_RESERVED_45 0xC9
215
#define PMBUS_CODE_RESERVED_46 0xCA
216
#define PMBUS_CODE_RESERVED_47 0xCB
217
#define PMBUS_CODE_RESERVED_48 0xCC
218
#define PMBUS_CODE_RESERVED_49 0xCD
219
#define PMBUS_CODE_RESERVED_50 0xCE
220
#define PMBUS_CODE_RESERVED_51 0xCF
221
#define PMBUS_CODE_MFR_SPECIFIC_00 0xD0
222
#define PMBUS_CODE_MFR_SPECIFIC_01 0xD1
223
#define PMBUS_CODE_MFR_SPECIFIC_02 0xD2
224
#define PMBUS_CODE_MFR_SPECIFIC_03 0xD3
225
#define PMBUS_CODE_MFR_SPECIFIC_04 0xD4
226
#define PMBUS_CODE_MFR_SPECIFIC_05 0xD5
227
#define PMBUS_CODE_MFR_SPECIFIC_06 0xD6
228
#define PMBUS_CODE_MFR_SPECIFIC_07 0xD7
229
#define PMBUS_CODE_MFR_SPECIFIC_08 0xD8
230
#define PMBUS_CODE_MFR_SPECIFIC_09 0xD9
231
#define PMBUS_CODE_MFR_SPECIFIC_10 0xDA
232
#define PMBUS_CODE_MFR_SPECIFIC_11 0xDB
233
#define PMBUS_CODE_MFR_SPECIFIC_12 0xDC
234
#define PMBUS_CODE_MFR_SPECIFIC_13 0xDD
235
#define PMBUS_CODE_MFR_SPECIFIC_14 0xDE
236
#define PMBUS_CODE_MFR_SPECIFIC_15 0xDF
237
#define PMBUS_CODE_MFR_SPECIFIC_16 0xE0
238
#define PMBUS_CODE_MFR_SPECIFIC_17 0xE1
239
#define PMBUS_CODE_MFR_SPECIFIC_18 0xE2
240
#define PMBUS_CODE_MFR_SPECIFIC_19 0xE3
241
#define PMBUS_CODE_MFR_SPECIFIC_20 0xE4
242
#define PMBUS_CODE_MFR_SPECIFIC_21 0xE5
243
#define PMBUS_CODE_MFR_SPECIFIC_22 0xE6
244
#define PMBUS_CODE_MFR_SPECIFIC_23 0xE7
245
#define PMBUS_CODE_MFR_SPECIFIC_24 0xE8
246
#define PMBUS_CODE_MFR_SPECIFIC_25 0xE9
247
#define PMBUS_CODE_MFR_SPECIFIC_26 0xEA
248
#define PMBUS_CODE_MFR_SPECIFIC_27 0xEB
249
#define PMBUS_CODE_MFR_SPECIFIC_28 0xEC
250
#define PMBUS_CODE_MFR_SPECIFIC_29 0xED
251
#define PMBUS_CODE_MFR_SPECIFIC_30 0xEE
252
#define PMBUS_CODE_MFR_SPECIFIC_31 0xEF
253
#define PMBUS_CODE_MFR_SPECIFIC_32 0xF0
254
#define PMBUS_CODE_MFR_SPECIFIC_33 0xF1
255
#define PMBUS_CODE_MFR_SPECIFIC_34 0xF2
256
#define PMBUS_CODE_MFR_SPECIFIC_35 0xF3
257
#define PMBUS_CODE_MFR_SPECIFIC_36 0xF4
258
#define PMBUS_CODE_MFR_SPECIFIC_37 0xF5
259
#define PMBUS_CODE_MFR_SPECIFIC_38 0xF6
260
#define PMBUS_CODE_MFR_SPECIFIC_39 0xF7
261
#define PMBUS_CODE_MFR_SPECIFIC_40 0xF8
262
#define PMBUS_CODE_MFR_SPECIFIC_41 0xF9
263
#define PMBUS_CODE_MFR_SPECIFIC_42 0xFA
264
#define PMBUS_CODE_MFR_SPECIFIC_43 0xFB
265
#define PMBUS_CODE_MFR_SPECIFIC_44 0xFC
266
#define PMBUS_CODE_MFR_SPECIFIC_45 0xFD
267
#define PMBUS_CODE_MFR_SPECIFIC_COMMAND_EXT 0xFE
268
#define PMBUS_CODE_PMBUS_COMMAND_EXT 0xFF
269
270
273
#endif
/* __PMBUS_CMD_H */
components
pmbus
hpm_pmbus_def.h
Generated on Tue Dec 31 2024 02:57:16 for HPM SDK by
1.9.1