Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/appli_config_client.h')
-rw-r--r--Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/appli_config_client.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/appli_config_client.h b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/appli_config_client.h
new file mode 100644
index 000000000..52462b86f
--- /dev/null
+++ b/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/appli_config_client.h
@@ -0,0 +1,91 @@
+/**
+ ******************************************************************************
+* @file appli_config_client.h
+* @author BLE Mesh Team
+* @brief Application interface for Generic Mesh Models
+ ******************************************************************************
+ * @attention
+ *
+ * Copyright (c) 2020-2021 STMicroelectronics.
+ * All rights reserved.
+ *
+ * This software is licensed under terms that can be found in the LICENSE file
+ * in the root directory of this software component.
+ * If no LICENSE file comes with this software, it is provided AS-IS.
+ *
+ ******************************************************************************
+ */
+
+/* Define to prevent recursive inclusion -------------------------------------*/
+#ifndef __APPLI_CONFIG_CLIENT_H
+#define __APPLI_CONFIG_CLIENT_H
+
+/* Includes ------------------------------------------------------------------*/
+#include "types.h"
+#include "generic.h"
+#include "mesh_cfg.h"
+#include "config_client.h"
+#include "mesh_cfg_usr.h"
+
+/* Exported macro ------------------------------------------------------------*/
+#define MAX_CONFIG_PARAM_SIZE 22
+#define CONFIGURE_AS_PER_COMPOSITION_DATA
+
+/* Exported variables ------------------------------------------------------- */
+/* Application Variable-------------------------------------------------------*/
+/* Exported Functions Prototypes ---------------------------------------------*/
+
+#if defined (ENABLE_PROVISIONER_FEATURE) || defined(DYNAMIC_PROVISIONER)
+
+MOBLE_RESULT Appli_ConfigClient_Init(void);
+MOBLE_RESULT Appli_ConfigClient_Process(void);
+MOBLE_RESULT Appli_ConfigClient_ConfigureNode(void);
+void Appli_CompositionDataStatusCb(MOBLE_RESULT);
+void Appli_AppKeyStatusCb(MOBLEUINT8 status);
+void Appli_AppBindModelStatusCb(MOBLEUINT8 status);
+void Appli_PublicationStatusCb(MOBLEUINT8 status);
+void Appli_SubscriptionAddStatusCb(MOBLEUINT8 status);
+void Appli_NodeResetStatusCb(void);
+
+void Appli_ConfigClientStartNodeConfiguration(MOBLEUINT8 prvState);
+MOBLE_RESULT Appli_ConfigClient_GetCompositionData (void);
+MOBLE_RESULT Appli_ConfigClient_DefaultAppKeyAdd (void);
+MOBLE_RESULT Appli_ConfigClient_DefaultAppKeyBind (void);
+MOBLE_RESULT AppliConfigClient_SubscriptionAddDefault (void);
+MOBLE_RESULT AppliConfigClient_PublicationSetDefault (void);
+MOBLE_RESULT AppliConfigClient_SelfPublicationSetDefault (void);
+MOBLE_RESULT AppliConfigClient_SelfSubscriptionSetDefault (void);
+MOBLE_RESULT Appli_ConfigClient_SelfDefaultAppKeyBind (void);
+Composition_Data_Page0_t* Appli_GetNodeCompositionBuff (void);
+
+MOBLEUINT16 GetSIGModelToBindApp(MOBLEUINT8 elementIndex,
+ MOBLEUINT8 *pModelIndex,
+ MOBLEUINT8 numberOfModels);
+
+MOBLEUINT32 GetVendorModelToBindApp(MOBLEUINT8 elementIdx, MOBLEUINT8 idxSIG);
+MOBLEUINT8 GetCountSIGModelToBindApp(MOBLEUINT8 elementIdx);
+MOBLEUINT8 GetCountVendorModelToBindApp(MOBLEUINT8 elementIdx);
+
+MOBLEUINT16 GetSIGModelToSubscribe(MOBLEUINT8 elementIndex,
+ MOBLEUINT8 *pModelIndex,
+ MOBLEUINT8 numberOfModels);
+
+
+MOBLEUINT32 GetVendorModelToSubscribe(MOBLEUINT8 elementIdx, MOBLEUINT8 idxSIG);
+MOBLEUINT8 GetCountSIGModelToSubscribe(MOBLEUINT8);
+MOBLEUINT8 GetCountVendorModelToSubscribe(MOBLEUINT8);
+
+MOBLEUINT16 GetSIGModelToPublish(MOBLEUINT8 elementIndex,
+ MOBLEUINT8 *pModelIndex,
+ MOBLEUINT8 numberOfModels);
+
+MOBLEUINT32 GetVendorModelToPublish(MOBLEUINT8 elementIdx, MOBLEUINT8 idxSIG);
+MOBLEUINT8 GetCountSIGModelToPublish(MOBLEUINT8 elementIdx);
+
+MOBLEUINT8 GetCountVendorModelToPublish(MOBLEUINT8 elementIdx);
+
+#endif /*defined (ENABLE_PROVISIONER_FEATURE) || defined(DYNAMIC_PROVISIONER) */
+
+#endif /* __APPLI_CONFIG_CLIENT_H */
+
+