#include <dwc.h>
BOOL DWC_SetSendDelay( u16 delay, u8 aid )
This function sets the delay time for sending data, using the DWC_SendReliable, DWC_SendReliableBitmap, DWC_SendUnreliable, or DWC_SendUnreliableBitmap function.
Sending of data is delayed through allocation (Alloc) of a buffer every time the data is sent, then sending the data after the specified amount time. Thus, if a connection is cut when the application has sent all data, the 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.
This function is used for debugging. It will not function in the final ROM version (FINALROM).
delay |
Delay time (msec). |
aid |
AID of the send destination. |
TRUE |
The delay time was successfully configured. |
FALSE |
The configuration failed due to the FriendsMatch Library not running, an invalid AID being specified, or a failure during memory allocation. |
DWC_SetRecvDelay
DWC_SendReliable
DWC_SendReliableBitmap
DWC_SendUnreliable
DWC_SendUnreliableBitmap
2006/02/21 Revised to include all function names
2006/01/18 Support for change in return value to a Boolean value
2005/12/16 Added an indication that this function's use is not recommended.
2005/07/22 Initial version.
CONFIDENTIAL