Zephyr API 3.6.99
Loading...
Searching...
No Matches
blinfo.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_RETENTION_BLINFO_
13#define ZEPHYR_INCLUDE_RETENTION_BLINFO_
14
15#include <stdint.h>
16#include <stddef.h>
17#include <zephyr/kernel.h>
18
19#if defined(CONFIG_RETENTION_BOOTLOADER_INFO_TYPE_MCUBOOT)
20#include <bootutil/boot_status.h>
21#endif
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
36#if defined(CONFIG_RETENTION_BOOTLOADER_INFO_OUTPUT_FUNCTION) || defined(__DOXYGEN__)
49int blinfo_lookup(uint16_t key, char *val, int val_len_max);
50#endif
51
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* ZEPHYR_INCLUDE_RETENTION_BLINFO_ */
int blinfo_lookup(uint16_t key, char *val, int val_len_max)
Returns bootinfo information.
Public kernel APIs.
__UINT16_TYPE__ uint16_t
Definition stdint.h:89