Data Sheet

Table Of Contents
102
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_EnterMode(PD_ORDERED_SET_TYPE_SOP,0xFF00, 1)
5.1.87 PD_EnterModeVdo
Starts EnterMode AMS.
Format
Call PD_EnterModeVdo( OrderedSetType, selectedSvid, modeId, PD_Generic_VDO $Vdo
)
Parameters
OrderedSetType
Indicates the ordered set type. Possible values:
PD_ORDERED_SET_TYPE_SOP
PD_ORDERED_SET_TYPE_SOP_PRIME
PD_ORDERED_SET_TYPE_SOP_DOUBLE_PRIME
selectedSvid
Indicates the SVID
modeId
Indicates the mode index related to the specified SVID
$Vdo
Vendor defined data object. Should be from PD_VDO(Inherited from PD_Generic_VDO) type.
Field Name
Description
Data
VDO data
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
$vdo = PD_VDO
{
Data = 0x00
}
call PD_EnterModeVdo(PD_ORDERED_SET_TYPE_SOP, 0xFF01, 1, $vdo)