nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
bl_validation.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef BL_VALIDATION_H__
8#define BL_VALIDATION_H__
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include <stdbool.h>
15#include <fw_info.h>
16#include <zephyr/types.h>
17
34bool bl_validate_firmware(uint32_t fw_dst_address, uint32_t fw_src_address);
35
36/* Typedef for use in EXT_API declaration */
37typedef
38bool (*bl_validate_firmware_t)(uint32_t fw_dst_address, uint32_t fw_src_address);
39
50
57bool bl_validate_firmware_local(uint32_t fw_address,
58 const struct fw_info *fwinfo);
59
60
67
75int set_monotonic_version(uint16_t version, uint16_t slot);
76
84int get_monotonic_version(uint16_t *version_out);
85
93int get_monotonic_slot(uint16_t *slot_out);
94
97#ifdef __cplusplus
98}
99#endif
100
101#endif /* BL_VALIDATION_H__ */
bool bl_validate_firmware(uint32_t fw_dst_address, uint32_t fw_src_address)
int set_monotonic_version(uint16_t version, uint16_t slot)
int get_monotonic_version(uint16_t *version_out)
int get_monotonic_slot(uint16_t *slot_out)
bool(* bl_validate_firmware_t)(uint32_t fw_dst_address, uint32_t fw_src_address)
Definition bl_validation.h:38
bool bl_validate_firmware_local(uint32_t fw_address, const struct fw_info *fwinfo)
bool bl_validate_firmware_available(void)
bl_validate_firmware_t bl_validate_firmware
Definition bl_validation.h:65
Structure describing the BL_VALIDATE_FW EXT_API.
Definition bl_validation.h:64
Definition fw_info_bare.h:125