nrf_dfu_req_t

nRF5 SDK v12.2.0

Definition of a DFU request sent from the transport layer. More...

#include <nrf_dfu_req_handler.h>

Data Fields

nrf_dfu_req_op_t req_type
union {
struct {
uint32_t obj_type
uint32_t object_size
}
struct {
uint8_t * p_req
uint32_t req_len
}
};

Detailed Description

Definition of a DFU request sent from the transport layer.

When the transport layer gets a DFU event, it calls the function nrf_dfu_req_handler_on_req to handle the DFU request.

Field Documentation

uint32_t nrf_dfu_req_t::obj_type

Object type of the object to be created for a request of type NRF_DFU_OBJECT_OP_CREATE .

uint32_t nrf_dfu_req_t::object_size

Size of the object to be created for a request of type NRF_DFU_OBJECT_OP_CREATE . Note that the object size is not the same as the size of the firmware.

uint8_t* nrf_dfu_req_t::p_req

Pointer to an array holding the serialized version of the request.

uint32_t nrf_dfu_req_t::req_len

Length of the request array.

nrf_dfu_req_op_t nrf_dfu_req_t::req_type

Request operation type.

  • components/libraries/bootloader/dfu/nrf_dfu_req_handler.h