Data Sheet

Table Of Contents
81
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_RESPONSE_TIMEOUT
Subresult - No response received.
PD_SUBRESULT_RESPONSE_NOT_SUPPORTED
Subresult - Not_Supported message received.
Examples
Call PD_GetBatteryStatus()
5.1.44 PD_SetGetBatteryStatusDataBlock
Sets the GetBatteryStatus Data Block in PD Exerciser. It must be called before
PD_GetBatteryStatus command to take effect.
Format
Call PD_SetGetBatteryStatusDataBlock( PD_GetBatteryStatusDataBlock
$get_battery_stat_db )
Parameters
$get_battery_stat_db
Parameter type is PD_GetBatteryStatusDataBlock. Refer to PD_GetBatteryStatusMsg for available
fields.
Result
None
Examples
$get_battery_stat_db = PD_GetBatteryStatusDataBlock
Call PD_SetGetBatteryStatusDataBlock( $get_battery_stat_db )
5.1.45 PD_SetGetBatteryStatusSetting
Applies settings to GetBatteryStatus related commands in PD Exerciser. It must be called
before PD_WaitForGetBatteryStatus or PD_DelayAutoResponse commands to take effect.
Format
Call PD_SetGetBatteryStatusSetting( PD_GetBatteryStatus_Settings $settings )
Parameters
$settings
Parameter type is PD_GetBatteryStatus_Settings. Available fields of this type are:
Field Names
Description
WaitTimeout
Wait TimeOut(micro second) to receive
GetBatteryStatus message.
Default: PD_DEFAULT_TIMEOUT_INFINIT
ResponseType
Indicates response upon receiving the GetBatteryStatus
message.
Possible values:
PD_RESPONSE_NOT_SUPPORTED,
PD_RESPONSE_UNSPECIFIED(default)