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 Not able to send.

Description

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

For Reliable sends using the DWC_SendReliable or DWC_SendReliableBitmap functions, this function reports that data cannot be sent if any data is still being transmitted or if the send buffer of size specified by the DWC_InitFriendsMatch function has no free space at all. In that case, this function returns FALSE. Do not try to send anything 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 argument aid. In this case, if the AID is checked with the DWC_IsValidAID function, this condition can be distinguished from the previous two conditions in which sending data is impossible.

Revision History


CONFIDENTIAL