Zigbee Protocol Controller 1.6.0
zigpc_ota_zigbee_int.h
Go to the documentation of this file.
1/*******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 *******************************************************************************
5 *
6 * The licensor of this software is Silicon Laboratories Inc. Your use of this
7 * software is governed by the terms of Silicon Labs Master Software License
8 * Agreement (MSLA) available at
9 * www.silabs.com/about-us/legal/master-software-license-agreement. This
10 * software is distributed to you in Source Code format and is governed by the
11 * sections of the MSLA applicable to Source Code.
12 *
13 ******************************************************************************/
14
26#ifndef OTA_ZIGBEE_INT_H
27#define OTA_ZIGBEE_INT_H
28
29#include <string>
30
31// Shared Unify includes
32#include <ota.hpp>
33#include <sl_status.h>
34
35// ZigPC includes
36#include <zcl_definitions.h>
37
38/*
39 * @brief ZIGPC_DEFAULT_OTA_CACHE_SIZE
40 * The default size of the cache for used to configure
41 * the OTA Image Listener
42 */
43static const unsigned long ZIGPC_DEFAULT_OTA_CACHE_SIZE
44 = 10 * 1024 * 1024; //bytes
45
46/*
47 * @brief ZIGPC_DEFAULT_OTA_TIMEOUT
48 * The default time, in seconds for downloading an OTA image
49 * from an image provider
50 */
51static const unsigned int ZIGPC_DEFAULT_OTA_TIMEOUT = 60 * 60; //seconds
52
60
66
72
79
87
96 const std::string &file_path);
97
99#endif //OTA_ZIGBEE_INT_H
#define data
Definition: ctimer.c:49
static const unsigned int ZIGPC_DEFAULT_OTA_TIMEOUT
Definition: zigpc_ota_zigbee_int.h:51
void zigpc_ota_zigbee_image_ready(const uic_ota::image_ready_result_t result, const std::string &file_path)
zigpc_ota_zigbee_image_ready Callback for a new image has been downloaded and is ready
void on_remove_unsubscribe_ota_listeners(void *data)
on_remove_unsubscribe_ota_listeners Callback for unsubscribing ota image listeners on a device remove...
void on_ota_zigbee_upgrade_complete(void *data)
on_ota_zigbee_upgrade_complete Callback for the completion of an OTA upgrade
void zigpc_ota_zigbee_image_available(uic_ota::meta_t ota_meta_info)
zigpc_ota_zigbee_image_available Callback for a new ota image available
static const unsigned long ZIGPC_DEFAULT_OTA_CACHE_SIZE
Definition: zigpc_ota_zigbee_int.h:44
void on_ota_zigbee_upgrade_start(void *data)
on_ota_zigbee_upgrade_start Callback for the start of an OTA upgrade
sl_status_t ota_zigbee_register_observers()
ota_zigbee_register_observers Registers the observers for OTA events from the zigpc_gateway
uint32_t sl_status_t
Definition: sl_status.h:139
image_ready_result_t
Result enum that describes if an image is ready for the caller to be used to donwload its clients.
Definition: ota.hpp:170
SL Status Codes.
Struct that describes meta for a new available image.
Definition: ota.hpp:186