File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,41 @@ void usbpd_sink_clear_ready(void)
3838 pdControl_g .cc_USBPD_READY = 0 ;
3939}
4040
41+ uint8_t usbpd_sink_get_pdo_num (void )
42+ {
43+ return pdControl_g .cc_SourcePDONum ;
44+ }
45+
46+ uint8_t usbpd_sink_get_pps_num (void )
47+ {
48+ return pdControl_g .cc_SourcePPSNum ;
49+ }
50+
51+ uint16_t usbpd_sink_get_pdo_voltage (int index )
52+ {
53+ return pdControl_g .cc_FixedSourceCap [index ].Voltage ;
54+ }
55+
56+ uint16_t usbpd_sink_get_pdo_current (int index )
57+ {
58+ return pdControl_g .cc_FixedSourceCap [index ].Current ;
59+ }
60+
61+ uint16_t usbpd_sink_get_pps_min_voltage (int index )
62+ {
63+ return pdControl_g .cc_PPSSourceCap [index ].MinVoltage ;
64+ }
65+
66+ uint16_t usbpd_sink_get_pps_max_voltage (int index )
67+ {
68+ return pdControl_g .cc_PPSSourceCap [index ].MaxVoltage ;
69+ }
70+
71+ uint16_t usbpd_sink_get_pps_current (int index )
72+ {
73+ return pdControl_g .cc_PPSSourceCap [index ].Current ;
74+ }
75+
4176bool usbpd_sink_set_request_fixed_voltage (Request_voltage_t requestVoltage )
4277{
4378 uint16_t targetVoltage ;
You can’t perform that action at this time.
0 commit comments