Data Sheet

Table Of Contents
50
1st_operand
1st operand should be in one of the following formats:
$PdGlobalSettings.<field_name>
$PdResult.<field_name>
$<packet_variable>.<field_name>
List of $PdResult fields:
Field Name
Description
Result
Last executed command result
Subresult
Last executed command subresult (in case of failure,
this field describes the reason)
LastReceivedPacketOrderedSet
Last received packet ordered set type
LastReceivedPacketType
Last received packet type
LastReceivedPacketPowerRole
Last received packet power role field value
LastReceivedPacketDataRole
Last received packet data role field value
LastReceivedPacketSentToCable
Indicates whether the last received packet has been
sent to cable(packet towards the cable) or not
LastReceivedPacketMsgID
Last received packet MessageId field value
LastReceivedPacketVdmCommand
Last received packet VDM command value, if the
packet is VDM packet
LastReceivedPacketVdmCommandType
Last received packet VDM command type value, if the
packet is VDM packet
LastReceivedPacketVdmSVID
Last received packet SVID, if the packet is a VDM packet
LastReceivedPacketVdmObjPos
Last received packet ObjetctPosition, if the packet
is a VDM packet
LastSelectedCapIndex
Last received packet selected capability index, if the
packet is Request message
LastRequestHasMismatch
Last received packet HasMismatch field value, if the
packet is Request message
ExplicitContract
Indicates whether explicit contract is established or
not.
For available $PdGlobalSettings fields refer to PD_Set.
2nd_operand
It could be as <1st_operand> or a constant <value>.
operator
List of possible values for operator:
Operator
Description
PD_COMPARE_EQUAL
Equal
PD_COMPARE_GREATER
Greater than
PD_COMPARE_LESS
Less than
PD_COMPARE_NOT_EQUAL
Not equal
Result
None
Examples
$send_setting = PD_SendPacketSettings
{
ResetOnError = PD_FALSE
OrderedSetType = PD_ORDERED_SET_TYPE_SOP
}
$receive_settings = PD_ReceivePacketSettings
{
PacketType = PD_MESSAGE_TYPE_VDM
}
#send the packet
$discover_identity = PD_VDM_Discover_Identity_Message
Call PD_SendPacket( $discover_identity, $send_setting )