Data Sheet

Table Of Contents
62
Examples
call PD_ResetSinkCaps()
5.1.9 PD_NegotiatePower_Sink
Tries to establish explicit contract as Sink by sending Request message.
Format
Call PD_NegotiatePower_Sink()
Parameters
None
Result
User can evaluate the command results(including sub-results) using IfMatched/ElseMatched
command.
List of result values:
Result Value
Description
PD_RESULT_OK
Command succeeded
PD_RESULT_FAILED
Command failed. In this case corresponding sub results
for PD_SendPacket and PD_ReceivePacket are valid
also (depends on the error type which has been occurred
during sending or receiving data).
PD_SUBRESULT_RESPONSE_REJECT
Subresult - Reject received as the response
PD_SUBRESULT_RESPONSE_WAIT
Subresult - Wait received as the response
PD_SUBRESULT_MSG_NOT_RECEIVED
Subresult - PS_RDY message not received.
Examples
call PD_NegotiatePower_Sink()
5.1.10 PD_WaitForNegotiatePower
Tries to establish explicit contract either as Source or Sink according to the current PD
Exerciser power role. If the current power role of PD Exerciser is Source, this command will
wait to receive Request message and if the current power role of PD Exerciser is Sink, it
will wait to receive Source_Capabilities message.
Format
Call PD_WaitForNegotiatePower()
Parameters
None
Result
User can evaluate the command results(including sub-results) using IfMatched/ElseMatched
command.
List of result values:
Result Value
Description
PD_RESULT_OK
Command succeeded
PD_RESULT_FAILED
Command failed. In this case corresponding sub results
for PD_SendPacket and PD_ReceivePacket are valid