Data Sheet

Table Of Contents
98
5.1.79 PD_SetDiscoverModeSetting
Applies settings to DiscoverModes related commands in PD Exerciser. It must be called
before PD_DiscoverModes or PD_WaitForDiscoverModes or PD_PerformDiscoveryProcess or
PD_DelayAutoResponse commands to take effect.
Format
Call PD_SetDiscoverModeSetting( PD_DiscoverModes_Settings $settings )
Parameters
$settings
Should be from PD_DiscoverModes_Settings type. Table below describes the
PD_DiscoverModes_Settings template:
Field Name
Description
DiscoverModesResponse
Response type. Possible values are PD_DISCOVERMODES_ACK(default)
PD_DISCOVERMODES_BUSY
PD_DISCOVERMODES_NAK
WaitTimeout
Timeout(micro second) to wait for receiving Discover Modes 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
Result
None
Examples
#Using default settings
$settings = PD_DiscoverModes_Settings
call PD_SetDiscoverModeSetting( $settings )
5.1.80 PD_AddMode
Adds Mode in PD Exerciser. It must be called before PD_DiscoverModes or
PD_WaitForDiscoverModes or PD_PerformDiscoveryProcess or PD_DelayAutoResponse commands to
take effect.
Format
Call PD_AddMode(Mode)
Parameters
Mode
Mode to add
Result
None
Examples
call PD_AddMode(0x00000001)