#include <dwc.h>
BOOL DWC_SetSendDelay( u16 delay, u8 aid )
This function sets the data sending delay time 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 destroyed 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
02/21/2006 Revised to include all function names
01/18/2006 Support for change in return value to a Boolean value
12/16/2005 Added an indication that this function's use should not be promoted
07/22/2005 Initial version