Contiki-NG
Loading...
Searching...
No Matches

IPC protocol definitions for nRF5340 dual-core communication. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  nrf_ipc_msg
 IPC message structure used for both commands and responses. More...
 
struct  nrf_ipc_shared_mem
 Shared memory layout between the application core and the network core. More...
 

Macros

#define NRF_IPC_PROTOCOL_VERSION   1
 Protocol version.
 
#define NRF_IPC_SHARED_MEM_ADDR   0x20070000UL
 Shared memory address.
 
#define NRF_IPC_MAX_FRAME_LEN   128
 Maximum 802.15.4 frame size carried over IPC.
 
#define NRF_IPC_MAX_DATA_LEN   140
 Maximum data size in a command or response message.
 
#define NRF_IPC_CMD_TIMEOUT_MS   100
 Timeout in milliseconds for IPC command responses.
 
#define NRF_IPC_HEARTBEAT_INTERVAL_SEC   10
 Interval in seconds between net core heartbeat checks on the app core.
 
#define NRF_IPC_LOG_BUF_SIZE   2048
 Size of the log ring buffer for forwarding net core output to the app core.
 
#define NRF_IPC_SHARED_MEM    ((volatile struct nrf_ipc_shared_mem *)NRF_IPC_SHARED_MEM_ADDR)
 Get a pointer to the shared memory structure.
 

Enumerations

enum  nrf_ipc_cmd_type {
  NRF_IPC_CMD_INIT = 1 , NRF_IPC_CMD_ON , NRF_IPC_CMD_OFF , NRF_IPC_CMD_SEND ,
  NRF_IPC_CMD_CCA , NRF_IPC_CMD_RECEIVING , NRF_IPC_CMD_PENDING , NRF_IPC_CMD_GET_VALUE ,
  NRF_IPC_CMD_SET_VALUE , NRF_IPC_CMD_GET_OBJECT , NRF_IPC_CMD_SET_OBJECT , NRF_IPC_CMD_DIAG
}
 IPC command types (app core -> net core). More...
 

Functions

void nrf_ipc_init (struct process *callback_proc)
 Initialize the IPC transport layer.
 
void nrf_ipc_signal (void)
 Send an IPC signal to the other core.
 

Detailed Description

IPC protocol definitions for nRF5340 dual-core communication.

Author
Nicolas Tsiftes nicol.nosp@m.as.t.nosp@m.sifte.nosp@m.s@ri.nosp@m..se

Definition in file nrf-ipc.h.