#include <dwc.h>
BOOL DWC_SetSendDelay(u16 delay,
u8 aid);delay |
Delay time (msec). |
aid |
AID of the send destination. |
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. |
Sets a delay time to apply to data sends which use the DWC_SendReliable, DWC_SendReliableBitmap, DWC_SendUnreliable, or DWC_SendUnreliableBitmap functions.
To implement a delay for sending data, each time data is sent the function allocates a buffer, waits for the specified period of time, and then sends the data. Thus, if a connection is cut when the application has sent all data, the data waiting in the buffer is lost without being sent.
The same kind of delay debugging can be done by setting a delay for receiving data. Use the DWC_SetRecvDelay function to set the receive delay. This function is used for debugging. It does not work in the final ROM version (FINALROM).
For the changelog prior to 5.1 PR2, click here.
CONFIDENTIAL