|
@@ -78,25 +78,31 @@ static void print_src_fixed_pdo(BaseSequentialStream *chp, uint32_t pdo)
|
78
|
78
|
chprintf(chp, "\tusb_suspend: %d\r\n", tmp);
|
79
|
79
|
}
|
80
|
80
|
|
81
|
|
- /* Unconstrained power */
|
|
81
|
+ /* Unconstrained Power */
|
82
|
82
|
tmp = (pdo & PD_PDO_SRC_FIXED_UNCONSTRAINED) >> PD_PDO_SRC_FIXED_UNCONSTRAINED_SHIFT;
|
83
|
83
|
if (tmp) {
|
84
|
84
|
chprintf(chp, "\tunconstrained_pwr: %d\r\n", tmp);
|
85
|
85
|
}
|
86
|
86
|
|
87
|
|
- /* USB communications capable */
|
|
87
|
+ /* USB Communications Capable */
|
88
|
88
|
tmp = (pdo & PD_PDO_SRC_FIXED_USB_COMMS) >> PD_PDO_SRC_FIXED_USB_COMMS_SHIFT;
|
89
|
89
|
if (tmp) {
|
90
|
90
|
chprintf(chp, "\tusb_comms: %d\r\n", tmp);
|
91
|
91
|
}
|
92
|
92
|
|
93
|
|
- /* Dual-role data */
|
|
93
|
+ /* Dual-Role Data */
|
94
|
94
|
tmp = (pdo & PD_PDO_SRC_FIXED_DUAL_ROLE_DATA) >> PD_PDO_SRC_FIXED_DUAL_ROLE_DATA_SHIFT;
|
95
|
95
|
if (tmp) {
|
96
|
96
|
chprintf(chp, "\tdual_role_data: %d\r\n", tmp);
|
97
|
97
|
}
|
98
|
98
|
|
99
|
|
- /* Peak current */
|
|
99
|
+ /* Unchunked Extended Messages Supported */
|
|
100
|
+ tmp = (pdo & PD_PDO_SRC_FIXED_UNCHUNKED_EXT_MSG) >> PD_PDO_SRC_FIXED_UNCHUNKED_EXT_MSG_SHIFT;
|
|
101
|
+ if (tmp) {
|
|
102
|
+ chprintf(chp, "\tunchunked_ext_msg: %d\r\n", tmp);
|
|
103
|
+ }
|
|
104
|
+
|
|
105
|
+ /* Peak Current */
|
100
|
106
|
tmp = (pdo & PD_PDO_SRC_FIXED_PEAK_CURRENT) >> PD_PDO_SRC_FIXED_PEAK_CURRENT_SHIFT;
|
101
|
107
|
if (tmp) {
|
102
|
108
|
chprintf(chp, "\tpeak_i: %d\r\n", tmp);
|
|
@@ -106,7 +112,7 @@ static void print_src_fixed_pdo(BaseSequentialStream *chp, uint32_t pdo)
|
106
|
112
|
tmp = (pdo & PD_PDO_SRC_FIXED_VOLTAGE) >> PD_PDO_SRC_FIXED_VOLTAGE_SHIFT;
|
107
|
113
|
chprintf(chp, "\tv: %d.%02d V\r\n", PD_PDV_V(tmp), PD_PDV_CV(tmp));
|
108
|
114
|
|
109
|
|
- /* Maximum current */
|
|
115
|
+ /* Maximum Current */
|
110
|
116
|
tmp = (pdo & PD_PDO_SRC_FIXED_CURRENT) >> PD_PDO_SRC_FIXED_CURRENT_SHIFT;
|
111
|
117
|
chprintf(chp, "\ti: %d.%02d A\r\n", PD_PDI_A(tmp), PD_PDI_CA(tmp));
|
112
|
118
|
}
|