NNS_GfdDumpFrmPlttVramManagerEx

Syntax

#include <nnsys/gfd.h>
void NNS_GfdDumpFrmPlttVramManagerEx( NNSGfdFrmPlttVramDebugDumpCallBack pFunc );

Arguments

pFunc NNSGfdFrmPlttVramDebugDumpCallBack-type function pointer that represents a user-defined debug callback.

Return Values

None.

Description

Specifies the user-defined debug callback and outputs the status of the frame palette VRAM manager for debugging.
The NNS_GfdDumpFrmPlttVramManager function is implemented using this function.
The following represents a sample of a callback function definition implemented using the NNS_GfdDumpFrmPlttVramManager function.

 
static void FrmPlttVramDebugDumpCallBack_( u32 loAddr, u32 hiAddr, u32 szFree, u32 szTotal )
{
    OS_Printf("===== NNS_Gfd FrmPlttVramManager Dump ====\n");
    OS_Printf("head-Addr   : tail-addr   : free-size \n");
    
    
    OS_Printf("0x%08x  : 0x%08x  : 0x%08x  \n", loAddr, hiAddr, szFree );
    
    OS_Printf("    %08d / %08d bytes (%6.2f%%) used \n", szTotal - szFree, szTotal, 
        100.0f * ( szTotal - szFree ) / szTotal ); 
    OS_Printf("==========================================\n");
}

See Also

None.

Revision History

2007/01/31 Initial version.


CONFIDENTIAL