Skip to main content
Visitor II
September 26, 2024
Solved

Read PDO from source with USBPD library.

  • September 26, 2024
  • 1 reply
  • 541 views

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.

    This topic has been closed for replies.
    Best answer by kamillx

    Solved. Has to declare it by myself :)

    1 reply

    kamillxAuthorAnswer
    Visitor II
    September 26, 2024

    Solved. Has to declare it by myself :)