DWC_GetConnectionUserData

Syntax

#include <dwc.h>
BOOL DWC_GetConnectionUserData(u8 aid,
                               u8 *userData);

Arguments

aid The AID for the host whose connectionUserData you want to get. This data was set at the time of the host's connection.
userData The buffer that receives the connectionUserData. Must be a buffer of length u8[DWC_CONNECTION_USERDATA_LEN].

Return Values

TRUE Succeeded in getting userData.
FALSE Failed to get userData.

Description

Gets the connectionUserData of an already connected host. This data was configured when the host made the connection. This function was designed to be used inside the DWCConnectAttemptCallback function to help determine whether to accept new connection hosts.

Revision History

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL