Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
34#if IS_ENABLED(CONFIG_RETENTION_BOOTLOADER_INFO_OUTPUT_FUNCTION) || defined(__DOXYGEN__)
47int blinfo_lookup(uint16_t key, char *val, int val_len_max);
48#endif
49
54#ifdef __cplusplus
55}
56#endif
57
58#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