/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\ File: OCTVC1_MSG.h Copyright (c) 2016 Octasic Inc. All rights reserved. Description: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 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 General Public License along with this program;if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Release: OCTSDR Software Development Kit OCTSDR_GSM-02.05.00-B780 (2016/01/14) $Revision: $ \*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ #ifndef __OCTVC1_MSG_H__ #define __OCTVC1_MSG_H__ /***************************** INCLUDE FILES *******************************/ #include "../octdev_types.h" #include "octvocnet_pkt.h" /************************ COMMON DEFINITIONS *******************************/ /*------------------------------------------------------------------------------------- Message Types -------------------------------------------------------------------------------------*/ #define cOCTVC1_MSG_TYPE_COMMAND 0 #define cOCTVC1_MSG_TYPE_RESPONSE 1 #define cOCTVC1_MSG_TYPE_NOTIFICATION 2 #define cOCTVC1_MSG_TYPE_SUPERVISORY 7 #define cOCTVC1_MSG_TYPE_BIT_OFFSET 29 #define cOCTVC1_MSG_TYPE_BIT_MASK 0x7 /*------------------------------------------------------------------------------------- Message Resynch -------------------------------------------------------------------------------------*/ #define cOCTVC1_MSG_RESYNCH_BIT_OFFSET 28 #define cOCTVC1_MSG_RESYNCH_BIT_MASK 0x1 /*------------------------------------------------------------------------------------- Message identifier -------------------------------------------------------------------------------------*/ #define cOCTVC1_MSG_ID_BIT_OFFSET 0 #define cOCTVC1_MSG_ID_BIT_MASK 0x0FFFFFFF /*------------------------------------------------------------------------------------- Message identifier - Method ID -------------------------------------------------------------------------------------*/ #define cOCTVC1_MSG_METHOD_ID_BIT_OFFSET 0 #define cOCTVC1_MSG_METHOD_BIT_MASK 0x00000FFF /*------------------------------------------------------------------------------------- Message identifier - Module ID -------------------------------------------------------------------------------------*/ #define cOCTVC1_MSG_MODULE_ID_BIT_OFFSET 16 #define cOCTVC1_MSG_MODULE_BIT_MASK 0x000000FF /*------------------------------------------------------------------------------------- Message identifier - Module and MethodID -------------------------------------------------------------------------------------*/ #define cOCTVC1_MSG_MODULE_AND_METHOD_BIT_MASK ((cOCTVC1_MSG_MODULE_BIT_MASK<