PM5358
RTOS Interface
6RTOS INTERFACE
The
6.1Memory Allocation / De-Allocation
Allocating Memory: sysSuni4x622MemAlloc
This function allocates specified number of bytes of memory.
Format
Prototype
Inputs
Outputs
Returns
#define sysSuni4x622MemAlloc(numBytes)
UINT1 *sysSuni4x622MemAlloc(UINT4 numBytes)
numBytes : number of bytes to be allocated
None
Success = Pointer to first byte of allocated memory Failure = NULL pointer (memory allocation failed)
Initialize Memory: sysSuni4x622MemSet
This function initialize a block of memory with a given value.
Format Prototype
Inputs
Outputs Returns
#define sysSuni4x622MemSet(pmem, val, sz)
void sysSuni4x622MemSet(UINT1 *pmem, UINT1 val, UINT2 sz)
pmem | : (pointer to) the first byte of the memory |
val | : value to set |
sz | : size |
None |
|
None |
|
Copy Memory: sysSuni4x622MemCpy
This function copies a block of memory.
Format | #define sysSuni4x622MemSet(pdst, psrc, sz) |
Proprietary and Confidential to | 112 |
Document ID: |
|