32 lines
541 B
C
32 lines
541 B
C
|
/*
|
||
|
* Copyright (c) 2021 Nordic Semiconductor ASA
|
||
|
*
|
||
|
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
|
||
|
*/
|
||
|
|
||
|
/** @file
|
||
|
* @brief Bluetooth Mesh DFU Target role handler
|
||
|
*/
|
||
|
|
||
|
#ifndef DFU_TARGET_H__
|
||
|
#define DFU_TARGET_H__
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
struct target_img_t {
|
||
|
uint8_t fwid[CONFIG_BT_MESH_DFU_FWID_MAXLEN];
|
||
|
};
|
||
|
|
||
|
extern struct bt_mesh_dfu_srv dfu_srv;
|
||
|
|
||
|
int dfu_target_init(struct bt_mesh_blob_io_flash *flash_stream);
|
||
|
void dfu_target_image_confirm(void);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* DFU_TARGET_H__ */
|