Memory Buffer handling for MiWi Protocol interface.
Copyright (c) 2018 - 2019 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | NUMBER_OF_MIMEM_BUFFERS 30 |
Functions | |
void * | MiMem_Alloc (uint8_t size) |
void | MiMem_Free (void *buffPtr) |
void | MiMem_Init (void) |
uint8_t | MiMem_PercentageOfFreeBuffers (void) |
#define NUMBER_OF_MIMEM_BUFFERS 30 |
void* MiMem_Alloc | ( | uint8_t | size | ) |
References ALIGN, base, blockMetaDataSize, _Block_t::free, HEAP_MINIMUM_BLOCK_SIZE, MiMem_Init(), _Block_t::next, _Block_t::size, splitBlock(), and totalFreeBytesRemaining.
Referenced by otauDataInd(), and PHY_DataReq().
void MiMem_Free | ( | void * | buffPtr | ) |
References base, blockMetaDataSize, _Block_t::free, _Block_t::next, _Block_t::prev, _Block_t::size, and totalFreeBytesRemaining.
Referenced by miQueueFlush(), otauTask(), and PHY_TxHandler().
void MiMem_Init | ( | void | ) |
References ALIGN, _Block_t::free, HEAP_SIZE, heapMem, _Block_t::next, _Block_t::prev, _Block_t::size, and totalFreeBytesRemaining.
Referenced by MiMem_Alloc().
uint8_t MiMem_PercentageOfFreeBuffers | ( | void | ) |
References HEAP_SIZE, and totalFreeBytesRemaining.