![]() |
nrfxlib API 3.3.99
|
| 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.
| [in] | msg | Message passing structure. |
| [in] | mutex | Pointer to mutex to unlock before entering the wait state. |
| [out] | data | Received data pointer. Data is passed as a pointer, so no copying is done. |
| [out] | len | Length of the data. |