Data Sheet

Table Of Contents
122
5.1.123 PD_WaitForSecurityRequest_Cable
Waits for user-defined time-out to receive Security_Request message. It will respond to
incoming messages as part of SecurityRequest AMS.
Note - PD Exerciser should also act as Cable Plug to be able to process this command.
Format
Call PD_WaitForSecurityRequest_Cable()
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_MSG_NOT_RECEIVED
Subresult - Security_Request message not received.
Examples
PD_Set $PdGlobalSettings.EnableCableEmulator = PD_TRUE
.
.
Call PD_WaitForSecurityRequest_Cable()
5.2 Auto Responses Capability
To gain auto response capability, use below command. This command will respond to any
incoming Power Delivery messages according to current operational settings. In addition to
this command, at the start of each High-Level command Auto-Response is activated.
5.2.1 PD_DelayAutoResponse
Format
Call PD_DelayAutoResponse( duration_micro_Sec )
Parameters
duration_micro_Sec
Command waits for maximum specified duration and responses to received packet automatically.
Examples
call PD_DelayAutoResponse( 1000 )