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... | |
Runtime events in the core mesh.
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().
[in] | p_evt | Mesh event pointer. |
Definition at line 529 of file nrf_mesh_events.h.
enum nrf_mesh_evt_type_t |
Mesh event types.
Definition at line 59 of file nrf_mesh_events.h.
RX failure reason codes.
Enumerator | |
---|---|
NRF_MESH_RX_FAILED_REASON_REPLAY_CACHE_FULL | The replay protection cache is full. |
Definition at line 275 of file nrf_mesh_events.h.
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.
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.
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.
Definition at line 429 of file nrf_mesh_events.h.
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.
[in,out] | p_handler_params | Event handler parameters. |
void nrf_mesh_evt_handler_remove | ( | nrf_mesh_evt_handler_t * | p_handler_params | ) |
Remove an event handler.
[in,out] | p_handler_params | Event handler parameters. |