Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

dfu_init_packet_t Struct Reference

dfu_init_packet_t Struct Reference
[Init packet handling in DFU.]

Structure contained in an init packet. More...

#include <dfu_init.h>

Data Fields

uint16_t device_type
 Device type (2 bytes), for example Heart Rate.
uint16_t device_rev
 Device revision (2 bytes), for example major revision 1, minor revision 0.
uint32_t app_version
 Application version for the image software.
uint16_t softdevice_len
 Number of different SoftDevice revisions compatible with this application.
uint16_t softdevice [1]
 Variable length array of SoftDevices compatible with this application.

Detailed Description

Structure contained in an init packet.

Contains information on device type, revision, and supported SoftDevices.

Definition at line 50 of file dfu_init.h.


Field Documentation

uint32_t app_version

Application version for the image software.

This field allows for additional checking, for example ensuring that a downgrade is not allowed.

Definition at line 54 of file dfu_init.h.

uint16_t device_rev

Device revision (2 bytes), for example major revision 1, minor revision 0.

This number must be defined by the customer before production. It can be located in UICR or FICR.

Definition at line 53 of file dfu_init.h.

uint16_t device_type

Device type (2 bytes), for example Heart Rate.

This number must be defined by the customer before production. It can be located in UICR or FICR.

Definition at line 52 of file dfu_init.h.

uint16_t softdevice[1]

Variable length array of SoftDevices compatible with this application.

The length of the array is specified in the length field. SoftDevice firmware id 0xFFFE indicates any SoftDevice.

Definition at line 56 of file dfu_init.h.

uint16_t softdevice_len

Number of different SoftDevice revisions compatible with this application.

The list of SoftDevice firmware IDs is defined in softdevice.

Definition at line 55 of file dfu_init.h.