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.99 //--------------------------------------------------------------------------------------------------103 //--------------------------------------------------------------------------------------------------106 //--------------------------------------------------------------------------------------------------109 * Connect the current client thread to the service providing this API. Block until the service is112 * For each thread that wants to use this API, either ConnectService or TryConnectService must be113 * called before any other functions in this API. Normally, ConnectService is automatically called118 //--------------------------------------------------------------------------------------------------124 //--------------------------------------------------------------------------------------------------127 * Try to connect the current client thread to the service providing this API. Return with an error130 * For each thread that wants to use this API, either ConnectService or TryConnectService must be131 * called before any other functions in this API. Normally, ConnectService is automatically called140 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).143 //--------------------------------------------------------------------------------------------------149 //--------------------------------------------------------------------------------------------------153 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants156 //--------------------------------------------------------------------------------------------------163 //--------------------------------------------------------------------------------------------------169 * longer a connection to the service, and the functions in this API can't be used. For details, see174 //--------------------------------------------------------------------------------------------------181 //--------------------------------------------------------------------------------------------------186 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------236 //--------------------------------------------------------------------------------------------------242 //--------------------------------------------------------------------------------------------------251 //--------------------------------------------------------------------------------------------------258 //--------------------------------------------------------------------------------------------------267 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------300 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------322 //--------------------------------------------------------------------------------------------------334 * @note If the caller passes in a bad pointer, it is a fatal error and the function won't return.336 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------356 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------379 //--------------------------------------------------------------------------------------------------385 //--------------------------------------------------------------------------------------------------389 * Dual System: Requests a system Sync. The UPDATE system will be synchronised with the ACTIVE one.404 //--------------------------------------------------------------------------------------------------410 //--------------------------------------------------------------------------------------------------412 * Request to install the package and marks the system as good. Calling this API will result in a415 * Dual System: Request a full system reset with a systems SWAP and systems SYNC. After the reset,426 //--------------------------------------------------------------------------------------------------le_result_t le_fwupdate_GetBootloaderVersion(char *version, size_t versionSize)le_result_t le_fwupdate_GetResumePosition(size_t *positionPtr)void le_fwupdate_ConnectService(void)LE_FULL_API void le_fwupdate_SetServerDisconnectHandler(le_fwupdate_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_fwupdate_Download(int fd)le_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:104le_result_t le_fwupdate_GetAppBootloaderVersion(char *version, size_t versionSize)void le_fwupdate_DisconnectService(void)le_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)