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

appli_config_client.h « app « STM32_WPAN « BLE_MeshLightingPRFNode « BLE « Applications « P-NUCLEO-WB55.USBDongle « Projects - github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 34169448c1f3dd2956cbac96eaffa2ef43c5ae4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
******************************************************************************
* @file    appli_config_client.h
* @author  BLE Mesh Team
* @brief   Application interface for Generic Mesh Models  
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Liberty license
* SLA0044, the "License"; You may not use this file except in compliance with
* the License. You may obtain a copy of the License at:
*                             www.st.com/SLA0044
*
******************************************************************************
*/

/* 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"


/* Exported macro ------------------------------------------------------------*/
#define MAX_CONFIG_PARAM_SIZE 22
#define CONFIGURE_AS_PER_COMPOSITION_DATA

/* Exported variables  ------------------------------------------------------- */
/* Application Variable-------------------------------------------------------*/
/* Exported Functions Prototypes ---------------------------------------------*/
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 /* __APPLI_CONFIG_CLIENT_H */

/******************* (C) COPYRIGHT 2017 STMicroelectronics *****END OF FILE****/