Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Callbacks

     Lists the different callbacks that can be used during OTA updates.


Callbacks of type tpfOtaNotifCb and tpfOtaUpdateCb should be passed onto m2m_ota_init at system initialization. Other callbacks are provided to handle the various steps of Host File Download.

Typedefs

typedef void(* tpfOtaNotifCb )(tstrOtaUpdateInfo *pstrOtaUpdateInfo)
 A callback to get notification about a potential OTA update. More...
 
typedef void(* tpfOtaUpdateCb )(uint8 u8OtaUpdateStatusType, uint8 u8OtaUpdateStatus)
 A callback to get OTA status update, the callback provides the status type and its status.
The OTA callback provides the download status, the switch to the downloaded firmware status and roll-back status. More...
 

void(* tpfOtaNotifCb)(tstrOtaUpdateInfo *pstrOtaUpdateInfo)

A callback to get notification about a potential OTA update.

Parameters
[in]pstrOtaUpdateInfoA structure to provide notification payload.
See Also
tstrOtaUpdateInfo
Warning
The notification is not supported (Not implemented yet)
void(* tpfOtaUpdateCb)(uint8 u8OtaUpdateStatusType, uint8 u8OtaUpdateStatus)

A callback to get OTA status update, the callback provides the status type and its status.
The OTA callback provides the download status, the switch to the downloaded firmware status and roll-back status.

Parameters
[in]u8OtaUpdateStatusTypePossible values are listed in tenuOtaUpdateStatusType.
[in]u8OtaUpdateStatusPossible values are listed as enumerated by tenuOtaUpdateStatus.
Note
Executes other callbacks passed to the OTA module.
See Also
tenuOtaUpdateStatusType tenuOtaUpdateStatus