Data Sheet

Table Of Contents
101
5.1.85 PD_SetEnterModeSetting
Applies settings to EnterMode related commands in PD Exerciser. It must be called before
PD_WaitForEnterMode or PD_DelayAutoResponse commands to take effect.
Format
Call PD_SetEnterModeSetting( PD_EnterMode_Settings $settings )
Parameters
$settings
Should be from PD_EnterMode_Settings type. Table below describes the PD_EnterMode_Settings
template:
Field Name
Description
EnterModeResponse
Response type. Possible values :
PD_ENTERMODE_ACK(default)
PD_ENTERMODE_NAK
WaitTimeout
Timeout(micro second) to wait for receiving Enter Mode
command
Default: PD_DEFAULT_TIMEOUT_INFINIT
Result
None
Examples
#Using default setting
$settings = PD_EnterMode_Settings
call PD_SetEnterModeSetting( $settings )
5.1.86 PD_EnterMode
Starts EnterMode AMS.
Format
Call PD_EnterMode(OrderedSetType, selectedSvid, modeIndex)
Parameters
OrderedSetType
possible values:
PD_ORDERED_SET_TYPE_SOP
PD_ORDERED_SET_TYPE_SOP_PRIME
PD_ORDERED_SET_TYPE_SOP_DOUBLE_PRIME
selectedSvid
Indicates the SVID
modeIndex
Indicates the mode index for the specified SVID
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