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

Uses the CRC value included in the data to check the validity of user data. Use this to confirm that saved user data is loaded into memory.

Before saving user data, always use the DWC_ClearDirtyFlag function to clear the dirty flag and recalculate the CRC value included in the data. Also, note that if DWC_ClearDirtyFlag is called before this function after saved user data has been loaded into memory, this function will lose its original meaning.

Revision History

1.4.20
Added a precaution about the DWC_ClearDirtyFlag function.

CONFIDENTIAL