Runtime events in the core mesh. More...
Typedefs | |
| typedef void(* | nrf_mesh_evt_handler_cb_t) (const nrf_mesh_evt_t *p_evt) |
| Mesh event handler callback type. More... | |
Functions | |
| void | nrf_mesh_evt_handler_add (nrf_mesh_evt_handler_t *p_handler_params) |
| Register an event handler to get events from the core stack. More... | |
| void | nrf_mesh_evt_handler_remove (nrf_mesh_evt_handler_t *p_handler_params) |
| Remove an event handler. More... | |
Detailed Description
Runtime events in the core mesh.
Typedef Documentation
◆ nrf_mesh_evt_handler_cb_t
| typedef void(* nrf_mesh_evt_handler_cb_t) (const nrf_mesh_evt_t *p_evt) |
Mesh event handler callback type.
To forward mesh events to the application, register a callback of this type using the function nrf_mesh_evt_handler_add().
- Parameters
-
[in] p_evt Mesh event pointer.
- See also
- nrf_mesh_evt_handler_add()
Definition at line 529 of file nrf_mesh_events.h.
Enumeration Type Documentation
◆ nrf_mesh_evt_type_t
| enum nrf_mesh_evt_type_t |
Mesh event types.
Definition at line 59 of file nrf_mesh_events.h.
◆ nrf_mesh_rx_failed_reason_t
RX failure reason codes.
Definition at line 275 of file nrf_mesh_events.h.
◆ nrf_mesh_sar_session_cancel_reason_t
SAR session cancelled reason codes.
| Enumerator | |
|---|---|
| NRF_MESH_SAR_CANCEL_REASON_TIMEOUT | The transport SAR session timed out. |
| NRF_MESH_SAR_CANCEL_REASON_RETRY_OVER | The transport SAR session TX retry limit is exceeded. |
| NRF_MESH_SAR_CANCEL_REASON_NO_MEM | There were not enough resources to process the transport SAR session. |
| NRF_MESH_SAR_CANCEL_BY_PEER | The peer cancelled the SAR session. |
| NRF_MESH_SAR_CANCEL_REASON_INVALID_FORMAT | The packet is malformed. |
| NRF_MESH_SAR_CANCEL_PEER_STARTED_ANOTHER_SESSION | The peer started another SAR session. |
| NRF_MESH_SAR_CANCEL_REASON_FRIENDSHIP_TERMINATED | The friendship was terminated and the ongoing RX could not continue. |
| NRF_MESH_SAR_CANCEL_REASON_FRIENDSHIP_ESTABLISHED | The friendship was established and the ongoing RX could not continue. |
| NRF_MESH_SAR_CANCEL_REASON_LPN_RX_NOT_COMPLETE | The LPN did not receive all segments before NRF_MESH_EVT_LPN_FRIEND_POLL_COMPLETE. |
Definition at line 297 of file nrf_mesh_events.h.
◆ nrf_mesh_flash_user_module_t
User tokens for the flash manager.
| Enumerator | |
|---|---|
| NRF_MESH_FLASH_USER_CORE | Mesh core flash user. |
| NRF_MESH_FLASH_USER_DEVICE_STATE_MANAGER | Device state manager flash user. |
| NRF_MESH_FLASH_USER_ACCESS | Access layer flash user. |
Definition at line 333 of file nrf_mesh_events.h.
◆ nrf_mesh_friendship_role_t
Device role in the friendship.
| Enumerator | |
|---|---|
| NRF_MESH_FRIENDSHIP_ROLE_FRIEND | Friend role. |
| NRF_MESH_FRIENDSHIP_ROLE_LPN | Low Power node role. |
Definition at line 411 of file nrf_mesh_events.h.
◆ nrf_mesh_evt_friendship_terminated_reason_t
Definition at line 429 of file nrf_mesh_events.h.
Function Documentation
◆ nrf_mesh_evt_handler_add()
| void nrf_mesh_evt_handler_add | ( | nrf_mesh_evt_handler_t * | p_handler_params | ) |
Register an event handler to get events from the core stack.
- Parameters
-
[in,out] p_handler_params Event handler parameters.
◆ nrf_mesh_evt_handler_remove()
| void nrf_mesh_evt_handler_remove | ( | nrf_mesh_evt_handler_t * | p_handler_params | ) |
Remove an event handler.
- Parameters
-
[in,out] p_handler_params Event handler parameters.