nRF51 SDK: ble_dfu_evt_t Struct Reference

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
ble_dfu_evt_t Struct Reference
Device Firmware Update Service

DFU Event structure. More...

`#include <ble_dfu.h>`

## Data Fields

ble_dfu_evt_type_t | ble_dfu_evt_type
union {
ble_dfu_pkt_write_t ble_dfu_pkt_write
ble_pkt_rcpt_notif_req_t pkt_rcpt_notif_req
} | evt

## Detailed Description

DFU Event structure.

This structure contains the event generated by the DFU Service based on the data received from the peer.

## Field Documentation

ble_dfu_evt_type_t ble_dfu_evt_t::ble_dfu_evt_type

Type of the event.

ble_dfu_pkt_write_t ble_dfu_evt_t::ble_dfu_pkt_write

The DFU packet received. This field is when the ble_dfu_evt_type field is set to BLE_DFU_PACKET_WRITE.

ble_pkt_rcpt_notif_req_t ble_dfu_evt_t::pkt_rcpt_notif_req

Packet receipt notification request. This field is when the ble_dfu_evt_type field is set to BLE_DFU_PKT_RCPT_NOTIF_ENABLED.