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