Interprocessor Communication (IPC) peripheral driver.
More...
Interprocessor Communication (IPC) peripheral driver.
◆ nrfx_ipc_handler_t
typedef void(* nrfx_ipc_handler_t) (uint32_t event_mask, void *p_context) |
IPC driver handler type.
- Parameters
-
[in] | event_mask | Bitmask with events that triggered the interrupt. |
[in] | p_context | Context passed to the interrupt handler, set on initialization. |
◆ nrfx_ipc_config_load()
Function for loading configuration directly into IPC peripheral.
- Parameters
-
p_config | Pointer to the structure with the initial configuration. |
◆ nrfx_ipc_gpmem_set()
NRFX_STATIC_INLINE void nrfx_ipc_gpmem_set |
( |
uint8_t |
mem_index, |
|
|
uint32_t |
data |
|
) |
| |
Function for storing data in GPMEM register in the IPC peripheral.
- Parameters
-
mem_index | Index of the memory cell. |
data | Data to be saved. |
◆ nrfx_ipc_init()
Function for initializing the IPC driver.
- Parameters
-
irq_priority | Interrupt priority. |
handler | Event handler provided by the user. Cannot be NULL. |
p_context | Context passed to event handler. |
- Return values
-
NRFX_SUCCESS | Initialization was successful. |
NRFX_ERROR_INVALID_STATE | Driver is already initialized. |
◆ nrfx_ipc_mem_get()
NRFX_STATIC_INLINE uint32_t nrfx_ipc_mem_get |
( |
uint8_t |
mem_index | ) |
|
Function for getting data from the GPMEM register in the IPC peripheral.
- Parameters
-
mem_index | Index of the memory cell. |
- Returns
- Saved data.
◆ nrfx_ipc_receive_config_set()
NRFX_STATIC_INLINE void nrfx_ipc_receive_config_set |
( |
uint8_t |
event_index, |
|
|
uint32_t |
channel_bitmask |
|
) |
| |
Function for assigning event to the IPC channels.
- Parameters
-
event_index | Index of the event to be configured. |
channel_bitmask | Bitmask with channels to which event will be connected. |
◆ nrfx_ipc_receive_event_channel_assign()
void nrfx_ipc_receive_event_channel_assign |
( |
uint8_t |
event_index, |
|
|
uint8_t |
channel_index |
|
) |
| |
Function for assigning event to the IPC channel.
- Parameters
-
event_index | Index of the event to be configured. |
channel_index | Index of the channel to which event will be connected. |
◆ nrfx_ipc_receive_event_disable()
void nrfx_ipc_receive_event_disable |
( |
uint8_t |
event_index | ) |
|
Function for disabling events from generate interrupt.
- Parameters
-
event_index | Index of event to be disabled. |
◆ nrfx_ipc_receive_event_enable()
void nrfx_ipc_receive_event_enable |
( |
uint8_t |
event_index | ) |
|
Function for enabling events to generate interrupt.
- Parameters
-
event_index | Index of event to be enabled. |
◆ nrfx_ipc_receive_event_group_disable()
void nrfx_ipc_receive_event_group_disable |
( |
uint32_t |
event_bitmask | ) |
|
Function for disabling set of events from generate interrupt.
- Parameters
-
event_bitmask | Bitmask with events to be disabled. |
◆ nrfx_ipc_receive_event_group_enable()
void nrfx_ipc_receive_event_group_enable |
( |
uint32_t |
event_bitmask | ) |
|
Function for enabling set of events to generate interrupt.
- Parameters
-
event_bitmask | Bitmask with events to be enabled. |
◆ nrfx_ipc_send_config_set()
NRFX_STATIC_INLINE void nrfx_ipc_send_config_set |
( |
uint8_t |
send_index, |
|
|
uint32_t |
channel_bitmask |
|
) |
| |
Function for assigning signal to the IPC channels.
- Parameters
-
send_index | Index of the signal to be configured. |
channel_bitmask | Bitmask with channels to which signal will be connected. |
◆ nrfx_ipc_send_task_channel_assign()
void nrfx_ipc_send_task_channel_assign |
( |
uint8_t |
send_index, |
|
|
uint8_t |
channel_index |
|
) |
| |
Function for assigning signal to the IPC channel.
- Parameters
-
send_index | Index of the signal to be configured. |
channel_index | Index of the instance of channel. |
◆ nrfx_ipc_signal()
NRFX_STATIC_INLINE void nrfx_ipc_signal |
( |
uint8_t |
send_index | ) |
|
Function for convey signal on configured channels.
Events connected to the IPC channels configured within this signal will be set and can generate interrupts when configured.
- Parameters
-
send_index | Index of the SEND task to trigger. |