![]() |
Mbed OS Reference
|
Modules | |
| ATCmdParser class | |
| CacheAlignedBuffer class | |
| Callback class | |
| CircularBuffer functions | |
| CriticalSectionLock functions | |
| CThunk class | |
| DeepSleepLock functions | |
| DirHandle functions | |
| File | |
| LocalFileSystem functions | |
| Assert macros | |
| atomic functions | |
| Atomic functions function analogously to C11 and C++11 - loads have acquire semantics, stores have release semantics, and atomic operations are sequentially consistent. | |
| chrono utilities | |
| Additions and variations of std::chrono. | |
| critical section function | |
| Debug functions | |
| Error functions | |
| Network interface and other utility functions | |
| mem_trace functions | |
| mktime functions | |
| MPU management functions | |
| poll functions | |
| Power management functions | |
| preprocessor macros | |
| Retarget functions | |
| rtc_time functions | |
| stats functions | |
| Mbed Thread | |
| Toolchain functions | |
| Version macros | |
| wait_api functions | |
| NonCopyable class | |
| ScopedLock functions | |
| SingletonPtr class | |
| Span class | |
| Stream class | |
| Transaction class | |
Data Structures | |
| class | ScopedRamExecutionLock |
| RAII object for disabling, then restoring RAM execute never mode Usage: More... | |
| class | ScopedRomWriteLock |
| RAII object for disabling, then restoring ROM write never mode Usage: More... | |
Enumerations | |
| enum | { MBED_MEM_TRACE_MALLOC , MBED_MEM_TRACE_REALLOC , MBED_MEM_TRACE_CALLOC , MBED_MEM_TRACE_FREE } |
| enum Memory operation types for tracer More... | |
Functions | |
| constexpr size_t | getNeededBackingBufferSize (size_t neededCapacity, size_t elementSize) |
| Calculate the needed capacity for a cache aligned buffer's backing buffer based on the needed capacity and element size. | |
| static DataT * | findCacheLineStart (uint8_t *buffer) |
| Find and return the first location in the given buffer that starts on a cache line. | |
| DataT * | data () |
| Get a pointer to the aligned data array inside the buffer. | |
| DataT const * | data () const |
| Get a pointer to the aligned data array inside the buffer (const version) | |
| DataT & | operator[] (size_t index) |
| Element access. | |
| DataT | operator[] (size_t index) const |
| Element access (const) | |
| iterator | begin () |
| Get iterator for start of buffer. | |
| const_iterator | begin () const |
| Get iterator for start of buffer. | |
| iterator | end () |
| Get iterator for end of buffer. | |
| const_iterator | end () const |
| Get iterator for end of buffer. | |
| constexpr size_t | capacity () |
| StaticCacheAlignedBuffer () | |
| Construct new cache-aligned buffer. | |
| StaticCacheAlignedBuffer (StaticCacheAlignedBuffer const &other) | |
| Copy from other cache-aligned buffer. | |
| StaticCacheAlignedBuffer & | operator= (StaticCacheAlignedBuffer< DataT, BufferSize > const &other) |
| Assign from other cache-aligned buffer. | |
| DynamicCacheAlignedBuffer (size_t capacity) | |
| Construct new cache-aligned buffer. | |
| DynamicCacheAlignedBuffer (DynamicCacheAlignedBuffer const &other) | |
| Copy from other cache-aligned buffer. | |
| DynamicCacheAlignedBuffer & | operator= (DynamicCacheAlignedBuffer const &other) |
| Assign from other cache-aligned buffer with the same type. | |
Variables | |
| DataT * | _alignedBufferPtr |
| Pointer to the aligned buffer. Must be set in each constructor of each subclass. | |
| size_t | _alignedBufferCapacity |
| Capacity of the aligned buffer, in terms of number of DataT elements. | |
| anonymous enum |
enum Memory operation types for tracer
Definition at line 34 of file mbed_mem_trace.h.
|
constexpr |
Calculate the needed capacity for a cache aligned buffer's backing buffer based on the needed capacity and element size.
| neededCapacity | Capacity needed for the buffer |
| elementSize | Size of each element |
Definition at line 37 of file CacheAlignedBuffer.h.
|
staticprotected |
Find and return the first location in the given buffer that starts on a cache line.
If this MCU does not use a cache, this function is a no-op.
| buffer | Pointer to buffer |
Definition at line 128 of file CacheAlignedBuffer.h.
| DataT * data | ( | ) |
Get a pointer to the aligned data array inside the buffer.
Definition at line 153 of file CacheAlignedBuffer.h.
| DataT const * data | ( | ) | const |
Get a pointer to the aligned data array inside the buffer (const version)
Definition at line 161 of file CacheAlignedBuffer.h.
| DataT & operator[] | ( | size_t | index | ) |
Element access.
Definition at line 169 of file CacheAlignedBuffer.h.
| DataT operator[] | ( | size_t | index | ) | const |
Element access (const)
Definition at line 177 of file CacheAlignedBuffer.h.
| iterator begin | ( | ) |
Get iterator for start of buffer.
Definition at line 185 of file CacheAlignedBuffer.h.
| const_iterator begin | ( | ) | const |
Get iterator for start of buffer.
Definition at line 193 of file CacheAlignedBuffer.h.
| iterator end | ( | ) |
Get iterator for end of buffer.
Definition at line 201 of file CacheAlignedBuffer.h.
| const_iterator end | ( | ) | const |
Get iterator for end of buffer.
Definition at line 209 of file CacheAlignedBuffer.h.
|
constexpr |
Definition at line 217 of file CacheAlignedBuffer.h.
| StaticCacheAlignedBuffer | ( | ) |
Construct new cache-aligned buffer.
Buffer will be zero-initialized.
Definition at line 245 of file CacheAlignedBuffer.h.
| StaticCacheAlignedBuffer | ( | StaticCacheAlignedBuffer< DataT, BufferSize > const & | other | ) |
Copy from other cache-aligned buffer.
Buffer memory will be copied.
Definition at line 255 of file CacheAlignedBuffer.h.
| StaticCacheAlignedBuffer & operator= | ( | StaticCacheAlignedBuffer< DataT, BufferSize > const & | other | ) |
Assign from other cache-aligned buffer.
Buffer memory will be assigned.
Only a buffer with the same data type and size can be assigned.
Definition at line 267 of file CacheAlignedBuffer.h.
|
explicit |
Construct new cache-aligned buffer.
Buffer will be zero-initialized and allocated from the heap.
| capacity | Number of elements the buffer shall hold |
Definition at line 293 of file CacheAlignedBuffer.h.
| DynamicCacheAlignedBuffer | ( | DynamicCacheAlignedBuffer< DataT > const & | other | ) |
Copy from other cache-aligned buffer.
A new backing buffer will be allocated on the heap and its data will be copied from the other buffer.
Definition at line 304 of file CacheAlignedBuffer.h.
| DynamicCacheAlignedBuffer & operator= | ( | DynamicCacheAlignedBuffer< DataT > const & | other | ) |
Assign from other cache-aligned buffer with the same type.
A new buffer will be allocated of the correct size.
Definition at line 322 of file CacheAlignedBuffer.h.
|
protected |
Pointer to the aligned buffer. Must be set in each constructor of each subclass.
Definition at line 112 of file CacheAlignedBuffer.h.
|
protected |
Capacity of the aligned buffer, in terms of number of DataT elements.
Definition at line 115 of file CacheAlignedBuffer.h.