Application OTA DFU#
Component that provides over-the-air (OTA) device firmware update (DFU) functionality in user application during runtime. No need to enter a specialized OTA state to update, and no AppLoader utility required. No code is required from user to enable this component.
Modules#
sl_bt_app_ota_dfu_btl_storage_info_t
sl_bt_app_ota_dfu_download_package_t
Enumerations#
Typedefs#
Functions#
Macros#
Enumeration Documentation#
sl_bt_app_ota_dfu_status_t#
sl_bt_app_ota_dfu_status_t
Enumerator | |
---|---|
SL_BT_APP_OTA_DFU_UNINIT | |
SL_BT_APP_OTA_DFU_INIT | |
SL_BT_APP_OTA_DFU_READ_FLASH | |
SL_BT_APP_OTA_DFU_ERASE | |
SL_BT_APP_OTA_DFU_READY | |
SL_BT_APP_OTA_DFU_DISCONNECT | |
SL_BT_APP_OTA_DFU_DOWNLOAD_BEGIN | |
SL_BT_APP_OTA_DFU_DOWNLOAD_END | |
SL_BT_APP_OTA_DFU_VERIFY | |
SL_BT_APP_OTA_DFU_FINALIZE | |
SL_BT_APP_OTA_DFU_WAIT_FOR_REBOOT | |
SL_BT_APP_OTA_DFU_ERROR |
sl_bt_app_ota_dfu_error_t#
sl_bt_app_ota_dfu_error_t
Enumerator | |
---|---|
SL_BT_APP_OTA_DFU_NO_ERROR | |
SL_BT_APP_OTA_DFU_ERR_UNEXPECTED_TRANSFER | |
SL_BT_APP_OTA_DFU_ERR_UNEXPECTED_CLOSE | |
SL_BT_APP_OTA_DFU_ERR_BOOTLOADER_API | |
SL_BT_APP_OTA_DFU_ERR_STORAGE_FULL |
sl_bt_app_ota_dfu_event_id_t#
sl_bt_app_ota_dfu_event_id_t
Enumerator | |
---|---|
SL_BT_APP_OTA_DFU_EVT_BTL_STORAGE_INFO_ID | |
SL_BT_APP_OTA_DFU_EVT_STATE_CHANGE_ID | |
SL_BT_APP_OTA_DFU_EVT_DOWNLOAD_PACKET_ID | |
SL_BT_APP_OTA_DFU_EVT_VERIFY_IMAGE_ID |
Typedef Documentation#
sl_bt_app_ota_dfu_status_evt_t#
typedef struct sl_bt_app_ota_dfu_msg_t sl_bt_app_ota_dfu_status_evt_t
Function Documentation#
sl_bt_app_ota_dfu_init#
void sl_bt_app_ota_dfu_init (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Application OTA DFU initialization.
sl_bt_app_ota_dfu_is_ok_to_sleep#
bool sl_bt_app_ota_dfu_is_ok_to_sleep (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Function to check if it is okay if the device goes to sleep now.
sl_bt_app_ota_dfu_sleep_on_isr_exit#
sl_power_manager_on_isr_exit_t sl_bt_app_ota_dfu_sleep_on_isr_exit (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Routine to notify power manager handler.
sl_bt_app_ota_dfu_restart_progress#
void sl_bt_app_ota_dfu_restart_progress (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Function to restart application OTA DFU progress without rebooting in case of any error.
sl_bt_app_ota_dfu_reboot#
void sl_bt_app_ota_dfu_reboot (void )
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Function to reboot only when the application OTA DFU process is already in the SL_BT_APP_OTA_DFU_WAIT_FOR_REBOOT state.
sl_bt_app_ota_dfu_on_status_event#
void sl_bt_app_ota_dfu_on_status_event (sl_bt_app_ota_dfu_status_evt_t * evt)
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_bt_app_ota_dfu_status_evt_t * | [in] | evt | Actual app ota dfu event address. |
Function to indicate Application OTA DFU status and in case of error the error codes for assertion. Note
To be implemented in user code.