cancel
Showing results for 
Search instead for 
Did you mean: 

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

NRocc
Associate

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?

1 REPLY 1
Gregory Go.
Senior II

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.