hota_updater.h

Overview

Related Modules:

OTA

Description:

Defines the functions for system upgrades.

Since:

1.0

Version:

1.0

Summary

Functions

Function Name Description
HotaSetPackageType (unsigned int flag) int Sets the switch for using the default upgrade package format.
HotaGetUpdateIndex (unsigned int index) int Obtains the index of the A/B partition to be upgraded.
HotaInit (ErrorCallBackFunc errorCallback, StatusCallBackFunc statusCallback) int Initializes the OTA module.
HotaWrite (unsigned char buffer, unsigned int offset, unsigned int buffSize) int Writes specified data into flash memory.
HotaRead (unsigned int offset, unsigned int bufLen, unsigned char *buf) int Reads the data that has been written into flash memory.
HotaCancel (void) int Cancels an upgrade.
HotaSetBootSettings (void) int Sets the system state to be upgrading after data has been written into flash memory by HotaWrite.
HotaRestart (void) int Restarts the system after an upgrade.