idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
memory.hpp File Reference

IDFXX memory utilities. More...

#include <cstddef>
#include <cstdint>
#include <esp_heap_caps.h>
#include <esp_system.h>
#include <new>

Go to the source code of this file.

Classes

struct  idfxx::dram_allocator< T >
 STL-compatible allocator for internal DRAM. More...
 
struct  idfxx::spiram_allocator< T >
 STL-compatible allocator for external PSRAM (SPI RAM). More...
 
struct  idfxx::dma_allocator< T >
 STL-compatible allocator for DMA-capable memory. More...
 

Namespaces

namespace  idfxx
 

Enumerations

enum class  idfxx::memory_type : uint32_t {
  idfxx::memory_type::internal = MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT ,
  idfxx::memory_type::spiram = MALLOC_CAP_SPIRAM
}
 Memory region type for heap allocations. More...
 

Functions

template<typename T , typename U >
bool idfxx::operator== (const dram_allocator< T > &, const dram_allocator< U > &)
 Equality comparison for dram_allocator.
 
template<typename T , typename U >
bool idfxx::operator!= (const dram_allocator< T > &, const dram_allocator< U > &)
 Inequality comparison for dram_allocator.
 
template<typename T , typename U >
bool idfxx::operator== (const spiram_allocator< T > &, const spiram_allocator< U > &)
 Equality comparison for spiram_allocator.
 
template<typename T , typename U >
bool idfxx::operator!= (const spiram_allocator< T > &, const spiram_allocator< U > &)
 Inequality comparison for spiram_allocator.
 
template<typename T , typename U >
bool idfxx::operator== (const dma_allocator< T > &, const dma_allocator< U > &)
 Equality comparison for dma_allocator.
 
template<typename T , typename U >
bool idfxx::operator!= (const dma_allocator< T > &, const dma_allocator< U > &)
 Inequality comparison for dma_allocator.
 

Detailed Description

IDFXX memory utilities.

Definition in file memory.hpp.