114 lines
3.7 KiB
C
114 lines
3.7 KiB
C
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
|
|
|
|
File: OCTVC1_MAIN_EVT.h
|
|
Copyright (c) 2015 Octasic Inc. All rights reserved.
|
|
|
|
Description: Contains the event definition of the MAIN API.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
Release: OCTSDR Software Development Kit OCTSDR_GSM-02.03.00-B560 (2015/08/07)
|
|
|
|
$Octasic_Revision: $
|
|
|
|
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
|
|
|
|
#ifndef __OCTVC1_MAIN_EVT_H__
|
|
#define __OCTVC1_MAIN_EVT_H__
|
|
|
|
|
|
/***************************** INCLUDE FILES *******************************/
|
|
|
|
#include "octvc1_main_api.h"
|
|
|
|
/************************ COMMON DEFINITIONS *******************************/
|
|
|
|
/*-------------------------------------------------------------------------------------
|
|
tOCTVC1_MAIN_EVT_PHY_MASK : Phy Events.
|
|
-------------------------------------------------------------------------------------*/
|
|
#define tOCTVC1_MAIN_EVT_PHY_MASK tOCT_UINT32
|
|
|
|
#define cOCTVC1_MAIN_EVT_PHY_MASK_UP ((tOCT_UINT32)(1<<0) )
|
|
#define cOCTVC1_MAIN_EVT_PHY_MASK_DOWN ((tOCT_UINT32)(1<<1) )
|
|
|
|
/***************************** NOTIFICATIONS **********************************/
|
|
/*-------------------------------------------------------------------------------------
|
|
tOCTVC1_MAIN_MSG_PROCESS_CPU_USAGE_REPORT_EVT
|
|
|
|
Members:
|
|
Header
|
|
hProcess
|
|
ulProcessImageType
|
|
Process Type identifier. Value INVALID means no process running on this core.
|
|
ulProcessCpuUsagePercent
|
|
-------------------------------------------------------------------------------------*/
|
|
typedef struct
|
|
{
|
|
tOCTVC1_EVENT_HEADER Header;
|
|
tOCT_UINT32 hProcess;
|
|
tOCTVC1_PROCESS_TYPE_ENUM ulProcessImageType;
|
|
tOCT_UINT32 ulProcessCpuUsagePercent;
|
|
|
|
} tOCTVC1_MAIN_MSG_PROCESS_CPU_USAGE_REPORT_EVT;
|
|
|
|
/*-------------------------------------------------------------------------------------
|
|
tOCTVC1_MAIN_MSG_PROCESS_DUMP_EVT
|
|
|
|
Members:
|
|
Header
|
|
hProcess
|
|
-------------------------------------------------------------------------------------*/
|
|
typedef struct
|
|
{
|
|
tOCTVC1_EVENT_HEADER Header;
|
|
tOCT_UINT32 hProcess;
|
|
|
|
} tOCTVC1_MAIN_MSG_PROCESS_DUMP_EVT;
|
|
|
|
/*-------------------------------------------------------------------------------------
|
|
tOCTVC1_MAIN_MSG_API_SYSTEM_SESSION_HEARTBEAT_EVT
|
|
|
|
Members:
|
|
Header
|
|
ulSessionIndex
|
|
Session index
|
|
-------------------------------------------------------------------------------------*/
|
|
typedef struct
|
|
{
|
|
tOCTVC1_EVENT_HEADER Header;
|
|
tOCTVC1_INDEX ulSessionIndex;
|
|
|
|
} tOCTVC1_MAIN_MSG_API_SYSTEM_SESSION_HEARTBEAT_EVT;
|
|
|
|
/*-------------------------------------------------------------------------------------
|
|
tOCTVC1_MAIN_MSG_APPLICATION_STATE_CHANGE_EVT
|
|
|
|
Members:
|
|
Header
|
|
ulState
|
|
Application state
|
|
szAppName
|
|
Application name
|
|
-------------------------------------------------------------------------------------*/
|
|
typedef struct
|
|
{
|
|
tOCTVC1_EVENT_HEADER Header;
|
|
tOCTVC1_MAIN_APPLICATION_STATE_ENUM ulState;
|
|
tOCT_UINT8 szAppName[(cOCTVC1_MAIN_APPLICATION_MAX_NAME_LENGTH+1)];
|
|
|
|
} tOCTVC1_MAIN_MSG_APPLICATION_STATE_CHANGE_EVT;
|
|
|
|
|
|
#endif /* __OCTVC1_MAIN_EVT_H__ */
|
|
|