Data Sheet

Table Of Contents
118
User can evaluate the command results(including sub-results) using IfMatched/ElseMatched
command.
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_MSG_NOT_RECEIVED
Subresult - ENTER_MODE message not received
PD_SUBRESULT_RESPONSE_NAK
Subresult - NAK has been sent as response
Examples
PD_Set $PdGlobalSettings.EnableCableEmulator = PD_TRUE
.
.
Call PD_WaitForEnterMode_Cable()
5.1.116 PD_SetExitModeSetting_Cable
Applies settings to ExitMode_Cable related commands in PD Exerciser. It must be called
before PD_WaitForExitMode_Cable or PD_DelayAutoResponse commands to take effect.
Note - PD Exerciser should also act as Cable Plug to be able to process this command.
Format
Call PD_SetExitModeSetting_Cable( PD_ExitMode_Settings $settings )
Parameters
$settings
Refer to PD_SetExitModeSetting for more details.
Result
None
Examples
PD_Set $PdGlobalSettings.EnableCableEmulator = PD_TRUE
.
.
#Using default settings
$settings = PD_ExitMode_Settings
call PD_SetExitModeSetting_Cable( $settings )
5.1.117 PD_WaitForExitMode_Cable
Waits for user-defined time-out to receive EXITMODE command. It will respond to
incoming messages as part of ExitMode AMS.
Note - PD Exerciser should also act as Cable Plug to be able to process this command.
Format
Call PD_WaitForExitMode_Cable()