8d57ebf57d
Previously the BLE_MESH_MAX_STORED_NODES option is added for internal mesh test, which will be a little confusing for the users to understand. Here we remove this option, instead the BLE_MESH_MAX_PROV_NODES will be used for all the cases. For mesh internal test, when the test function is called to add some nodes info, the info will be stored in the array of provisioned nodes directly.
61 lines
2 KiB
C
61 lines
2 KiB
C
/*
|
|
* Copyright (c) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _SETTINGS_H_
|
|
#define _SETTINGS_H_
|
|
|
|
#include "net.h"
|
|
#include "provisioner_main.h"
|
|
|
|
int settings_core_init(void);
|
|
int settings_core_load(void);
|
|
int settings_core_commit(void);
|
|
int settings_core_deinit(void);
|
|
|
|
void bt_mesh_store_role(void);
|
|
void bt_mesh_store_net(void);
|
|
void bt_mesh_store_iv(bool only_duration);
|
|
void bt_mesh_clear_iv(void);
|
|
void bt_mesh_store_seq(void);
|
|
void bt_mesh_clear_seq(void);
|
|
void bt_mesh_store_rpl(struct bt_mesh_rpl *rpl);
|
|
void bt_mesh_store_subnet(struct bt_mesh_subnet *sub);
|
|
void bt_mesh_store_app_key(struct bt_mesh_app_key *key);
|
|
void bt_mesh_store_hb_pub(void);
|
|
void bt_mesh_store_cfg(void);
|
|
void bt_mesh_store_mod_bind(struct bt_mesh_model *mod);
|
|
void bt_mesh_store_mod_sub(struct bt_mesh_model *mod);
|
|
void bt_mesh_store_mod_pub(struct bt_mesh_model *mod);
|
|
void bt_mesh_store_label(void);
|
|
|
|
void bt_mesh_clear_role(void);
|
|
void bt_mesh_clear_net(void);
|
|
void bt_mesh_clear_subnet(struct bt_mesh_subnet *sub);
|
|
void bt_mesh_clear_app_key(struct bt_mesh_app_key *key);
|
|
void bt_mesh_clear_rpl(void);
|
|
|
|
#if CONFIG_BLE_MESH_PROVISIONER
|
|
void bt_mesh_store_prov_info(u16_t primary_addr, u16_t alloc_addr);
|
|
void bt_mesh_clear_prov_info(void);
|
|
void bt_mesh_store_p_net_idx(void);
|
|
void bt_mesh_clear_p_net_idx(void);
|
|
void bt_mesh_store_p_app_idx(void);
|
|
void bt_mesh_clear_p_app_idx(void);
|
|
void bt_mesh_store_p_subnet(struct bt_mesh_subnet *sub);
|
|
void bt_mesh_store_p_app_key(struct bt_mesh_app_key *key);
|
|
void bt_mesh_clear_p_subnet(struct bt_mesh_subnet *sub);
|
|
void bt_mesh_clear_p_app_key(struct bt_mesh_app_key *key);
|
|
void bt_mesh_clear_rpl_single(u16_t src);
|
|
void bt_mesh_store_node_info(struct bt_mesh_node *node);
|
|
void bt_mesh_clear_node_info(u16_t unicast_addr);
|
|
void bt_mesh_store_node_name(struct bt_mesh_node *node);
|
|
void bt_mesh_store_node_comp_data(struct bt_mesh_node *node);
|
|
#endif
|
|
|
|
int bt_mesh_settings_init(void);
|
|
int bt_mesh_settings_deinit(void);
|
|
|
|
#endif /* _SETTINGS_H_ */
|