Memory Allocation API

DESCRIPTIONS

FUNCTION SIGNATURES

Initialize the system memory pool

int  REXIS_SysInit(unsigned char *start, unsigned size);

Add a block of memory to the memory pool

int  REXIS_MemInit(void *start, unsigned size);

Allocate a memory chunk and initialize the content to zero

void*REXIS_MemAlloc(unsigned size);

Allocate N elements of size bytes and initialize the content to zero

void*REXIS_MemAllocNelements(unsigned size, unsigned nelements);

Free a memory chink

void REXIS_MemFree(void *ptr);

Free all the memory allocated by the task

void REXIS_MemFreeAll(void);

Returns the total number of bytes in the REXIS memory pool

int  REXIS_MemTotalMem(void);

Returns the number of bytes currently in use

int  REXIS_MemSpaceAvail(void);

Returns the number of bytes currently free

int  REXIS_MemSpaceUsed(void);