DWC_IsSendableReliable

Syntax

#include <dwc.h> 
BOOL DWC_IsSendableReliable(u8 aid);

Arguments

aid AID of the party to which you are sending.

Return Values

TRUE Able to send.
FALSE Unable to send.

Description

Checks whether data can be sent in a "Reliable" send to the host that is assigned a specific AID.

The DWC_SendReliable and DWC_SendReliableBitmap functions cannot send data if there is an ongoing data transmission or if there is no space in the send buffer. (The send buffer size is set by the DWC_InitFriendsMatch function.) Because this function returns FALSE in that case, make sure not to send until this function returns TRUE.

This function also returns FALSE when an error is being generated.

This function also returns FALSE if an invalid AID is passed to the aid argument, but in this case, if the AID is checked with the DWC_IsValidAID function, this condition can be distinguished from the previous two conditions that make it impossible to send data.

Revision History

For the change log prior to 5.1 PR2, click here.   


CONFIDENTIAL