Skip to main content
NRocc
Visitor II
July 15, 2019
Question

Does anyone know how to get sink capabilities using the STUSB4710?

  • July 15, 2019
  • 1 reply
  • 778 views

I'm using the evaluation board ISC004V1 and using the GUI STUSB001 I noticed that you can get the sink capabilities when there is a load connected. I suppose that this is done by sending a message to the load and to do that I think you have to write in some register of the STUSB4710 but in the register map I didn't find anything about it. Is there a way to get the sink capabilities by using a Nucleo and the I2C communication?

This topic has been closed for replies.

1 reply

Gregory Go.
Senior III
December 6, 2019

Hello,

There is a code example which show how to perform your request with STUSB47xx, at this link:

https://github.com/usb-c/STUSB4700_PowerSharing/blob/master/Firmware/Project/Src/USBPD_Lib/USB_PD_core.c

- To know which contract has been negotiated between the USB-PD Source and the Sink, use the function:

Get_PD_Contract()

- To know the USB-PD Sink capabilities, use the function:

Get_sink_cap()

Best regards.