Data Sheet

Table Of Contents
45
PD_RESULT_OK
Command succeeded
PD_RESULT_FAILED
Command failed
PD_SUBRESULT_RECEIVE_TIMEOUT
Subresult - No packet received within specified time
PD_SUBRESULT_UNEXPECTED_MSG_RECEIVED
Subresult - Unexpected packet received
PD_SUBRESULT_HARDRESET
Subresult - HardReset received
PD_SUBRESULT_SOFTRESET
Subresult - SoftReset received
Examples
#Receive source caps
####################
# Wait to receive source capability. GoodCRC is sent automatically.
$recv_settings = PD_ReceivePacketSettings
{
WaitTimeOut = PD_DEFAULT_TIMEOUT_INFINIT
PacketType = PD_MESSAGE_TYPE_SOURCE_CAP
}
call PD_ReceivePacket($recv_settings)
#Receive VDM message
####################
$receive_settings = PD_ReceivePacketSettings
{
PacketType = PD_MESSAGE_TYPE_VDM
}
call PD_ReceivePacket( $receive_settings )
4.5 PD_SendSoftReset
Sends Soft Reset and performs the reset according to the selected Ordered-Set Type.
Format
Call PD_SendSoftReset( orderedset_type )
Parameters
orderedset_type
List of possible ordered set types:
OrderedSet Type
Description
PD_ORDERED_SET_TYPE_SOP
PD_ORDERED_SET_TYPE_SOP_PRIME
PD_ORDERED_SET_TYPE_SOP_DOUBLE_PRIME
Result
User can evaluate the command results(including sub-results) using IfMatched/ElseMatched
command.
If sending SoftReset succeeded the result is PD_RESULT_OK. In case of failure it may lead to Power
Negotiation.
Examples
Call PD_SendSoftReset( PD_ORDERED_SET_TYPE_SOP )
4.6 PD_SendHardReset
Sends Hard Reset and performs the reset.
Format
Call PD_SendHardReset()
Parameters