nrfxlib API 3.4.99
Loading...
Searching...
No Matches
nrf_modem_bootloader.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
14#ifndef NRF_BOOTLOADER_H__
15#define NRF_BOOTLOADER_H__
16
17#include <stddef.h>
18#include <stdint.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
29#if defined(CONFIG_SOC_SERIES_NRF91)
30#define NRF_MODEM_BOOTLOADER_DIGEST_LEN 8
31#elif defined(CONFIG_SOC_SERIES_NRF92)
32#define NRF_MODEM_BOOTLOADER_DIGEST_LEN 12
33#endif
35#define NRF_MODEM_BOOTLOADER_UUID_LEN 36
36
39 uint32_t data[NRF_MODEM_BOOTLOADER_DIGEST_LEN];
40};
41
46
52
70int nrf_modem_bootloader_bl_write(void *src, uint32_t len);
71
93int nrf_modem_bootloader_fw_write(uint32_t addr, void *src, uint32_t len);
94
110
130 size_t num_segments,
131 struct nrf_modem_bootloader_digest *digest_buffer);
132
147
162int nrf_modem_bootloader_verify(const void *data, uint32_t len);
163
164#ifdef __cplusplus
165}
166#endif
167
168#endif /* NRF_BOOTLOADER_H__ */
int nrf_modem_bootloader_fw_write(uint32_t addr, void *src, uint32_t len)
Write a segment of the firmware to the modem.
#define NRF_MODEM_BOOTLOADER_UUID_LEN
Digest buffer length, in words.
Definition nrf_modem_bootloader.h:35
int nrf_modem_bootloader_digest(struct nrf_modem_bootloader_fw_segment *segments, size_t num_segments, struct nrf_modem_bootloader_digest *digest_buffer)
Read a digest hash data from the modem.
int nrf_modem_bootloader_update(void)
Complete bootloader or firmware update.
int nrf_modem_bootloader_uuid(struct nrf_modem_bootloader_uuid *modem_uuid)
Read modem UUID data.
int nrf_modem_bootloader_bl_write(void *src, uint32_t len)
Write a segment of the bootloader to the modem.
int nrf_modem_bootloader_verify(const void *data, uint32_t len)
Verify the modem' firmware signature.
uint32_t data[NRF_MODEM_BOOTLOADER_DIGEST_LEN]
Definition nrf_modem_bootloader.h:39
Storage for digest/hash replies.
Definition nrf_modem_bootloader.h:38
uint32_t end_addr
Definition nrf_modem_bootloader.h:50
uint32_t start_addr
Definition nrf_modem_bootloader.h:49
Bootloader segment.
Definition nrf_modem_bootloader.h:48
uint8_t data[36]
Definition nrf_modem_bootloader.h:44
Modem UUID response.
Definition nrf_modem_bootloader.h:43