38 #ifndef NRF_MESH_DFU_TYPES_H__ 39 #define NRF_MESH_DFU_TYPES_H__ 43 #include "nrf_mesh_assert.h" 52 #define NRF_MESH_DFU_PUBLIC_KEY_LEN (64) 54 #define NRF_MESH_DFU_SIGNATURE_LEN (64) 56 #define NRF_MESH_DFU_SEGMENT_LENGTH (16) 70 typedef struct __attribute((packed))
81 typedef struct __attribute((packed))
92 typedef union __attribute((packed))
DFU transfer information structure.
The DFU module has not been initialized.
The given bank address results in bootloader invalidation.
Too many packets were lost in the transfer.
nrf_mesh_fwid_t fwid
Firmware ID of the bank.
Not enough memory to handle transfer.
uint32_t * p_start_addr
Start address of the bank.
The signature check failed.
uint8_t data_progress
The progress of the transfer in percent (0-100).
There's no DFU operation in progress.
nrf_mesh_dfu_role_t
The various roles a device can play in a dfu transfer.
nrf_mesh_app_id_t application
Application ID.
nrf_mesh_dfu_end_t
Reasons for a DFU operation to end.
Beaconing intent to relay a transfer.
Timed out waiting for packets.
Application ID structure.
Passively relaying a transfer.
nrf_mesh_dfu_type_t dfu_type
DFU type of the bank.
Waiting for metadata about validated transfer to be written.
nrf_mesh_fwid_t id
Firmware target of transfer.
nrf_mesh_bootloader_id_t bootloader
Bootloader ID.
When copying the finished bank to its intended destination, it will have to overwrite itself...
The application requested to abort the transfer.
Current state of a transfer.
nrf_mesh_fwid_t fwid
The FWID of the new data in the transfer.
nrf_mesh_dfu_role_t role
This device's intended role in the transfer.
uint32_t app_version
Application version.
The DFU module has been initialized, but not started.
The transfer ended successfully.
nrf_mesh_dfu_type_t dfu_type
Type of transfer.
nrf_mesh_dfu_type_t type
The DFU type of the transfer.
A call to the MBR failed.
The transfer does not meet its requirements.
Ready to receive a transfer.
bool is_signed
Flag indicating whether the bank is signed with an encryption key.
uint32_t company_id
Company ID.
nrf_mesh_dfu_state_t state
The current global state of the transfer.
Bootloader info transfer.
nrf_mesh_dfu_state_t
States of the DFU module.
uint8_t bl_version
Bootloader version number.
uint8_t bl_id
Bootloader identificator.
Failed to receive the start packet.
uint32_t length
Length of the firmware in the bank.
uint16_t softdevice
Softdevice revision number.
ID of a standalone firmware segment.
Device page contained invalid or corrupted data.
The transfer fell outside its designated flash section.
uint16_t app_id
Application ID.
Beaconing requests for transfers.
nrf_mesh_dfu_type_t
DFU transfer types.
Validating and finishing up a transfer.
The FWID was valid, and the bootloader stopped operation.