ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
tmboy
Date:
Tue Jul 18 09:08:52 2017 +0000
Revision:
50:9ecaa144d1f3
Parent:
47:9e361da97763
add .json

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TMBOY 47:9e361da97763 1 /*
TMBOY 47:9e361da97763 2 * ota_updater.h
TMBOY 47:9e361da97763 3 *
TMBOY 47:9e361da97763 4 * Created on: 2017-2-28
TMBOY 47:9e361da97763 5 * Author: duanlian01
TMBOY 47:9e361da97763 6 */
TMBOY 47:9e361da97763 7
TMBOY 47:9e361da97763 8 #ifndef RDA_OTA_UPDATER_H_
TMBOY 47:9e361da97763 9 #define RDA_OTA_UPDATER_H_
TMBOY 47:9e361da97763 10 #include "IOtaUpdater.h"
TMBOY 47:9e361da97763 11 #define OTA_IMAGE_BAD_SIZE 1
TMBOY 47:9e361da97763 12 #define OTA_UPDATE_CRC_FAIL 2
TMBOY 47:9e361da97763 13 #ifdef __cplusplus
TMBOY 47:9e361da97763 14 extern "C" {
TMBOY 47:9e361da97763 15 #endif
TMBOY 47:9e361da97763 16 struct rda_ota_update_context{
TMBOY 47:9e361da97763 17 void *address;
TMBOY 47:9e361da97763 18 struct module_info info;
TMBOY 47:9e361da97763 19 };
TMBOY 47:9e361da97763 20 int rda_notify_data_begin();
TMBOY 47:9e361da97763 21 int rda_notify_meta_data(void *cxt, struct package_meta_data *meta);
TMBOY 47:9e361da97763 22 int rda_notify_module_data(void *cxt, unsigned int offset, unsigned char *data, unsigned int size);
TMBOY 47:9e361da97763 23 int rda_notify_data_end();
TMBOY 47:9e361da97763 24
TMBOY 47:9e361da97763 25 void rda_ota_restart();
TMBOY 47:9e361da97763 26
TMBOY 47:9e361da97763 27 int rda_ota_update_image_begin();
TMBOY 47:9e361da97763 28 int rda_ota_update_image();
TMBOY 47:9e361da97763 29 int rda_ota_update_image_end();
TMBOY 47:9e361da97763 30 #ifdef __cplusplus
TMBOY 47:9e361da97763 31 }
TMBOY 47:9e361da97763 32 #endif
TMBOY 47:9e361da97763 33 #endif /* RDA_OTA_UPDATER_H_ */