pub unsafe extern "C" fn nrf_modem_bootloader_digest(
    addr: u32,
    size: u32,
    digest_buffer: *mut nrf_modem_bootloader_digest
) -> c_int
Expand description

Read a digest hash data from the modem.

  • addr - Start address.
  • size - Size of hash data.
  • digest_buffer - Pointer to the buffer to store digest hash data.

Returns 0 on success. Returns -NRF_EINVAL When digest_buffer pointer is NULL. Returns -NRF_EOPNOTSUPP If bootloader is not programmed. Returns -NRF_EPERM When modem did not accept RPC command. Returns -NRF_ENOEXEC When RPC command failed. Returns -NRF_ETIMEDOUT When modem did not respond. Returns -NRF_EIO When incorrect response received from modem.