cancel
Showing results for 
Search instead for 
Did you mean: 

Read PDO from source with USBPD library.

kamillx
Associate

Hi. I am building USB PD sink device. I would like to use built in STM32 UCPD controller.

I've created test application in STM32CUBE based on AN5418. It works properly but i want to add PDO read functiinality.

All tutorials say that all info about port is stored in DPM_Ports structure in USBPD library but in my case that structure doest exist. I only have DPM_Params, DPM_Settings, DPM_ID_Settings, DPM_User_Settings and I cant find PDO info in it.

So, what is a proper way to read PDO to do right EvaluateCapabilities? Now in my app i'm select PDO by pointing PDO index.

1 ACCEPTED SOLUTION

Accepted Solutions
kamillx
Associate

Solved. Has to declare it by myself :)

View solution in original post

1 REPLY 1
kamillx
Associate

Solved. Has to declare it by myself :)