DWC_SetUserPingCallback

Syntax

#include <dwc.h>
BOOL DWC_SetUserPingCallback(DWCUserPingCallback callback,
                             void *param);

Arguments

callback Pointer to the ping callback function.
param Parameter for the ping callback.

Return Values

TRUE Configuration of the callback function was successful.
FALSE The configuration failed because the FriendsMatch library was not running.

Description

Configures the ping callback to measure the round-trip communication time (latency) with a connected host. The round-trip communication time with a connected host is measured by the DWC_Ping function, and the ping callback function is notified of the measurement result.

Revision History

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL