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

◆ dfu_target_smp_img_type_check()

enum dfu_target_image_type dfu_target_smp_img_type_check ( 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 validate type for DFU SMP 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
DFU_TARGET_IMAGE_TYPE_SMP or DFU_TARGET_IMAGE_TYPE_NONE if image type is not recognized.