Data Sheet

Table Of Contents
93
Field Name
Description
DiscoverIdentityResponse
Indicates the response type. possible values are:
PD_DISCOVERIDENTITY_ACK(default)
PD_DISCOVERIDENTITY_BUSY
PD_DISCOVERIDENTITY_NAK
WaitTimeout
Timeout(micro second) to wait for receiving Discover
Identity Command
Default: PD_DEFAULT_TIMEOUT_INFINIT
RetryCountOnWait
Indicates the retry count if Wait message received as
response.
Default: 4
RetryDelayOnWait
Indicates the retry delay time(micro second) if Wait
message received as response.
Default: 50000
AutoSpecRevCable
Indicates whether to detect SpecRev of messages towards
the cable automatically or not.
Default: PD_TRUE
Result
None
Examples
#Using default settings
$settings = PD_DiscoverIdentity_Settings
call PD_SetDiscoverIdentitySetting( $settings )
5.1.70 PD_AddDiscoverIdentityVDO
Adds DiscoverIdentity VDO in PD Exerciser. It must be called before
PD_WaitForDiscoverIdentity or PD_DelayAutoResponse commands to take effect.
Format
Call PD_AddDiscoverIdentityVDO( PD_DiscoverIdentity_VDO $vdo )
Parameters
$vdo
Parameter type is PD_DiscoverIdentity_VDO. Refer to PD_VDM_Discover_Identity_Response for
available DiscoverID VDOs.
Result
None
Examples
#In this example, PD working revision is PD_SPEC_REVISION_2
#Add a ID Header VDO
$vdo = PD_VDM_Discover_Identity_ID_Header_VDO
{
IDHeaderVDO_USBVendorID = 0xFF01
IDHeaderVDO_ModalOperationSupported = 1
IDHeaderVDO_ProductType = PD_VDM_ID_HEADER_VDO_PRODUCT_TYPE_PERIPHERAL
IDHeaderVDO_DataCapableAsUSBDevice = 1
}
call PD_AddDiscoverIdentityVDO( $vdo )
5.1.71 PD_ResetDiscoverIdentityVDO
Clears DiscoverIdentity VDOs in PD Exerciser. Should be called before adding one or more
DicoverIdentity VDO.