nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
settings_loader_def.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7/* This configuration file defines modules that need to be loaded before
8 * calling settings_load.
9 */
10
11/* This structure enforces the header file is included only once in the build.
12 * Violating this requirement triggers a multiple definition error at link time.
13 */
14
16
18
19
20static void get_req_modules(struct module_flags *mf)
21{
23#ifdef CONFIG_CAF_BLE_STATE
24 module_flags_set_bit(mf, MODULE_IDX(ble_state));
25#endif
26}
#define MODULE_IDX(mname)
Get index of module.
Definition module_state_event.h:95
static void module_flags_set_bit(struct module_flags *mf, size_t module_idx)
Set single module bit.
Definition module_state_event.h:171
static void get_req_modules(struct module_flags *mf)
Definition settings_loader_def.h:20
const struct @2 settings_loader_def_include_once
Structure that provides a flag for every module available in application.
Definition module_state_event.h:103