TI BLE Stack API Documentation  2.03.06
Functions
GATT Buffer Management API Functions

Functions

void * GATT_bm_alloc (uint16 connHandle, uint8 opcode, uint16 size, uint16 *pSizeAlloc)
 GATT implementation of the allocator functionality. More...
 
void GATT_bm_free (gattMsg_t *pMsg, uint8 opcode)
 GATT implementation of the de-allocator functionality. More...
 

Detailed Description

Function Documentation

§ GATT_bm_alloc()

void* GATT_bm_alloc ( uint16  connHandle,
uint8  opcode,
uint16  size,
uint16 *  pSizeAlloc 
)

GATT implementation of the allocator functionality.

Note: This function should only be called by GATT and the upper layer protocol/application.

Parameters
connHandle- connection that message is to be sent on.
opcode- opcode of message that buffer to be allocated for.
size- number of bytes to allocate from the heap.
pSizeAlloc- number of bytes allocated for the caller from the heap.
Returns
pointer to the heap allocation; NULL if error or failure.

§ GATT_bm_free()

void GATT_bm_free ( gattMsg_t pMsg,
uint8  opcode 
)

GATT implementation of the de-allocator functionality.

Parameters
pMsg- pointer to GATT message containing the memory to free.
opcode- opcode of the message
Returns
none