nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ dfu_target_img_type()

enum dfu_target_image_type dfu_target_img_type ( const void *const  buf,
size_t  len 
)

#include <include/dfu/dfu_target.h>

Find the image type for the buffer of bytes received. Used to determine what DFU target to initialize.

Parameters
[in]bufA buffer of bytes which are the start of a binary firmware image.
[in]lenThe length of the provided buffer.
Returns
Identifier for a supported image type or DFU_TARGET_IMAGE_TYPE_NONE if image type is not recognized.