43 #include "nrf_mesh_dfu_types.h" 45 #include "mesh_config.h" 140 uint16_t subnet_index;
141 const uint8_t * p_network_id;
nrf_mesh_evt_sar_failed_t sar_failed
SAR failed event.
DFU transfer information structure.
nrf_mesh_evt_dfu_t dfu
DFU event.
bool key_refresh
Key refresh flag in the beacon.
IV update event structure.
const nrf_mesh_beacon_secmat_t * p_beacon_secmat
The secmat within the p_beacon_info that authenticated the incoming beacon.
nrf_mesh_dfu_role_t role
The device's role in the transfer.
net_state_iv_update_t state
Current IV update state.
nrf_mesh_fwid_t current
FWID union containing the current firmware ID of the given type.
nrf_mesh_evt_type_t
Mesh event types.
nrf_mesh_evt_key_refresh_notification_t key_refresh
Key refresh notification event.
void nrf_mesh_evt_handler_add(nrf_mesh_evt_handler_t *p_handler_params)
Registers an event handler to get events from the core stack.
The device firmware is outdated, according to a trusted source.
The replay protection cache is full.
nrf_mesh_tx_token_t token
Packet ID of the SAR session.
nrf_mesh_evt_net_beacon_received_t net_beacon
A network beacon was received.
Flash operations queue is empty, and flash is stable.
mesh_config_entry_id_t id
ID being loaded when the load failure occured.
Mesh config entry identifier.
A heartbeat message has been received.
mesh_config_entry_id_t id
ID being stored when the storage failure occured.
Information structure for the Bluetooth Mesh network beacons.
nrf_mesh_rx_failed_reason_t
RX failure reason codes.
nrf_mesh_dfu_role_t
The various roles a device can play in a dfu transfer.
nrf_mesh_dfu_end_t
Reasons for a DFU operation to end.
nrf_mesh_tx_token_t token
Packet identifier.
RX failed event structure.
uint16_t features
Feature's state bitmap.
void * p_flash_page
The address of the flash page the attempted operation failed.
nrf_mesh_dfu_end_t end_reason
Reason for the end event.
The device firmware is outdated, according to an un-authenticated source.
nrf_mesh_evt_hb_message_t hb_message
HB message received/sent event.
uint8_t authority
Authority level of the transfer.
list_node_t node
Node for the keeping in linked list.
nrf_mesh_sar_session_cancel_reason_t
SAR session cancelled reason codes.
mesh_config_load_failure_t reason
Reason for the load failure.
bool is_removed
To save list integrity.
nrf_mesh_evt_config_load_failure_t config_load_failure
Config load failure event.
uint32_t iv_index
IV index in the beacon.
Heartbeat received event structure.
void(* nrf_mesh_evt_handler_cb_t)(const nrf_mesh_evt_t *p_evt)
Mesh event handler callback type.
DFU request for this node to be the relay of a transfer.
SAR failed event structure.
nrf_mesh_evt_iv_update_notification_t iv_update
IV update notification event.
nrf_mesh_dfu_type_t dfu_type
DFU type and firmware ID of the transfer.
Network beacon received structure.
The packet was misformed.
nrf_mesh_evt_handler_cb_t evt_cb
Callback function pointer.
Bluetooth Mesh security material structure.
nrf_mesh_flash_user_module_t
User tokens for the flash manager.
mesh_config_load_failure_t
uint32_t length
Length of the firmware in the bank.
A message has been received.
nrf_mesh_evt_config_storage_failure_t config_storage_failure
Config storage failure event.
const nrf_mesh_rx_metadata_t * p_rx_metadata
RX metadata for the packet that produced the beacon.
An IV update event occurred.
Mesh config persistent storage is stable.
Key refresh notification structure.
Mesh config persistent storage failed catastrophically while storing.
uint8_t ttl
Time-to-live for the message, this is a 7-bit value.
uint32_t nrf_mesh_tx_token_t
TX Token type, used as a context parameter to notify the application of ended transmissions.
nrf_mesh_address_t src
Source address of the message.
uint32_t page_count
The number of pages given to the flash manager of the module reporting the event. ...
nrf_mesh_dfu_transfer_t transfer
DFU type and firmware ID of the transfer.
uint16_t src
Unicast address of the sender.
void nrf_mesh_evt_handler_remove(nrf_mesh_evt_handler_t *p_handler_params)
Removes an event handler.
nrf_mesh_evt_type_t type
Type of event.
nrf_mesh_key_refresh_phase_t
Key refresh phase.
const void * p_flash_entry
The flash entry that has failed.
nrf_mesh_address_t dst
Destination address of the message.
Mesh event handler context structure.
const void * p_area
The start of area owned by the flash manager of the module reporting the event.
uint8_t hops
Calculated hop value.
Transmission complete event structure.
The transport SAR session timed out.
const uint8_t * p_network_id
Network ID of the beacon that triggered the notification or NULL if unknown.
A key refresh event occurred.
bool is_signed
Flag indicating whether the bank is signed with an encryption key.
nrf_mesh_rx_failed_reason_t reason
Reason for the rx failure.
nrf_mesh_secmat_t secmat
Security material used in the decryption of the payload.
const uint8_t * p_auth_value
Authentication value in the beacon.
An authenticated network beacon was received.
nrf_mesh_evt_message_t message
Incoming message.
uint8_t init_ttl
Initial TTL value used for sending this heartbeat message.
uint32_t iv_index
IV index currently used for sending messages.
Device state manager flash user.
nrf_mesh_evt_rx_failed_t rx_failed
RX failed.
uint16_t src
Metadata for the received packet.
DFU request for this node to be the source of a transfer.
nrf_mesh_evt_flash_failed_t flash_failed
Flash failed event.
net_state_iv_update_t iv_update
IV update flag in the beacon.
nrf_mesh_evt_tx_complete_t tx_complete
Transmission complete.
The peer has cancelled the SAR session.
Message received event structure.
const nrf_mesh_rx_metadata_t * p_metadata
Metadata for the received packet.
uint16_t length
Message length.
const void * p_data
Failing data.
ID of a standalone firmware segment.
uint32_t data_len
Length of the failing data.
Security material for the Bluetooth Mesh network beacons.
const nrf_mesh_beacon_info_t * p_beacon_info
Pointer to the associated beacon info used to authenticate the incoming beacon.
The transport SAR session TX retry limit was exceeded.
nrf_mesh_sar_session_cancel_reason_t reason
Reason for closing the session.
const uint8_t * p_buffer
Buffer containing the message data.
The peer has started another SAR session.
net_state_iv_update_t
State of IV update procedure.
There were not enough resources to process the transport SAR session.
uint8_t ivi
IV index bit of the rx packet.
Mesh config persistent storage failed while loading an entry.
nrf_mesh_dfu_type_t
DFU transfer types.
uint32_t * p_start_addr
Start address of the bank.
nrf_mesh_flash_user_module_t user
The module the event is reported from.