nRF5 SDK v13.0.0
Data Fields
dfu_progress_t Struct Reference

DFU progress. More...

#include <nrf_dfu_types.h>

Data Fields

uint32_t command_size
 
uint32_t command_offset
 
uint32_t command_crc
 
uint32_t data_object_size
 
uint32_t firmware_image_crc
 
uint32_t firmware_image_crc_last
 
uint32_t firmware_image_offset
 
uint32_t firmware_image_offset_last
 

Detailed Description

DFU progress.

Be aware of the difference between objects and firmware images. A firmware image consists of multiple objects, each of a maximum size DATA_OBJECT_MAX_SIZE.

Field Documentation

uint32_t dfu_progress_t::command_crc

The calculated CRC of the init command (calculated after the transfer is completed).

uint32_t dfu_progress_t::command_offset

The offset of the currently received init command data. The offset will increase as the init command is received.

uint32_t dfu_progress_t::command_size

The size of the current init command stored in the DFU settings.

uint32_t dfu_progress_t::data_object_size

The size of the last object created. Note that this size is not the size of the whole firmware image.

uint32_t dfu_progress_t::firmware_image_crc

CRC value of the current firmware (continuously calculated as data is received).

uint32_t dfu_progress_t::firmware_image_crc_last

The CRC of the last executed object.

uint32_t dfu_progress_t::firmware_image_offset

The offset of the current firmware image being transferred. Note that this offset is the offset in the entire firmware image and not only the current object.

uint32_t dfu_progress_t::firmware_image_offset_last

The offset of the last executed object from the start of the firmware image.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated