📄 mem1.c
字号:
** NAME - DESCRIPTION
** num - Number of elements
** size - Length in bytes of each element
** Returns :
** --- - If memory is insufficient to satisfy
** the request from either partition,
** memCallocIM returns NULL.
** ===================================================================
*/
/*
void* MEM1_memCallocIM(size_t num,size_t size)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memRealloc (bean DSP_MEM)
**
** Description :
** This function dynamically reallocates and resizes a memory
** buffer to the specified size from the memory partitions.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void* MEM1_memRealloc(mem_sPool *pMemPool,void* pData,size_t SizeRequested)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memReallocEM (bean DSP_MEM)
**
** Description :
** The memReallocEM function dynamically reallocates and
** resizes a memory buffer to the specified size from the
** memory partitions. The function memReallocEM first tries
** to reallocate the memory from the external memory
** partition. However, if not enough space exists in the
** external memory partition to satisfy the dynamic memory
** allocation, memReallocEM then tries the allocation from
** the internal memory partition. For example see <Typical
** Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * memblock - The address of the existing
** memory block to reallocate
** size - The new size to allocate
** Returns :
** --- - If memory is insufficient to satisfy
** the request from either partition,
** memReallocEM returns "NULL"
** ===================================================================
*/
/*
void* MEM1_memReallocEM(void* memblock,size_t size)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memReallocIM (bean DSP_MEM)
**
** Description :
** The memReallocIM function dynamically reallocates and
** resizes a memory buffer to the specified size from the
** memory partitions. The function memReallocIM first tries
** to reallocate the memory from the internal memory
** partition. However, if not enough space exists in the
** internal memory partition to satisfy the dynamic memory
** allocation, memReallocIM then tries the allocation from
** the external memory partition For example see <Typical
** Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * memblock - The address of the existing
** memory block to reallocate
** size - The new size to allocate
** Returns :
** --- - If memory is insufficient to satisfy
** the request from either partition,
** memReallocIM returns "NULL"
** ===================================================================
*/
/*
void* MEM1_memReallocIM(void* memblock,size_t size)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memIsEM (bean DSP_MEM)
**
** Description :
** The memIsEM function checks the address of a memory block
** to determine whether it is in internal memory or external
** memory. For example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * memblock - The address of the memory
** block to be confirmed in external memory
** Returns :
** --- - The function memIsEM returns true if
** the address is in external memory;
** otherwise, it returns false.
** ===================================================================
*/
/*
bool MEM1_memIsEM(void* memblock)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memIsIM (bean DSP_MEM)
**
** Description :
** The memIsIM function checks the address of a memory block
** to determine whether it is in internal memory or external
** memory. For example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * memblock - The address of the memory
** block to be confirmed in internal memory
** Returns :
** --- - The function memIsIM returns true if
** the address is in internal memory;
** otherwise, it returns false.
** ===================================================================
*/
/*
bool MEM1_memIsIM(void* memblock)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : memoryIsEM (bean DSP_MEM)
**
** Description :
** This function determines if the pointer to memory passed in is
** in external memory of the CPU.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
static bool memoryIsEM(void* memblock)
{
// This method is implemented in mem.c
}
*/
/*
** ===================================================================
** Method : memoryIsIM (bean DSP_MEM)
**
** Description :
** This function determines if the pointer to memory passed in is
** in internal memory of the CPU.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
static bool memoryIsIM(void* memblock)
{
// This method is implemented in mem.c
}
*/
/*
** ===================================================================
** Method : MEM1_memIsAligned (bean DSP_MEM)
**
** Description :
** The memIsAligned function checks the address of a memory
** block to determine whether it is properly aligned to use
** modulo addressing. For example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * memblock - The address of the memory
** block to check alignment for modulo
** addressing
** size - The size to which the block should be
** aligned for modulo addressing
** Returns :
** --- - The function memIsAligned returns true
** if the address is aligned so that modulo
** addressing can be used; otherwise, it
** returns false.
** ===================================================================
*/
/*
bool MEM1_memIsAligned(void* memblock,size_t size)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memInitialize (bean DSP_MEM)
**
** Description :
** This function initializes the memory manager data structure
** (InitialState).
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void MEM1_memInitialize(mem_sState *pMemoryState)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memInitializePool (bean DSP_MEM)
**
** Description :
** Initializes the memory pool to all zeroes. Brackets the pool
** with two blocks: The last sizeof(UInt32) bytes will be set to
** 0 to indicate the last block of the pool. The first
** sizeof(UInt32) bytes of the pool will be set to the size of
** the remainder of the pool.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void MEM1_memInitializePool(mem_sPool *pMemPool,void* pMem,size_t Size,bool Protect,bool Assert)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memExtendPool (bean DSP_MEM)
**
** Description :
** Initializes the memory pool extension to all zeroes. Extends
** the pool previously initialized with memInitializePool.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void MEM1_memExtendPool(mem_sPool *pMemPool,void* pMem,size_t Size)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memValidate (bean DSP_MEM)
**
** Description :
** This function validates memory pool.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void MEM1_memValidate(mem_sPool *pMemPool)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memProtect (bean DSP_MEM)
**
** Description :
** This function set memory protection.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void MEM1_memProtect(mem_sPool *pMemPool)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memCleanUp (bean DSP_MEM)
**
** Description :
** Starting from the beginning of the pool, merge blocks that are
** not in use. Stop at the first in-use block.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
size_t MEM1_memCleanUp(mem_sPool *pMemPool)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memPrintAllocatedBlocks (bean DSP_MEM)
**
** Description :
** This function prints the allocated blocks.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void MEM1_memPrintAllocatedBlocks(mem_sPool *pMemPool)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memCalculateStatistics (bean DSP_MEM)
**
** Description :
** This function calculates memory statistics.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void MEM1_memCalculateStatistics(mem_sPool *pMemPool)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memPrintStatistics (bean DSP_MEM)
**
** Description :
** This function prints memory statistics.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/*
void MEM1_memPrintStatistics(mem_sPool *pMemPool)
{
// This method is implemented as macro
}
*/
/*
** ===================================================================
** Method : MEM1_memMemcpy (bean DSP_MEM)
**
** Description :
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -