#include <dwc.h>BOOL DWC_SetSendDelay(u16 delay,
u8 aid);| delay | Delay time (milliseconds). |
| aid | AID of the send destination. |
| TRUE | The delay time was successfully configured. |
| FALSE | Not successfully configured because the FriendsMatch Library was not running, an invalid AID was specified, or there was a failure during memory allocation. |
This function sets the delay time for data sends using the DWC_SendReliable, DWC_SendReliableBitmap, DWC_SendUnreliable, or DWC_SendUnreliableBitmap functions.
Sending of data is delayed by allocating (Alloc) a buffer each time data is sent and then sending data after waiting the specified time. Therefore, if a connection is cut when the application has sent all of the data, data waiting in the buffer will be lost without being sent.
The same kind of delay debugging can be done by setting the receive delay; use the DWC_SetRecvDelay function for that. This function is used for debugging. It does not function in the final ROM version (FINALROM).
CONFIDENTIAL