RDK Documentation (Open Sourced RDK Components)
btrMgr_SysDiag.h
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 /**
20  * @file btrMgr_SysDiag.h
21  *
22  * @defgroup Sys_DiagInfo SysDiagInfoInterface
23  * This file defines
24  * @ingroup BTR_MGR
25  *
26  */
27 
28 #ifndef __BTR_MGR_SYSDIAG_H__
29 #define __BTR_MGR_SYSDIAG_H__
30 
31 #define BTRMGR_STR_LEN_MAX 256
32 
33 
34 #define BTRMGR_SYS_DIAG_PWRST_OFF "off"
35 #define BTRMGR_SYS_DIAG_PWRST_STANDBY "standby"
36 #define BTRMGR_SYS_DIAG_PWRST_ON "on"
37 #define BTRMGR_SYS_DIAG_PWRST_STDBY_LIGHT_SLEEP "stby_light_sleep"
38 #define BTRMGR_SYS_DIAG_PWRST_STDBY_DEEP_SLEEP "stby_deep_sleep"
39 #define BTRMGR_SYS_DIAG_PWRST_UNKNOWN "unknown"
40 
41 typedef void* tBTRMgrSDHdl;
42 
43 typedef enum _BTRMGR_SysDiagChar_t {
44  BTRMGR_SYS_DIAG_BEGIN = 100,
45  BTRMGR_SYS_DIAG_DEVICEMAC,
46  BTRMGR_SYS_DIAG_BTRADDRESS,
47  BTRMGR_SYS_DIAG_SYSTEMID,
48  BTRMGR_SYS_DIAG_MODELNUMBER,
49  BTRMGR_SYS_DIAG_SERIALNUMBER,
50  BTRMGR_SYS_DIAG_FWREVISION,
51  BTRMGR_SYS_DIAG_HWREVISION,
52  BTRMGR_SYS_DIAG_SWREVISION,
53  BTRMGR_SYS_DIAG_MFGRNAME,
54  BTRMGR_SYS_DIAG_DEVICESTATUS,
55  BTRMGR_SYS_DIAG_FWDOWNLOADSTATUS,
56  BTRMGR_SYS_DIAG_WEBPASTATUS,
57  BTRMGR_SYS_DIAG_WIFIRADIO1STATUS,
58  BTRMGR_SYS_DIAG_WIFIRADIO2STATUS,
59  BTRMGR_SYS_DIAG_RFSTATUS,
60  BTRMGR_SYS_DIAG_POWERSTATE,
61  BTRMGR_SYS_DIAG_WIFI_CONNECT,
62  BTRMGR_SYS_DIAG_UNKNOWN,
63  BTRMGR_SYS_DIAG_END
64 } BTRMGR_SysDiagChar_t;
65 
66 typedef struct _stBTRMgrSysDiagStatus {
67  BTRMGR_SysDiagChar_t enSysDiagChar;
68  char pcSysDiagRes[BTRMGR_STR_LEN_MAX];
70 
71 
72 /* Fptr Callbacks types */
73 typedef eBTRMgrRet (*fPtr_BTRMgr_SD_StatusCb) (stBTRMgrSysDiagStatus* apstBtrMgrSdStatus, void *apvUserData);
74 
75 
76 /* Interfaces */
77 /**
78  * @addtogroup LE_DiagInfo
79  * @{
80  *
81  */
82 eBTRMgrRet BTRMgr_SD_Init(tBTRMgrSDHdl* hBTRMgrSdHdl, fPtr_BTRMgr_SD_StatusCb afpcBSdStatus, void* apvUserData);
83 
84 eBTRMgrRet BTRMgr_SD_DeInit(tBTRMgrSDHdl hBTRMgrSdHdl);
85 
86 eBTRMgrRet BTRMGR_SysDiag_GetData(tBTRMgrSDHdl hBTRMgrSdHdl, BTRMGR_SysDiagChar_t aenSysDiagChar, char* aData);
87 
88 eBTRMgrRet BTRMGR_SysDiag_ConnectToWifi(tBTRMgrSDHdl hBTRMgrSdHdl, char* aSSID, char* aPassword, int aSecurityMode);
89 
90 /** @} */
91 
92 #endif /* __BTR_MGR_SYSDIAG_H__ */
93 
_stBTRMgrSysDiagStatus
Definition: btrMgr_SysDiag.h:66
eBTRMgrRet
enum _eBTRMgrRet eBTRMgrRet
Represents the bluetooth manager return values.