DWC_SetRecvDrop

Syntax

#include <dwc.h>
BOOL DWC_SetRecvDrop(u8 drop,
                     u8 aid);

Arguments

drop Packet drop rate. A percentage from 0 to 100 can be specified.
aid Sender's AID.

Return Values

TRUE The packet drop rate was configured successfully.
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 packet drop rate when the local host receives data sent using the DWC_SendUnreliable or DWC_SendUnreliableBitmap functions.

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

The settings made by this function do not affect reliable communications.

Revision History

5.1
Added the fact that Reliable communications are not supported.

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL