m2m_ota.h
Go to the documentation of this file.
1 
38 #ifndef __M2M_OTA_H__
39 #define __M2M_OTA_H__
40 
41 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
42 INCLUDES
43 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
44 
47 #include "driver/source/nmdrv.h"
48 
68 typedef void (*tpfOtaNotifCb) (tstrOtaUpdateInfo * pstrOtaUpdateInfo);
69 
70 
90 typedef void (*tpfOtaUpdateCb) (uint8 u8OtaUpdateStatusType ,uint8 u8OtaUpdateStatus);
93 /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
94 FUNCTION PROTOTYPES
95 *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
99 #ifdef __cplusplus
100  extern "C" {
101 #endif
102 
119 NMI_API sint8 m2m_ota_init(tpfOtaUpdateCb pfOtaUpdateCb,tpfOtaNotifCb pfOtaNotifCb);
312 NMI_API sint8 m2m_ota_start_update(uint8 * u8DownloadUrl);
375 
376 #if 0
377 NMI_API sint8 m2m_ota_test(void);
378 #endif
379 
380 #ifdef __cplusplus
381 }
382 #endif
383 #endif /* __M2M_OTA_H__ */
This module contains common APIs declarations.
signed char sint8
Range of values between -128 to 127.
Definition: nm_bsp.h:111
This module contains WINC3400 M2M driver APIs declarations.
NMI_API sint8 m2m_ota_notif_check_for_update(void)
check for ota update
Definition: m2m_ota.c:175
NMI_API sint8 m2m_ota_notif_sched(uint32 u32Period)
Schedule OTA update.
Definition: m2m_ota.c:195
NMI_API sint8 m2m_ota_start_update(uint8 *u8DownloadUrl)
Request OTA start update using the downloaded url.
Definition: m2m_ota.c:216
NMI_API sint8 m2m_ota_rollback(void)
Request OTA Rollback image.
Definition: m2m_ota.c:238
WINC3400 IoT Application Interface Internal Types.
NMI_API sint8 m2m_ota_notif_set_url(uint8 *u8Url)
Set the OTA url.
Definition: m2m_ota.c:153
This struct contains the OTA update information.
Definition: m2m_types.h:2182
void(* tpfOtaUpdateCb)(uint8 u8OtaUpdateStatusType, uint8 u8OtaUpdateStatus)
A callback to get OTA status update, the callback provides the download status, the switch to the dow...
Definition: m2m_ota.h:90
NMI_API sint8 m2m_ota_switch_firmware(void)
Switch to the upgraded Firmware.
Definition: m2m_ota.c:287
unsigned long uint32
Range of values between 0 to 4294967295.
Definition: nm_bsp.h:103
void(* tpfOtaNotifCb)(tstrOtaUpdateInfo *pstrOtaUpdateInfo)
A callback to get notification about a potential OTA update.
Definition: m2m_ota.h:68
unsigned char uint8
Range of values between 0 to 255.
Definition: nm_bsp.h:89
NMI_API sint8 m2m_ota_init(tpfOtaUpdateCb pfOtaUpdateCb, tpfOtaNotifCb pfOtaNotifCb)
Initialize the OTA layer.
Definition: m2m_ota.c:121
NMI_API sint8 m2m_ota_abort(void)
Request OTA Abort.
Definition: m2m_ota.c:269
#define NMI_API
Definition: nm_bsp.h:45


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04