nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
slm_at_fota.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef SLM_AT_FOTA_
8#define SLM_AT_FOTA_
9
16#include <stdbool.h>
17#include <stdint.h>
18
26};
27
32};
33
34/* Whether a modem full firmware update is to be activated. */
35extern bool slm_modem_full_fota;
36
37extern uint8_t slm_fota_type; /* FOTA image type. */
38extern enum fota_stage slm_fota_stage; /* Current stage of FOTA process. */
39extern enum fota_status slm_fota_status; /* FOTA process status. */
40extern int32_t slm_fota_info; /* FOTA download percentage or failure cause in case of error. */
41
49
57
60
65
72#if defined(CONFIG_SLM_FULL_FOTA)
73void slm_finish_modem_full_fota(void);
74#endif
75
77#endif /* SLM_AT_FOTA_ */
fota_stage
Definition: slm_at_fota.h:19
@ FOTA_STAGE_DOWNLOAD
Definition: slm_at_fota.h:21
@ FOTA_STAGE_INIT
Definition: slm_at_fota.h:20
@ FOTA_STAGE_ACTIVATE
Definition: slm_at_fota.h:24
@ FOTA_STAGE_DOWNLOAD_ERASE_PENDING
Definition: slm_at_fota.h:22
@ FOTA_STAGE_COMPLETE
Definition: slm_at_fota.h:25
@ FOTA_STAGE_DOWNLOAD_ERASED
Definition: slm_at_fota.h:23
fota_status
Definition: slm_at_fota.h:28
@ FOTA_STATUS_CANCELLED
Definition: slm_at_fota.h:31
@ FOTA_STATUS_OK
Definition: slm_at_fota.h:29
@ FOTA_STATUS_ERROR
Definition: slm_at_fota.h:30
void slm_fota_init_state(void)
Sets the FOTA state variables to their default values.
enum fota_stage slm_fota_stage
bool slm_modem_full_fota
int slm_at_fota_init(void)
Initialize FOTA AT command parser.
int slm_at_fota_uninit(void)
Uninitialize FOTA AT command parser.
int32_t slm_fota_info
enum fota_status slm_fota_status
uint8_t slm_fota_type
void slm_fota_post_process(void)
FOTA post-process after reboot.