Data Sheet

Table Of Contents
63
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_REJECT
Subresult - Reject received as the response
PD_SUBRESULT_RESPONSE_WAIT
Subresult - Wait received as the response
PD_SUBRESULT_MSG_NOT_RECEIVED
Subresult - Request(PD Exerciser as
Source)/Source_Capabilities(PD Exerciser as Sink)
message not received or PS_RDY message not
received(PD Exerciser as Sink)
Examples
call Pd PD_WaitForNegotiatePower()
5.1.11 PD_NegotiatePower
Negotiates power with the peer port according to PD Exerciser current power role. If PD
Exerciser operates as Source, this function starts power negotiation as Source and if the
PD Exerciser operates as Sink, this function starts power negotiation as Sink(will wait to
receive Request message).
Note - Both power negotiation settings can be applied to this function (by calling
PD_SetNegotiationSetting_Source or PD_SetNegotiationSetting_Sink functions).
Format
Call PD_NegotiatePower()
Parameters
None
Result
If PD Exerciser operates as Source this function returns same sub-results as PD_NegotiatePower_Source
function. If PD Exerciser operates as Sink this function returns same sub-results as
PD_NegotiatePower_Sink function.
Examples
Call PD_NegotiatePower()
5.1.12 PD_SetSwapPowerRoleSetting
Applies settings to Swap Power Role related commands in PD Exerciser. It must be called
before PD_SwapPowerRole or PD_WaitForSwapPowerRole or PD_DelayAutoResponse commands to
take effect.
Format
Call PD_SetSwapPowerRoleSetting(PD_SwapResponse_Settings $settings )
Parameters
$settings
Should be from PD_SwapResponse_Settings type.
List of SwapResponse_Settings fields: