Data Sheet

Table Of Contents
67
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_TIMEOUT
Subresult - Response not received
PD_SUBRESULT_RESPONSE_REJECT
Subresult - Reject has been received
PD_SUBRESULT_RESPONSE_WAIT
Subresult - Wait has been received
PD_SUBRESULT_RESPONSE_NOT_SUPPORTED
Rev3.0 only. Subresult - Not_Supported received as
response
Examples
call PD_SwapDataRole()
5.1.18 PD_WaitForSwapDataRole
Waits for user-defined time-out to receive DR_Swap message and will respond to
incoming messages as part of the Swap Data Role AMS.
Format
Call PD_WaitForSwapDataRole()
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 has been sent as response
PD_SUBRESULT_MSG_NOT_RECEIVED
Subresult - DR_Swap not received
PD_SUBRESULT_RESPONSE_NOT_SUPPORTED
Rev3.0 only. Subresult - Not_Supported has been sent as
response
Examples
call PD_WaitForSwapDataRole()