RDK Documentation (Open Sourced RDK Components)
maintenanceMGR.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 2021 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 
21 #ifndef _IARM_BUS_MAINTENANCEMGR_H
22 #define _IARM_BUS_MAINTENANCEMGR_H
23 
24 #define IARM_BUS_MAINTENANCE_MGR_NAME "MaintenanceMGR"
25 
26 typedef enum {
27  IARM_BUS_MAINTENANCEMGR_EVENT_UPDATE=0, /* Event status as data */
28  IARM_BUS_DCM_NEW_START_TIME_EVENT, /* Payload as Time */
29 }IARM_Bus_MaintMGR_EventId_t;
30 
31 /* Notification to rdkservice over IARM */
32 typedef enum {
33  MAINT_DCM_COMPLETE=0,
34  MAINT_DCM_ERROR, // 1
35  MAINT_RFC_COMPLETE, // 2
36  MAINT_RFC_ERROR, // 3
37  MAINT_LOGUPLOAD_COMPLETE, // 4
38  MAINT_LOGUPLOAD_ERROR, // 5
39  MAINT_PINGTELEMETRY_COMPLETE, // 6
40  MAINT_PINGTELEMETRY_ERROR, // 7
41  MAINT_FWDOWNLOAD_COMPLETE, //8
42  MAINT_FWDOWNLOAD_ERROR, //9
43  MAINT_FWDOWNLOAD_ABORTED, //10
44  MAINT_CRITICAL_UPDATE, // 11
45  MAINT_REBOOT_REQUIRED, //12
46  MAINT_DCM_INPROGRESS, //13
47  MAINT_RFC_INPROGRESS, //14
48  MAINT_FWDOWNLOAD_INPROGRESS, //15
49  MAINT_LOGUPLOAD_INPROGRESS, //16
50  MAINT_STATUS_EMPTY //17
51 } IARM_Maint_module_status_t;
52 
53 #define MAX_TIME_LEN 32
54 
55 /* Event Data for holding the start time and module status */
56 typedef struct {
57  union{
58  struct _DCM_DATA{
59  char start_time[MAX_TIME_LEN];
60  }startTimeUpdate;
61  struct _MAINT_STATUS_UPDATE{
62  IARM_Maint_module_status_t status;
63  }maintenance_module_status;
64  } data;
66 
67 
68 #endif
IARM_Bus_MaintMGR_EventData_t
Definition: maintenanceMGR.h:56