| 647 | } |
| 648 | |
| 649 | void 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 |
no test coverage detected