nrfxlib API 3.4.99
Loading...
Searching...
No Matches

◆ nrf_modem_bootloader_digest()

int nrf_modem_bootloader_digest ( struct nrf_modem_bootloader_fw_segment * segments,
size_t num_segments,
struct nrf_modem_bootloader_digest * digest_buffer )

#include <nrf_modem_bootloader.h>

Read a digest hash data from the modem.

Note
On nRF92 Series devices, only one segment can be digested per call.
Parameters
[in]segmentsFirmware segments.
[in]num_segmentsNumber of firmware segments.
[out]digest_bufferPointer to the buffer to store digest hash data.
Return values
0on success.
-NRF_EINVALWhen digest_buffer or segments pointer is NULL, or num_segments is zero.
-NRF_EOPNOTSUPPIf bootloader is not programmed, or more than one segment is requested on nRF92 Series devices.
-NRF_EPERMWhen modem did not accept RPC command.
-NRF_ENOEXECWhen RPC command failed.
-NRF_ETIMEDOUTWhen modem did not respond.
-NRF_EIOWhen incorrect response received from modem.