AVRTools
A Library for the AVR ATmega328 and ATmega2560 Microcontrollers
Namespaces | Functions
MemUtils.h File Reference

This file provides functions that provide information on the available memory in SRAM. More...

#include <stddef.h>
Include dependency graph for MemUtils.h:

Go to the source code of this file.

Namespaces

 MemUtils
 A namespace providing encapsulation for functions that report the available memory in SRAM.
 

Functions

size_t MemUtils::freeSRAM ()
 Get the total free memory remaining in SRAM. More...
 
size_t MemUtils::freeMemoryBetweenHeapAndStack ()
 Get the free memory between the heap and the stack. More...
 
void MemUtils::resetHeap ()
 Reset the heap to an empty (virgin) state. More...
 
size_t MemUtils::memoryAvailableOnFreeList ()
 Get the free memory on the heap free-list. More...
 
size_t MemUtils::getFreeListStats (int *nbrBlocks, size_t *sizeSmallestBlock, size_t *sizeLargestBlock)
 Get information about the heap free-list. More...
 

Detailed Description

This file provides functions that provide information on the available memory in SRAM.

To use these functions, include MemUtils.h in your source code and link against MemUtils.cpp.

These functions are wrapped in namespace MemUtils to avoid namespace collisions.