RDK Documentation (Open Sourced RDK Components)
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mocaSrvMgr.h
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 #include "libIARM.h"
21 #include "libIBus.h"
22 #include "libIARMCore.h"
23 #include "rdk_moca_hal.h"
25 {
26 public:
27  static MocaNetworkMgr* getInstance();
28  int Start();
29  static void printMocaTelemetry();
30  static IARM_Result_t mocaTelemetryLogEnable(void *arg);
31  static IARM_Result_t mocaTelemetryLogDuration(void *arg);
32 private:
34  virtual ~MocaNetworkMgr();
35  static bool instanceIsReady;
36  static MocaNetworkMgr* instance;
37 };
38 
39 /**
40  * @addtogroup NETSRVMGR_APIS
41  * @{
42  */
43 
44 /**
45  * @brief Initializes a thread to retrieve and send MoCA related telemetry data.
46  */
47 void startMocaTelemetry();
48 
49 /**
50  * @brief This Thread function prints the statistics information on MOCA interface if the MOCA link is up.
51  */
52 void *mocaTelemetryThread(void* arg);
53 static void _mocaEventHandler(const char *owner, IARM_EventId_t eventId, void *data, size_t len);
54 static void eventCallback(const enum RMH_Event event, const struct RMH_EventData *eventData, void* userContext);
55 
56 /** @} */ //END OF GROUP NETSRVMGR_APIS
startMocaTelemetry
void startMocaTelemetry()
Initializes a thread to retrieve and send MoCA related telemetry data.
Definition: mocaSrvMgr.cpp:91
mocaTelemetryThread
void * mocaTelemetryThread(void *arg)
This Thread function prints the statistics information on MOCA interface if the MOCA link is up.
RMH_EventData
Definition: rmh_type.h:157
libIBus.h
RDK IARM-Bus API Declarations.
MocaNetworkMgr
Definition: mocaSrvMgr.h:24