[NUCLEO-F072RB EVK <==> STUSB4500] How to select PDO position using I2C register?
I have used NUCLEO-F072RB EVK <==> STUSB4500 and tried to execute below git code.
https://github.com/usb-c/STUSB4500/tree/master/Firmware
I received below logs when source device attached:
########################################################################
=================== USB PD Sink Firmware v1.00 ===================
STUSB4500 detected. (0x21)
=== CABLE: Attached [CC2]
---- RDO (negociated power) ----
Requested PDO Position: 1
Operating Current: 3.00 A , Max Current: 3.00 A
USB Com capable: 0 , Capability Mismatch: 0
Voltage requested: 5.00 V
---- Usb_Port #0: Read PDO from Source ----
0 x PDO:
P(max)=0W
---- Usb_Port #0 : Read local Sink PDO ------
3 x PDO:
- Fixed PDO1=(5.00V, 3.00A, = 15W)
- Fixed PDO2=(15.00V, 1.50A, = 22W)
- Fixed PDO3=(20.00V, 1.50A, = 30W)
irq_40
=== CABLE: Attached [CC2]
irq_02 irq_02 DataMsg01(SourceCap) CtrlMsg03(Accept)
---- Usb_Port #0: Read PDO from Source ----
2 x PDO:
- PDO_FROM_SRC(1)=(5.00V, 3.00A, = 15W)
- PDO_FROM_SRC(2)=(9.00V, 2.00A, = 18W)
P(max)=18W
irq_02 irq_02 CtrlMsg06(PS_RDY)
---- RDO (negociated power) ----
Requested PDO Position: 1
Operating Current: 3.00 A , Max Current: 3.00 A
USB Com capable: 0 , Capability Mismatch: 0
Voltage requested: 0.00 V
irq_02 DataMsg0F(VDM) irq_02 DataMsg0F(VDM) irq_02 DataMsg0F(VDM) irq_02 DataMsg0F(VDM) irq_02 DataMsg0F(VDM) irq_02 DataMsg0F(VDM) irq_02 DataMsg0F(VDM) irq_02 DataMsg0F(VDM) irq_02 DataMsg0F(VDM) DataMsg0F(VDM) irq_02
########################################################################
So when source device [adaptor ] attached than source device send source capability i.e. 5V@3A and 9V@2A. and It's select PDO position 1 [5V@3A].
If I want to select PDO position 2 [9V@2A] instead of position 1 [5V@3A] than which type of changes is required or which register I need to set for select PDO position?
So when I attached "standard DCP type C [1.5A/3A]" device attached [Not PD compliant adaptor i.e. Nokia adaptor or [Type A to Type C cable 5V,2A] which is USB C support but non-PD standard adaptor] then How can I get source capability? and How can I set capability on sink device side?