Data Sheet

Table Of Contents
115
None
Examples
PD_Set $PdGlobalSettings.EnableCableEmulator = PD_TRUE
.
.
#Using default settings
$settings = PD_DiscoverModes_Settings
call PD_SetDiscoverModeSetting_Cable( $settings )
5.1.110 PD_WaitForDiscoverModes_Cable
Waits for user-defined time-out to receive DISCOVERMODE command. It will respond to
incoming messages as part of DiscoverModes AMS.
Note - PD Exerciser should also act as Cable Plug to be able to process this command.
Format
Call PD_WaitForDiscoverModes_Cable()
Parameters
None
Result
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 - DISCOVER_MODES message not
received
PD_SUBRESULT_RESPONSE_NAK
Subresult - NAK has been sent as response
PD_SUBRESULT_RESPONSE_BUSY
Subresult - BUSY has been sent as response
Examples
PD_Set $PdGlobalSettings.EnableCableEmulator = PD_TRUE
.
.
Call PD_WaitForDiscoverModes_Cable()
5.1.111 PD_AddModeVDO_Cable
Adds Mode(for cable) with VDO in PD Exerciser. It must be called before
PD_WaitForDiscoverModes_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_AddModeVDO_Cable(PD_Vdo $ModeVdo)