DWC_SetRecvDelay

Syntax

#include <dwc.h>
BOOL DWC_SetRecvDelay(u16 delay,
                      u8 aid);

Arguments

delay Delay time (milliseconds).
aid Sender's AID.

Return Values

TRUE The delay time was successfully configured.
FALSE Either the FriendsMatch library is not running, an invalid AID was specified, values failed to be set because memory allocation failed, or this is running in a FINALROM build.

Description

Sets the delay time for receiving data sent to the local host using the DWC_SendReliable, DWC_SendReliableBitmap, DWC_SendUnreliable, or DWC_SendUnreliableBitmap function.

To implement a delay for receiving data, the function allocates a buffer each time data is received, waits for the specified period of time, and then receives the data.

This function is used for debugging. It does not work in the final ROM version (FINALROM).

Revision History

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL