1

Committer:
group-STM32F031
Date:
Wed Mar 21 18:13:41 2018 +0000
Revision:
0:d193d40d4fa1
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
group-STM32F031 0:d193d40d4fa1 1 // ----------------------------------------------------------------------------
group-STM32F031 0:d193d40d4fa1 2 // Copyright 2016-2017 ARM Ltd.
group-STM32F031 0:d193d40d4fa1 3 //
group-STM32F031 0:d193d40d4fa1 4 // SPDX-License-Identifier: Apache-2.0
group-STM32F031 0:d193d40d4fa1 5 //
group-STM32F031 0:d193d40d4fa1 6 // Licensed under the Apache License, Version 2.0 (the "License");
group-STM32F031 0:d193d40d4fa1 7 // you may not use this file except in compliance with the License.
group-STM32F031 0:d193d40d4fa1 8 // You may obtain a copy of the License at
group-STM32F031 0:d193d40d4fa1 9 //
group-STM32F031 0:d193d40d4fa1 10 // http://www.apache.org/licenses/LICENSE-2.0
group-STM32F031 0:d193d40d4fa1 11 //
group-STM32F031 0:d193d40d4fa1 12 // Unless required by applicable law or agreed to in writing, software
group-STM32F031 0:d193d40d4fa1 13 // distributed under the License is distributed on an "AS IS" BASIS,
group-STM32F031 0:d193d40d4fa1 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
group-STM32F031 0:d193d40d4fa1 15 // See the License for the specific language governing permissions and
group-STM32F031 0:d193d40d4fa1 16 // limitations under the License.
group-STM32F031 0:d193d40d4fa1 17 // ----------------------------------------------------------------------------
group-STM32F031 0:d193d40d4fa1 18
group-STM32F031 0:d193d40d4fa1 19 #ifndef UPDATE_UI_EXAMPLE_H
group-STM32F031 0:d193d40d4fa1 20 #define UPDATE_UI_EXAMPLE_H
group-STM32F031 0:d193d40d4fa1 21
group-STM32F031 0:d193d40d4fa1 22 #include "mbed-cloud-client/MbedCloudClient.h"
group-STM32F031 0:d193d40d4fa1 23
group-STM32F031 0:d193d40d4fa1 24 #ifdef MBED_CLOUD_CLIENT_SUPPORT_UPDATE
group-STM32F031 0:d193d40d4fa1 25
group-STM32F031 0:d193d40d4fa1 26 #ifdef ARM_UPDATE_CLIENT_VERSION_VALUE
group-STM32F031 0:d193d40d4fa1 27 #if ARM_UPDATE_CLIENT_VERSION_VALUE > 101000
group-STM32F031 0:d193d40d4fa1 28 /**
group-STM32F031 0:d193d40d4fa1 29 * @brief Function for authorizing firmware downloads and reboots.
group-STM32F031 0:d193d40d4fa1 30 * @param request The request under consideration.
group-STM32F031 0:d193d40d4fa1 31 */
group-STM32F031 0:d193d40d4fa1 32 void update_authorize(int32_t request);
group-STM32F031 0:d193d40d4fa1 33 #endif
group-STM32F031 0:d193d40d4fa1 34 #endif
group-STM32F031 0:d193d40d4fa1 35
group-STM32F031 0:d193d40d4fa1 36 /**
group-STM32F031 0:d193d40d4fa1 37 * @brief Callback function for reporting the firmware download progress.
group-STM32F031 0:d193d40d4fa1 38 * @param progress Received bytes.
group-STM32F031 0:d193d40d4fa1 39 * @param total Total amount of bytes to be received.
group-STM32F031 0:d193d40d4fa1 40 */
group-STM32F031 0:d193d40d4fa1 41 void update_progress(uint32_t progress, uint32_t total);
group-STM32F031 0:d193d40d4fa1 42
group-STM32F031 0:d193d40d4fa1 43 /**
group-STM32F031 0:d193d40d4fa1 44 * @brief Set the cloud client instance for the update UI to use
group-STM32F031 0:d193d40d4fa1 45 * @param[in] client pointer to the cloud client instance
group-STM32F031 0:d193d40d4fa1 46 */
group-STM32F031 0:d193d40d4fa1 47 void update_ui_set_cloud_client(MbedCloudClient* client);
group-STM32F031 0:d193d40d4fa1 48
group-STM32F031 0:d193d40d4fa1 49
group-STM32F031 0:d193d40d4fa1 50 #endif // MBED_CLOUD_CLIENT_SUPPORT_UPDATE
group-STM32F031 0:d193d40d4fa1 51
group-STM32F031 0:d193d40d4fa1 52 #endif // UPDATE_UI_EXAMPLE_H