Data Sheet

Table Of Contents
87
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_MSG_NOT_RECEIVED
Subresult - Get_Battery_Cap not received.
PD_SUBRESULT_RESPONSE_NOT_SUPPORTED
Subresult - Not_Supported message sent as response.
Examples
Call PD_WaitForGetBatteryCap()
5.1.57 PD_SetBatteryCapDataBlock
Sets the BatteryCap Data Block in PD Exerciser. It must be called before
PD_WaitForGetBatteryCap or PD_DelayAutoResponse to take effect.
Format
Call PD_SetBatteryCapDataBlock( PD_BatteryCapDataBlock $battery_cap_db )
Parameters
$battery_cap_db
Parameter type is PD_BatteryCapDataBlock. Refer to PD_BatteryCapabilitiesMsg for available fields of
this type.
Result
None
Examples
$battery_cap_db = PD_BatteryCapDataBlock
Call PD_SetBatteryCapDataBlock( $battery_cap_db )
5.1.58 PD_ResetBatteryCapDataBlock
Clears the BatteryCap Data Block in PD Exerciser. Should be called before calling
PD_SetBatteryCapDataBlock command.
Format
Call PD_ResetBatteryCapDataBlock()
Parameters
None
Result
None
Examples