DynAlloc.h File Reference

#include <avr/io.h>
#include <stdbool.h>
#include <string.h>

Defines

#define DEREF(handle, type)   (*(type*)handle)
#define ALLOCABLE_BYTES   (1UL * NUM_BLOCKS * BLOCK_SIZE)

Typedefs

typedef const void ** Mem_Handle_t
typedef uint32_t Alloc_Size_t
typedef uint32_t Block_Number_t
typedef uint32_t Handle_Number_t

Functions

Mem_Handle_t Mem_Alloc (const Alloc_Size_t Bytes)
Mem_Handle_t Mem_Calloc (const Alloc_Size_t Bytes)
Mem_Handle_t Mem_Realloc (Mem_Handle_t CurrAllocHdl, const Alloc_Size_t Bytes)
void Mem_Free (Mem_Handle_t CurrAllocHdl)
Block_Number_t Mem_TotalFreeBlocks (void)
Handle_Number_t Mem_TotalFreeHandles (void)

Detailed Description

Dynamic, auto-defragmenting block memory allocator library. This library provides a convenient replacement for the standard avr-libc dynamic memory allocation routines. Memory is handed out in block chunks, to reduce the management memory overhead.

Generated on Fri Jun 5 16:30:19 2009 for LUFA Library by  doxygen 1.5.7.1