test

Fork of nrf51-sdk by Lancaster University

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 70 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 74 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 73 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 72 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 76 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 75 of file dfu_init.h.