DWC_CheckUserData

Syntax

#include <dwc.h> 
BOOL DWC_CheckUserData(const DWCUserData *userdata);

Arguments

userdata Pointer to the DWCUserData structure where the user data is stored.

Return Values

TRUE Valid.
FALSE Invalid.

Description

Checks the validity of user data, using the CRC value included in the user data. Use this after loading saved user data into memory.

Before saving user data, always clear the dirty flag using the DWC_ClearDirtyFlag function and recalculate the CRC value included in user data.
Note: In addition, be aware that if you call the DWC_ClearDirtyFlag function after loading saved user data into memory and before calling this function, the dirty flag loses its original meaning.

See Also

DWC_CreateUserData DWC_ClearDirtyFlag

Revision History

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


CONFIDENTIAL