nrfxlib API 2.8.99
|
OS-dependent functionality for nRF PRC. More...
Macros | |
#define | NRF_RPC_OS_WAIT_FOREVER -1 |
#define | NRF_RPC_OS_NO_WAIT 0 |
Typedefs | |
typedef void(* | nrf_rpc_os_work_t) (const uint8_t *data, size_t len) |
Work callback that will be called from thread pool. | |
Functions | |
int | nrf_rpc_os_init (nrf_rpc_os_work_t callback) |
nRF RPC OS-dependent initialization. | |
void | nrf_rpc_os_thread_pool_send (const uint8_t *data, size_t len) |
Send work to a thread pool. | |
int | nrf_rpc_os_event_init (struct nrf_rpc_os_event *event) |
Initialize event passing structure. | |
void | nrf_rpc_os_event_set (struct nrf_rpc_os_event *event) |
Set an event. | |
int | nrf_rpc_os_event_wait (struct nrf_rpc_os_event *event, int32_t timeout) |
Wait for an event. | |
int | nrf_rpc_os_msg_init (struct nrf_rpc_os_msg *msg) |
Initialize message passing structure. | |
void | nrf_rpc_os_msg_set (struct nrf_rpc_os_msg *msg, const uint8_t *data, size_t len) |
Pass a message to a different therad. | |
void | nrf_rpc_os_msg_get (struct nrf_rpc_os_msg *msg, const uint8_t **data, size_t *len) |
Get a message. | |
void * | nrf_rpc_os_tls_get (void) |
Get TLS (Thread Local Storage) for nRF RPC. | |
void | nrf_rpc_os_tls_set (void *data) |
Set TLS (Thread Local Storage) for nRF RPC. | |
uint32_t | nrf_rpc_os_ctx_pool_reserve () |
Reserve one context from command context pool. | |
void | nrf_rpc_os_ctx_pool_release (uint32_t index) |
Release context from context pool. | |
void | nrf_rpc_os_remote_count (int count) |
Set number of remote threads. | |
void | nrf_rpc_os_remote_reserve () |
Reserve one thread from a remote thread pool. | |
void | nrf_rpc_os_remote_release () |
Release one thread from a remote thread pool. | |
OS-dependent functionality for nRF PRC.