Data Sheet

Table Of Contents
82
Result
None
Examples
$getbattstatus_setting = PD_GetBatteryStatus_Settings
{
ResponseType = PD_RESPONSE_NOT_SUPPORTED
}
Call PD_SetGetBatteryStatusSetting( $getbattstatus_setting )
5.1.46 PD_WaitForGetBatteryStatus
Waits for user-defined time-out to receive Get_Battery_Status message. It will respond to
incoming messages as part of GetBatteryStatus AMS.
Format
Call PD_WaitForGetBatteryStatus()
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_MSG_NOT_RECEIVED
Subresult - Get_Battery_Status message not received.
PD_SUBRESULT_RESPONSE_NOT_SUPPORTED
Subresult - Not_Supported message sent as response.
Examples
Call PD_WaitForGetBatteryStatus()
5.1.47 PD_SetBatteryStatusDO
Sets the BatteryStatus Data Object in PD Exerciser. It must be called before
PD_WaitForGetBatteryStatus or PD_DelayAutoResponse to take effect.
Format
Call PD_SetBatteryStatusDO( PD_BatteryStatusDataObject $battery_status )
Parameters
$battery_status
Parameter type is PD_BatteryStatusDataObject. Refer to PD_BatteryStatusMsg for available fields of
this type.
Result
None