nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_rpc_os_msg_get()

void nrf_rpc_os_msg_get ( struct nrf_rpc_os_msg * msg,
struct nrf_rpc_os_mutex * mutex,
const uint8_t ** data,
size_t * len )

#include <nrf_rpc/template/nrf_rpc_os_tmpl.h>

Get a message.

If message was not set yet then this function waits. When this function starts waiting, it atomically unlocks the passed mutex.

This function MAY time out, which is indicated by returning a NULL data pointer.

Parameters
[in]msgMessage passing structure.
[in]mutexPointer to mutex to unlock before entering the wait state.
[out]dataReceived data pointer. Data is passed as a pointer, so no copying is done.
[out]lenLength of the data.