MCPcopy Create free account
hub / github.com/FastLED/FastLED / reset

Method reset

src/platforms/esp/32/drivers/rmt/rmt_5/rmt_memory_manager.cpp.hpp:649–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649void RmtMemoryManager::reset() FL_NOEXCEPT {
650 FL_LOG_RMT("RMT Memory Manager reset - clearing all allocations");
651
652 // Reset appropriate fields based on pool architecture
653 if (mLedger.is_global_pool) {
654 mLedger.allocated_words = 0;
655 } else {
656 mLedger.allocated_tx_words = 0;
657 mLedger.allocated_rx_words = 0;
658 }
659
660 mLedger.allocations.clear();
661 mDMAAllocation.allocated = false;
662 mDMAAllocation.channel_id = 0;
663 mDMAAllocation.is_tx = false;
664}
665
666// ============================================================================
667// State Inspection Methods

Callers 7

createMethod · 0.45
waitCompleteMethod · 0.45
cleanupMethod · 0.45
~SPIDeviceProxyMethod · 0.45
releaseChannelMethod · 0.45
Rmt5EncoderImplClass · 0.45
resetEncoderMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected