nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
zigbee_fota.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
19#ifndef ZIGBEE_FOTA_H_
20#define ZIGBEE_FOTA_H_
21
22#include <zephyr/kernel.h>
23#include <zboss_api.h>
24
25#define ZIGBEE_FOTA_EVT_DL_COMPLETE_VAL 100
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
42
47 int progress; /* Download progress percent, 0-100 */
48};
49
55 union {
57 };
58};
59
66typedef void (*zigbee_fota_callback_t)(const struct zigbee_fota_evt *evt);
67
77
82
88void zigbee_fota_signal_handler(zb_bufid_t bufid);
89
95void zigbee_fota_zcl_cb(zb_bufid_t bufid);
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif /* ZIGBEE_FOTA_H_ */
102
void(* zigbee_fota_callback_t)(const struct zigbee_fota_evt *evt)
Zigbee FOTA download asynchronous callback function.
Definition zigbee_fota.h:66
void zigbee_fota_signal_handler(zb_bufid_t bufid)
Function for passing Zigbee stack signals to the Zigbee FOTA logic.
int zigbee_fota_init(zigbee_fota_callback_t client_callback)
Initialize the Zigbee firmware over-the-air download library.
void zigbee_fota_zcl_cb(zb_bufid_t bufid)
Function for passing ZCL callback events to the Zigbee FOTA logic.
void zigbee_fota_abort(void)
Abort all pending updates performed via Zigbee network.
zigbee_fota_evt_id
Zigbee FOTA download event IDs.
Definition zigbee_fota.h:34
@ ZIGBEE_FOTA_EVT_ERROR
Definition zigbee_fota.h:40
@ ZIGBEE_FOTA_EVT_PROGRESS
Definition zigbee_fota.h:36
@ ZIGBEE_FOTA_EVT_FINISHED
Definition zigbee_fota.h:38
int progress
Definition zigbee_fota.h:47
Zigbee FOTA download progress event data.
Definition zigbee_fota.h:46
struct zigbee_fota_event_dl dl
Definition zigbee_fota.h:56
enum zigbee_fota_evt_id id
Definition zigbee_fota.h:54
Zigbee FOTA download event data.
Definition zigbee_fota.h:53