Data Sheet

Table Of Contents
104
#Using default settings
$settings = PD_ExitMode_Settings
call PD_SetExitModeSetting( $settings )
5.1.90 PD_ExitMode
Starts ExitMode AMS.
Format
Call PD_ExitMode(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 related to the specified SVID
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_RESPONSE_TIMEOUT
Subresult - No response received
PD_SUBRESULT_RESPONSE_NAK
Subresult - NAK received as response
Examples
call PD_ExitMode(PD_ORDERED_SET_TYPE_SOP, 0xFF00, 1)
5.1.91 PD_WaitForExitMode
Waits for user-defined time-out to receive EXITMODE command. It will respond to
incoming messages as part of ExitMode AMS.
Format
Call PD_WaitForExitMode()
Parameters
None
Result
User can evaluate the command results(including sub-results) using IfMatched/ElseMatched
command.