37 #ifndef NRF_MESH_DFU_H__ 38 #define NRF_MESH_DFU_H__ 42 #include "nrf_mesh_config_core.h" 43 #include "nrf_mesh_config_dfu.h" 45 #include "nrf_mesh_dfu_types.h" 46 #include "dfu_types_internal.h" 63 #define NRF_MESH_DFU_AUTH_LEVEL_MIN (1) 65 #define NRF_MESH_DFU_AUTH_LEVEL_MAX (7) 170 const uint32_t* p_bank_addr);
uint32_t nrf_mesh_dfu_init(void)
Initialize the DFU module.
uint32_t nrf_mesh_dfu_bank_info_get(nrf_mesh_dfu_type_t type, nrf_mesh_dfu_bank_info_t *p_bank_info)
Get info on the bank of the given type.
uint32_t nrf_mesh_dfu_enable(void)
Enable the DFU module in the Bootloader.
#define NRF_MESH_DFU_AUTH_LEVEL_MIN
Lowest authentication level available for DFU requests.
nrf_mesh_dfu_source_authority_t
Guiding authority values for sourcing a transfer.
uint32_t nrf_mesh_dfu_abort(void)
Abort the ongoing DFU operation.
Authority level for gateway-type nodes, which are able to provide the DFU directly from the external ...
uint32_t nrf_mesh_dfu_jump_to_bootloader(void)
Manually trigger the bootloader.
uint32_t nrf_mesh_dfu_state_get(nrf_mesh_dfu_transfer_state_t *p_dfu_transfer_state)
Get the current state of the DFU module.
Current state of a transfer.
uint32_t nrf_mesh_dfu_bank_flash(nrf_mesh_dfu_type_t bank_type)
Flash the bank of the given type.
uint32_t nrf_mesh_dfu_relay(nrf_mesh_dfu_type_t type, const nrf_mesh_fwid_t *p_fwid)
Relay an ongoing transfer.
uint32_t nrf_mesh_dfu_rx(const uint8_t *p_packet, uint32_t length, const nrf_mesh_rx_metadata_t *p_metadata)
Pass a DFU packet to the DFU module.
uint32_t nrf_mesh_dfu_request(nrf_mesh_dfu_type_t type, const nrf_mesh_fwid_t *p_fwid, const uint32_t *p_bank_addr)
Request a DFU transfer.
Authority level for nodes which are participating in the network, and have plenty of capacity to spar...
#define NRF_MESH_DFU_AUTH_LEVEL_MAX
Highest authentication level available for DFU requests.
ID of a standalone firmware segment.
Lowest authority level, for nodes that should only be chosen if no other option is available...
nrf_mesh_dfu_type_t
DFU transfer types.