Zigbee Protocol Controller 1.6.0
zigpc_ncp_updater.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
24#ifndef ZIGPC_NCP_UPDATER_H
25#define ZIGPC_NCP_UPDATER_H
26
27#include "sl_status.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33
34/*
35 * @brief zigpc_ncp_updater_setup
36 * Set up the NCP Updater component.
37 *
38 * @return SL_STATUS_OK if able to successfully initialize the component
39 */
41
42/*
43 * @brief zigpc_ncp_updater_run
44 * The function that performs an NCP update on a given USB port,
45 * with a given firmware image.
46 *
47 * @param serial_path - the path to the serial port of the NCP
48 * @param firmware_path - the path to the NCP firmware image
49 *
50 * @return SL_STATUS_OK if able to successfully update the device firmware
51 */
53 const char* serial_path,
54 const char* firmware_path);
55
56/*
57 * @brief zigpc_ncp_update_progress
58 * The function that notifies the user of the firmware
59 * upgrade progress. Currently, prints the percent done
60 * in debug mode.
61 *
62 * @param offset - the current index of the upgrade being sent
63 * @param size - the total size of the upgrade file
64 *
65 */
66void zigpc_ncp_update_progress(int offset, int size);
67
68/*
69 * @brief zigpc_ncp_updater_shutdown
70 * The function that shuts down the ncp_updater component
71 *
72 * @return 0 if able to successfully shut down
73 */
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif //ZIGPC_NCP_UPDATER
uint32_t sl_status_t
Definition: sl_status.h:139
sl_status_t zigpc_ncp_updater_run(const char *serial_path, const char *firmware_path)
void zigpc_ncp_update_progress(int offset, int size)
int zigpc_ncp_updater_shutdown(void)
sl_status_t zigpc_ncp_updater_setup(void)
SL Status Codes.