Data Sheet

Table Of Contents
65
Examples
call PD_SwapPowerRole()
5.1.14 PD_WaitForSwapPowerRole
Waits to receive PR_Swap message and will respond to incoming messages as part of the
Swap Power Role AMS.
Format
Call PD_WaitForSwapPowerRole()
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_WAIT
Subresult - Wait has been sent as response
PD_SUBRESULT_RESPONSE_REJECT
Subresult - Reject has been sent as response
PD_SUBRESULT_MSG_NOT_RECEIVED
Subresult - PR_Swap message not received or PS_RDY
message not received(PD Exerciser as Sink)
PD_SUBRESULT_RESPONSE_NOT_SUPPORTED
Rev3.0 only. Subresult - Not_Supported has been sent as
response
Examples
call PD_WaitForSwapPowerRole()
5.1.15 PD_FastRoleSwap
Sends the FastRoleSwap Signal and handles Fast Role Swap AMS.
Note- Received FastRoleSwap Signal will handle by FastRoleSwap event handler
automatically.
Format
Call PD_FastRoleSwap()
Parameters
None
Result
User can evaluate the command results(including sub-results) using IfMatched/ElseMatched
command.
List of result values: