#include "legato.h"
#include "taf_update_common.h"
Go to the source code of this file.
◆ taf_update_GetServiceRef()
le_msg_ServiceRef_t taf_update_GetServiceRef |
( |
void |
| ) |
|
Get the server service reference
◆ taf_update_GetClientSessionRef()
Get the client session reference for the current message
◆ taf_update_AdvertiseService()
void taf_update_AdvertiseService |
( |
void |
| ) |
|
Initialize the server and advertise the service.
◆ taf_update_AddStateHandler()
Update session reference. Update states. Error codes. OTA workflows. Update package type. Bank enum. Update state indication structure. Handler for update state. Reference type used by Add/Remove functions for EVENT 'taf_update_State' Add handler function for EVENT 'taf_update_State'
Event to report update progress.
Add handler function for EVENT 'taf_update_State'
Event to report update progress.
- Parameters
-
[in] | handlerPtr | Handler for update state. |
[in] | contextPtr | |
◆ taf_update_RemoveStateHandler()
Remove handler function for EVENT 'taf_update_State'
- Parameters
-
◆ taf_update_Download()
void taf_update_Download |
( |
void |
| ) |
|
Downloads an OTA package from a cloud server.
- Note
- Update service will parse the download package and remove the QOTA header once the download is complete.
◆ taf_update_Install()
Installs an OTA package on the target device.
- Note
- QOTA header should be removed before calling this API.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | ota | OTA workflow. |
[in] | name | OTA package name. |
◆ taf_update_GetDownloadSession()
Gets download session.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | cfgFile | Configuration file for download session. |
[out] | sessionPtr | Download session reference. |
◆ taf_update_StartDownload()
Starts download.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Download session reference. |
◆ taf_update_PauseDownload()
Pauses download.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Download session reference. |
◆ taf_update_ResumeDownload()
Resumes download.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Download session reference. |
◆ taf_update_CancelDownload()
Cancels download.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Download session reference. |
◆ taf_update_GetInstallationSession()
Gets installation session.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | pkgType | Package type for installation. |
[in] | cfgFile | Configuration file for installation session. |
[out] | sessionPtr | Installation session reference. |
◆ taf_update_InstallPreCheck()
Checks prerequisites for installation.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Installation session reference. |
[in] | manifest | Manifest for pre-check. |
◆ taf_update_StartInstall()
Start installation.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Installation session reference. |
[in] | pkgPath | Package path. |
◆ taf_update_InstallPostCheck()
Verification post installation, check if flashing properly on inactive bank.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Installation session reference. |
◆ taf_update_GetActiveBank()
Gets the active bank.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Installation session reference. |
[out] | bankPtr | The active bank. |
◆ taf_update_VerifyActivation()
Activation verification, check if each component has the updated version.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Installation session reference. |
[in] | manifest | Manifest for activation verification. |
◆ taf_update_Rollback()
Rollback to previous configurations to keep pesistency.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Installation session reference. |
◆ taf_update_Sync()
Bank synchronization.
- Returns
- LE_FAULT – Failed.
- LE_OK – Succeeded.
- Parameters
-
[in] | session | Installation session reference. |