nRF5 SDK for Thread v0.9.0
Functions

This module includes the platform abstraction for the message pool. More...

Functions

void otPlatMessagePoolInit (otInstance *aInstance, uint16_t aMinNumFreeBuffers, size_t aBufferSize)
 
otMessageotPlatMessagePoolNew (otInstance *aInstance)
 
void otPlatMessagePoolFree (otInstance *aInstance, otMessage *aBuffer)
 
uint16_t otPlatMessagePoolNumFreeBuffers (otInstance *aInstance)
 

Detailed Description

This module includes the platform abstraction for the message pool.

Function Documentation

void otPlatMessagePoolFree ( otInstance *  aInstance,
otMessage aBuffer 
)

This function is used to free a Buffer back to the platform managed buffer pool.

Parameters
[in]aBufferThe Buffer to free.
void otPlatMessagePoolInit ( otInstance *  aInstance,
uint16_t  aMinNumFreeBuffers,
size_t  aBufferSize 
)

Initialize the platform implemented message pool.

Parameters
[in]aMinNumFreeBuffersAn uint16 containing the minimum number of free buffers desired by OpenThread.
[in]aBufferSizeThe size in bytes of a Buffer object.
otMessage* otPlatMessagePoolNew ( otInstance *  aInstance)

Allocate a buffer from the platform managed buffer pool.

Returns
A pointer to the Buffer or NULL if no Buffers are available.
uint16_t otPlatMessagePoolNumFreeBuffers ( otInstance *  aInstance)

Get the number of free buffers.

Returns
The number of buffers currently free and available to OpenThread.

Documentation feedback | Developer Zone | Subscribe | Updated