WINC3400 IoT OTA Interface.
Copyright (c) 2017-2021 Microchip Technology Inc. and its subsidiaries.
#include "common/include/nm_common.h"
#include "driver/include/m2m_types.h"
#include "driver/include/m2m_ota.h"
#include "driver/include/m2m_wifi.h"
#include "driver/source/m2m_hif.h"
Functions | |
NMI_API sint8 | m2m_ota_abort (void) |
Request OTA Abort. More... | |
static void | m2m_ota_cb (uint8 u8OpCode, uint16 u16DataSize, uint32 u32Addr) |
Internal OTA call back function. More... | |
NMI_API sint8 | m2m_ota_init (tpfOtaUpdateCb pfOtaUpdateCb, tpfOtaNotifCb pfOtaNotifCb) |
Initialize the OTA layer. More... | |
NMI_API sint8 | m2m_ota_notif_check_for_update (void) |
Check for OTA update. More... | |
NMI_API sint8 | m2m_ota_notif_sched (uint32 u32Period) |
Schedule OTA update. More... | |
NMI_API sint8 | m2m_ota_notif_set_url (uint8 *u8Url) |
Set the OTA url. More... | |
NMI_API sint8 | m2m_ota_rollback (void) |
Request OTA Rollback image. More... | |
NMI_API sint8 | m2m_ota_start_update (unsigned char *pcDownloadUrl) |
Request OTA start update using the downloaded URL. More... | |
NMI_API sint8 | m2m_ota_switch_firmware (void) |
Switch to the upgraded Firmware. More... | |
Variables | |
static tpfOtaNotifCb | gpfOtaNotifCb = NULL |
static tpfOtaUpdateCb | gpfOtaUpdateCb = NULL |
Internal OTA call back function.
[in] | u8OpCode | HIF Opcode type. |
[in] | u16DataSize | HIF data length. |
[in] | u32Addr | HIF address. |
References gpfOtaNotifCb, gpfOtaUpdateCb, hif_receive(), M2M_ERR, m2m_memset(), M2M_OTA_RESP_NOTIF_UPDATE_INFO, M2M_OTA_RESP_UPDATE_STATUS, M2M_SUCCESS, tstrOtaUpdateStatusResp::u8OtaUpdateStatus, and tstrOtaUpdateStatusResp::u8OtaUpdateStatusType.
Referenced by m2m_ota_init().
|
static |
Referenced by m2m_ota_cb(), and m2m_ota_init().
|
static |
Referenced by m2m_ota_cb(), and m2m_ota_init().