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 to be initialized before calling
8 * 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 inline void get_req_modules(struct module_flags *mf)
21{
23#if CONFIG_DESKTOP_HIDS_ENABLE
25#endif
26#if CONFIG_DESKTOP_BAS_ENABLE
28#endif
29#ifdef CONFIG_CAF_BLE_STATE
30 module_flags_set_bit(mf, MODULE_IDX(ble_state));
31#endif
32#if CONFIG_DESKTOP_MOTION_SENSOR_ENABLE
34#endif
35#if CONFIG_DESKTOP_BLE_SCAN_ENABLE
36 module_flags_set_bit(mf, MODULE_IDX(ble_scan));
37#endif
38#if CONFIG_DESKTOP_FAILSAFE_ENABLE
39 module_flags_set_bit(mf, MODULE_IDX(failsafe));
40#endif
41}
#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
const struct @5 settings_loader_def_include_once
static void get_req_modules(struct module_flags *mf)
Definition settings_loader_def.h:20
Structure that provides a flag for every module available in application.
Definition module_state_event.h:103