📄 mu.h
字号:
/* ===========================================================================
* TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
*
* Property of Texas Instruments -- For Unrestricted Internal Use Only
* Unauthorized reproduction and/or distribution is strictly prohibited. This
* product is protected under copyright law and trade secret law as an
* unpublished work. Created 2002, (C) Copyright 2002 Texas Instruments. All
* rights reserved.
*
* Filename : mu.h
*
* Description : Memory Utilities
* Project : omap1610
*
* Author : Rajko
*
* ===========================================================================*/
#ifndef __MU_H__
#define __MU_H__
/*----------------------------------------------------------------------------
* NAME : MU_Mem32ConstFill
*
* DESCRIPTION : Fill memory with constant data
*
* PARAMETERS : StartAddress - pointer to start address
* Length - Number of UWORD32 to write
* Pattern - Value
*
* RETURN VALUE : None
*
*----------------------------------------------------------------------------*/
void MU_Mem32ConstFill( UWORD32 *StartAddress,
UWORD32 Length,
UWORD32 Pattern );
/*----------------------------------------------------------------------------
* NAME : MU_Mem32RampFill
*
* DESCRIPTION : Fill memory with ramp data ored with pattern
*
* PARAMETERS : StartAddress - pointer to start address
* Length - Number of UWORD32 to write
* Pattern - Value ORed with ramp data
*
* RETURN VALUE : None
*
*----------------------------------------------------------------------------*/
void MU_Mem32RampFill( UWORD32 *StartAddress,
UWORD32 Length,
UWORD32 Pattern );
/*----------------------------------------------------------------------------
* NAME : MU_Mem32Compare
*
* DESCRIPTION : Compare two buffers
*
* PARAMETERS : B1Address - pointer to start address of Buff 1
* B2Address - pointer to start address of Buff 1
* Length - Number of UWORD32 to compare
*
* RETURN VALUE : UWORD32
* 0 - Buffers are same
* n - Number of values not identical in two buffers
*
*----------------------------------------------------------------------------*/
UWORD32 MU_Mem32Compare( UWORD32 *B1Address,
UWORD32 *B2Address,
UWORD32 Length );
/*----------------------------------------------------------------------------
* NAME : MU_Mem32CompareValue
*
* DESCRIPTION : Compare two buffers
*
* PARAMETERS : B1Address - pointer to start address of Buffer
* value - Value to compare with
* Length - Number of UWORD32 to compare
*
* RETURN VALUE : UWORD32
* 0 - Buffers are same
* n - Number of values not identical in two buffers
*
*----------------------------------------------------------------------------*/
UWORD32 MU_Mem32CompareValue( UWORD32 *B1Address,
UWORD32 value,
UWORD32 Length );
/*----------------------------------------------------------------------------
* NAME : MU_Mem32Copy
*
* DESCRIPTION : Copy 32 bit buffers
*
* PARAMETERS : Destination - pointer to where to Buffer
* Source - pointer to where from Buffer
* Length - Number of UWORD32 to compare
*
* RETURN VALUE : None
*
*----------------------------------------------------------------------------*/
void MU_Mem32Copy( UWORD32 *Destination,
UWORD32 *Source,
UWORD32 Length );
/*----------------------------------------------------------------------------
* NAME : MU_Mem16ConstFill
*
* DESCRIPTION : Fill memory with constant data
*
* PARAMETERS : StartAddress - pointer to start address
* Length - Number of UWORD16 to write
* Pattern - Value
*
* RETURN VALUE : None
*
*----------------------------------------------------------------------------*/
void MU_Mem16ConstFill( UWORD16 *StartAddress,
UWORD32 Length,
UWORD16 Pattern );
/*----------------------------------------------------------------------------
* NAME : MU_Mem16RampFill
*
* DESCRIPTION : Fill memory with ramp data ored with pattern
*
* PARAMETERS : StartAddress - pointer to start address
* Length - Number of UWORD16 to write
* Pattern - Value ORed with ramp data
*
* RETURN VALUE : None
*
*----------------------------------------------------------------------------*/
void MU_Mem16RampFill( UWORD16 *StartAddress,
UWORD32 Length,
UWORD16 Pattern );
/*----------------------------------------------------------------------------
* NAME : MU_Mem16Compare
*
* DESCRIPTION : Compare two buffers
*
* PARAMETERS : B1Address - pointer to start address of Buff 1
* B2Address - pointer to start address of Buff 1
* Length - Number of UWORD32 to compare
*
* RETURN VALUE : UWORD32
* 0 - Buffers are same
* n - Number of values not identical in two buffers
*
*----------------------------------------------------------------------------*/
UWORD16 MU_Mem16Compare( UWORD16 *B1Address,
UWORD16 *B2Address,
UWORD32 Length );
/*----------------------------------------------------------------------------
* NAME : MU_Mem16CompareValue
*
* DESCRIPTION : Compare two buffers
*
* PARAMETERS : B1Address - pointer to start address of Buffer
* value - Value to compare with
* Length - Number of UWORD32 to compare
*
* RETURN VALUE : UWORD32
* 0 - Buffers are same
* n - Number of values not identical in two buffers
*
*----------------------------------------------------------------------------*/
UWORD32 MU_Mem16CompareValue( UWORD16 *B1Address,
UWORD32 value,
UWORD32 Length );
/*----------------------------------------------------------------------------
* NAME : MU_Mem16Copy
*
* DESCRIPTION : Copy 16 bit buffers
*
* PARAMETERS : Destination - pointer to where to Buffer
* Source - pointer to where from Buffer
* Length - Number of UWORD32 to compare
*
* RETURN VALUE : None
*
*----------------------------------------------------------------------------*/
void MU_Mem16Copy( UWORD16 *Destination,
UWORD16 *Source,
UWORD32 Length );
#endif /* __MU_H__ */
/* Nothing past this point */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -