Data Sheet

Table Of Contents
59
Result
None
Examples
local $power_data_object = PD_PowerDataObjectFixedSupply_Source
{
MaxCurrent_10mAUnits = 20
Voltage_50mVUnits = 250
}
call PD_AddSourceCap($power_data_object)
5.1.4 PD_ResetSourceCaps
Clears all Source Capabilities defined in PD Exerciser. Should be called before adding one
or more source capabilities.
Format
Call PD_ResetSourceCaps()
Parameters
None
Result
None
Examples
call PD_ResetSourceCaps()
5.1.5 PD_NegotiatePower_Source
This command tries to establish an explicit contract as Source.
Format
Call PD_NegotiatePower_Source()
Parameters
None
Result
User can evaluate the command results(including sub-results) using IfMatched/ElseMatched
command.
List of result values:
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_REQUEST_MSG_INVALID_INDEX
Subresult - Invalid index in request message
PD_SUBRESULT_RESPONSE_WAIT
Subresult - Wait has been sent as request message
response
PD_SUBRESULT_RESPONSE_REJECT
Subresult - Reject has been sent as request message
response