le_fwupdate_interface.h
Go to the documentation of this file.
19 * Firmware update allows the various firmware images to be updated from the application processor.55 * On platform which supports dual system, if the image is successfully downloaded, the user needs56 * to swap the systems in order to use the updated system. This will reset all processors. After the62 * During the download, the flash programming position is saved. Thanks to this position, fwupdate63 * service is able to resume the download without downloading the update package at the beginning.98 //--------------------------------------------------------------------------------------------------102 //--------------------------------------------------------------------------------------------------105 //--------------------------------------------------------------------------------------------------108 * Connect the current client thread to the service providing this API. Block until the service is111 * For each thread that wants to use this API, either ConnectService or TryConnectService must be112 * called before any other functions in this API. Normally, ConnectService is automatically called117 //--------------------------------------------------------------------------------------------------123 //--------------------------------------------------------------------------------------------------126 * Try to connect the current client thread to the service providing this API. Return with an error129 * For each thread that wants to use this API, either ConnectService or TryConnectService must be130 * called before any other functions in this API. Normally, ConnectService is automatically called139 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).142 //--------------------------------------------------------------------------------------------------148 //--------------------------------------------------------------------------------------------------152 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants155 //--------------------------------------------------------------------------------------------------162 //--------------------------------------------------------------------------------------------------168 * longer a connection to the service, and the functions in this API can't be used. For details, see173 //--------------------------------------------------------------------------------------------------180 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------191 //--------------------------------------------------------------------------------------------------194 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------218 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------242 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------340 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------361 * @note If the caller passes in a bad pointer, it is a fatal error and the function won't return.363 //--------------------------------------------------------------------------------------------------372 //--------------------------------------------------------------------------------------------------383 //--------------------------------------------------------------------------------------------------390 //--------------------------------------------------------------------------------------------------406 //--------------------------------------------------------------------------------------------------412 //--------------------------------------------------------------------------------------------------416 * Dual System: Requests a system Sync. The UPDATE system will be synchronised with the ACTIVE one.431 //--------------------------------------------------------------------------------------------------437 //--------------------------------------------------------------------------------------------------439 * Request to install the package and marks the system as good. Calling this API will result in a442 * Dual System: Request a full system reset with a systems SWAP and systems SYNC. After the reset,453 //--------------------------------------------------------------------------------------------------At least, a partition is corrupted.Definition: le_fwupdate_interface.h:204le_result_t le_fwupdate_GetBootloaderVersion(char *version, size_t versionSize)le_result_t le_fwupdate_GetResumePosition(size_t *positionPtr)void le_fwupdate_ConnectService(void)void le_fwupdate_SetServerDisconnectHandler(le_fwupdate_DisconnectHandler_t disconnectHandler, void *contextPtr)Last downloading failed.Definition: le_fwupdate_interface.h:208Last downloading ended with timeout.Definition: le_fwupdate_interface.h:210le_result_t le_fwupdate_Download(int fd)Unknown status. It has to be the last one.Definition: le_fwupdate_interface.h:212le_result_t le_fwupdate_TryConnectService(void)le_result_t le_fwupdate_MarkGood(void)le_result_t le_fwupdate_IsSystemMarkedGood(bool *isSystemGoodPtr)le_result_t le_fwupdate_InitDownload(void)le_result_t le_fwupdate_GetFirmwareVersion(char *version, size_t versionSize)void(* le_fwupdate_DisconnectHandler_t)(void *)Definition: le_fwupdate_interface.h:103le_result_t le_fwupdate_GetAppBootloaderVersion(char *version, size_t versionSize)void le_fwupdate_DisconnectService(void)Downloading in progress.Definition: le_fwupdate_interface.h:206le_result_t le_fwupdate_Install(void)le_result_t le_fwupdate_InstallAndMarkGood(void)le_result_t le_fwupdate_GetUpdateStatus(le_fwupdate_UpdateStatus_t *statusPtr, char *statusLabel, size_t statusLabelSize)