Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions for USBPD #175

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add functions for USBPD #175

wants to merge 1 commit into from

Conversation

21km43
Copy link

@21km43 21km43 commented Jan 11, 2025

  • Add functions for usbpd.
uint8_t usbpd_sink_get_pdo_num(void);
uint8_t usbpd_sink_get_pps_num(void);
uint16_t usbpd_sink_get_pdo_voltage(int index);
uint16_t usbpd_sink_get_pdo_current(int index);
uint16_t usbpd_sink_get_pps_min_voltage(int index);
uint16_t usbpd_sink_get_pps_max_voltage(int index);
uint16_t usbpd_sink_get_pps_current(int index);

@21km43 21km43 changed the title Add functions for usbpd Add functions for USBPD Jan 20, 2025
@tako0910
Copy link
Contributor

Sounds good. I am making the same changes in my personal repository.
Without these functions, it is not possible to retrieve PDO/PPS-related values.
Therefore, this pull request is useful.

(In #137, I mentioned that I would create a separate PR, but I didn’t.
Thank you for publishing instead!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants