TI Autonomous Driving Algorithms (TIADALG) Library User Guide
ti_mem_manager.h File Reference

Implementation of the Memory Manager for internal memories in TI devices which needs to be handled by EVE software. User can create a object of memory with given base address and total size. Later user can get different memory chunks by requesting to memory manager. More...

Go to the source code of this file.

Data Structures

struct  sMemory_t
 This structure is memory object structure,. More...
 

Macros

#define MEMSET(a, b, c)
 

Typedefs

typedef sMemory_t TIMemObject
 
typedef sMemory_tTIMemHandle
 

Functions

void TI_CreateMemoryHandle (TIMemHandle memhandle, unsigned char *baseAddr, unsigned int size)
 This function makes a memory handle live. More...
 
void TI_ResetMemoryHandle (TIMemHandle memhandle)
 This function makes reset an existing memory object to its initial state, effectively removing all the previously allcoated memory chunks. More...
 
unsigned char * TI_GetMemoryChunk (TIMemHandle memhandle, unsigned int size, unsigned int alignment)
 This function provides the requested memory to user. More...
 

Detailed Description

Implementation of the Memory Manager for internal memories in TI devices which needs to be handled by EVE software. User can create a object of memory with given base address and total size. Later user can get different memory chunks by requesting to memory manager.

Version
0.0 - Sep 2008 : initial version

Macro Definition Documentation

◆ MEMSET

#define MEMSET (   a,
  b,
 
)

Typedef Documentation

◆ TIMemObject

◆ TIMemHandle

Function Documentation

◆ TI_CreateMemoryHandle()

void TI_CreateMemoryHandle ( TIMemHandle  memhandle,
unsigned char *  baseAddr,
unsigned int  size 
)

This function makes a memory handle live.

TI_CreateMemoryHandle

Parameters
memhandle[IN]: Memory Handle
baseAddr[IN]: Base address of the memory object
size[IN]: Size of the total memory being assigned to this memory handle
Returns
none

◆ TI_ResetMemoryHandle()

void TI_ResetMemoryHandle ( TIMemHandle  memhandle)

This function makes reset an existing memory object to its initial state, effectively removing all the previously allcoated memory chunks.

TI_ResetMemoryHandle

Parameters
memhandle[IN]: Memory Handle
Returns
none

◆ TI_GetMemoryChunk()

unsigned char* TI_GetMemoryChunk ( TIMemHandle  memhandle,
unsigned int  size,
unsigned int  alignment 
)

This function provides the requested memory to user.

TI_GetMemoryChunk

Parameters
memhandle[IN]: Memory Handle
size[IN]: Requested size of the memory
alignment[IN]alignment of required memory
Returns
pointer to the memory

© Copyright 2018 Texas Instruments Incorporated. All rights reserved.
Document generated by doxygen 1.8.6