nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ tx_buf_alloc

void *(* nrf_rpc_tr_api::tx_buf_alloc) (const struct nrf_rpc_tr *transport, size_t *size)

Function for allocation Tx buffer for packet sending.

This function must successfully return. If there is not enough memory, but it is possible to wait, then this function should wait. If the requested length is too long then this function should fail (for example with ASSERT).

Memory is deallocated by send function or tx_buf_free function.

Parameters
[in]transportnRF RPC transport instance.
[in,out]sizeRequested buffer size as input. Allocated buffer size as output.
Return values
Allocatedbuffer or NULL if buffer allocation is not possible.