Data Sheet

Table Of Contents
41
$discover_identity = PD_VDM_Discover_Identity_Message
Call PD_SendPacket( $discover_identity, $send_setting )
# Send Request message
######################
$request_data = PD_RequestDataObject_Fixed_Variable_NoGiveBack
{
MaxOperatingCurrent_10mAUnits = 90
OperatingCurrent_10mAUnits = 90
}
$request_packet = PD_RequestPacket
{
Data = $request_data
}
#calling PD_SendPacket() command using default settings
$send_packet_settings = PD_SendPacketSettings
Call PD_SendPacket($request_packet, $send_packet_settings)
4.2 PD_SendPacket_Cable
Sends a packet as a Marked Cable towards the device.
Format
Call PD_SendPacket_Cable( PD_Packet $send_packet,
PD_SendPacketSettings_Cable $settings )
Parameters
$send_packet
Defines the payload. Refer to Packet Templates for available packet templates.
$settings
Settings for sending packet. It should be derived from PD_SendPacketSettings_Cable template.
PD_SendPacketSettings_Cable is derived from PD_SendPacketSettings template. Default values for
some fields is changed as below:
OrderedSetType = PD_ORDERED_SET_TYPE_SOP_PRIME
ResetOnErrors = PD_FALSE
RetryCount = 0
Result
User can evaluate the command results(including sub-results) using IfMatched/ElseMatched
command.
List of possible result values:
Value
Description
PD_RESULT_OK
Command succeeded
PD_RESULT_FAILED
Command failed
PD_SUBRESULT_NO_GOODCRC
Subresult - No GoodCRC received for sent packet
Examples
#send a discover identity response
####################################
$send_setting = PD_SendPacketSettings_Cable
$header_vdo = PD_VDM_Discover_Identity_ID_Header_VDO
$stat_vdo = PD_VDM_Discover_Identity_Cert_Stat_VDO
$product_vdo = PD_VDM_Discover_Identity_Product_VDO
$cable_vdo = PD_VDM_Discover_Identity_Cable_VDO
$discover_identity_response = PD_VDM_Discover_Identity_Response
{
VDOs = $header_vdo + $stat_vdo + $product_vdo + $cable_vdo
}
Call PD_SendPacket_Cable( $discover_identity_response, $send_setting )