Data Sheet

Table Of Contents
66
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).
Examples
Call PD_FastRoleSwap()
5.1.16 PD_SetSwapDataRoleSetting
Applies settings to Swap Data Role related commands in PD Exerciser. It must be called
before PD_SwapDataRole or PD_WaitForSwapDataRole or PD_DelayAutoResponse commands to take
effect.
Format
Call PD_SetSwapDataRoleSetting( PD_SwapResponse_Settings $settings )
Parameters
$settings
Should be from PD_SwapResponse_Settings type. Table below describes the
PD_SwapResponse_Settings template and settings related to Data Role Swap:
Field Name
Description
SwapResponse
Response type. Possible values:
PD_MESSAGE_TYPE_ACCEPT(default)
PD_MESSAGE_TYPE_REJECT
PD_MESSAGE_TYPE_WAIT
WaitTimeout
Timeout(micro second) to wait in order to receive DR_SWAP
message
Default: PD_DEFAULT_TIMEOUT_INFINIT
RetryCountOnWait
Indicates the retry count after receiving Wait Message in
response to sent DR_Swap Message.
Default: 2
RetryDelayOnWait
Indicates the retry delay time upon receiving Wait Message
in response to sent DR_Swap Message.
Default: 20000
Result
None
Examples
$settings = PD_SwapResponse_Settings
{
SwapResponse = PD_MESSAGE_TYPE_REJECT
}
call PD_SetSwapDataRoleSetting( $settings )
5.1.17 PD_SwapDataRole
Tries to swap the data role. It will start the Swap Data Role AMS.
Format
Call PD_SwapDataRole()