38 #ifndef INTERNAL_EVENT_H__ 39 #define INTERNAL_EVENT_H__ 41 #include "nrf_mesh_config_core.h" 42 #include "nrf_mesh_assert.h" 44 #include <nrf_error.h> 154 #if INTERNAL_EVT_ENABLE 155 #define __INTERNAL_EVENT_PUSH(EVENT_TYPE, ADDATA, PACKET_SIZE, P_PACKET) \ 157 internal_event_t EVT = \ 159 .type = (EVENT_TYPE), \ 160 .state.value = (ADDATA), \ 161 .packet_size = (PACKET_SIZE), \ 162 .p_packet = (uint8_t *) (P_PACKET) \ 164 uint32_t RESULT = internal_event_push(&EVT); \ 165 if (RESULT != NRF_SUCCESS) \ 167 __LOG(LOG_SRC_INTERNAL, LOG_LEVEL_WARN, "Unable to push the internal event to the callback function [er%d]", RESULT); \ 171 #define __INTERNAL_EVENT_PUSH(...) internal_event_type_t
Internal event types.
Network layer packet data used for PTS.
Internal event structure.
Invalid provisioning PDU was ignored.
internal_event_packet_dropped_t reason
Packet dropped reason.
Dropped due to invalid AD type.
Dropped due to unknown address.
Dropped due to invalid network key.
Flash Manager Defrag Completed.
Dropped due to network decrypt failed.
Packet to LPN is queued on Friend node.
uint8_t * p_packet
Packet pointer.
Network queued packet in bearer for TX.
uint32_t(* internal_event_report_cb_t)(internal_event_t *p_event)
Callback function for inline handling of internal events.
Transport layer decrypted packet segment.
Dropped due to invalid packet length.
Dropped due to no more memory.
Dropped due to packet already in network cache.
internal_event_packet_dropped_t
Internal event packet dropped reasons.
Dropped due to invalid address.
internal_event_type_t type
Type of internal event.
Transport layer decrypted packet.
ACK for transport SAR queued in bearer.
Packet dropped with reason internal_event_packet_dropped_t.
void internal_event_init(internal_event_report_cb_t report_cb)
Initializes the internal event module.
SAR transaction cancelled.
uint8_t value
Raw value of the packet dropped reason (used for the serial_evt_device_internal_event_t).
uint8_t packet_size
Size of the packet dropped.
Flash Manager Action Completed.
SAR transaction cancelled.
Dropped due to invalid application key.
uint32_t internal_event_push(internal_event_t *p_event)
Pushes an internal event to the callback function provided at the initialization. ...
Dropped due to invalid device key.
Packet was relayed by the network layer.
Dropped due to packet already in replay cache.
ACK for transport SAR segment received.
Network beacon is transmitted.