Memory Buffer handling for MiWi Protocol interface.
Copyright (c) 2018 - 2019 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | NUMBER_OF_MIMEM_BUFFERS 40 |
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 40 |
void* MiMem_Alloc | ( | uint8_t | size | ) |
References ALIGN, base, blockMetaDataSize, _Block_t::free, HEAP_MINIMUM_BLOCK_SIZE, MiMem_Init(), _Block_t::next, NULL, _Block_t::size, splitBlock(), and totalFreeBytesRemaining.
Referenced by appAckWaitDataCallback(), frameParse(), frameTransmit(), macAckOnlyDataCallback(), MiApp_BroadcastConnectionTable(), MiApp_SendData(), otauDataInd(), PHY_DataReq(), removeConnection(), and sendConnectionRequest().
void MiMem_Free | ( | void * | buffPtr | ) |
References base, blockMetaDataSize, _Block_t::free, _Block_t::next, NULL, _Block_t::prev, _Block_t::size, and totalFreeBytesRemaining.
Referenced by appAckWaitDataCallback(), CommandConfCallback(), connectionRespConfCallback(), connReqConfCallback(), dataConfcb(), dataTimerHandler(), frameParse(), frameTxCallback(), macAckOnlyDataCallback(), miQueueFlush(), otauTask(), PHY_TxHandler(), protocolTimerHandler(), and sendConnectionRequest().
void MiMem_Init | ( | void | ) |
References ALIGN, _Block_t::free, HEAP_SIZE, heapMem, _Block_t::next, NULL, _Block_t::prev, _Block_t::size, and totalFreeBytesRemaining.
Referenced by MiMem_Alloc().
uint8_t MiMem_PercentageOfFreeBuffers | ( | void | ) |
References HEAP_SIZE, and totalFreeBytesRemaining.
Referenced by frameParse(), and MiApp_SendData().