/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\ File: octvc1_id2string_priv.h Copyright (c) 2017 Octasic Inc. All rights reserved. Description: This file contains the id2string implementation for package OCTVC1 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 . Release: OCTSDR Software Development Kit OCTSDR_GSM-02.07.00-B1314 (2017/01/18) $Revision: $ \*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ #ifndef __OCTVC1_ID2STRING_PRIV__ #define __OCTVC1_ID2STRING_PRIV__ #include "../octdev_types.h" #include "octvc1_id2string.h" /* ------------------------------------------------------------------------------------- OCTVC1_ID2STRING_PRIV -------------------------------------------------------------------------------------*/ #define mOCTVC1_ID2STRING_PRIV( _f_ulId ) \ octvc1_id2string_priv( _f_ulId ) #ifndef OCTVC1_ID2STRING_PRIV_DECLARE extern const char * octvc1_id2string_priv( tOCT_UINT32 f_ulId ); #endif #ifdef OCTVC1_ID2STRING_PRIV_DECLARE #include #include "job/octvc1_job_id_priv.h" #include "hw/octvc1_hw_id_priv.h" /* ------------------------------------------------------------------------------------- octvc1_id2string_priv -------------------------------------------------------------------------------------*/ const char * octvc1_id2string_priv( tOCT_UINT32 f_ulId ) { static char g_szUnknownoctvc1_id2string_priv[32]; switch( f_ulId & ~( cOCTVC1_MSG_FLAGS_BIT_MASK << cOCTVC1_MSG_FLAGS_BIT_OFFSET )) { case (cOCTVC1_JOB_MSG_RUNNER_UNIT_TEST_END_EID & ~( cOCTVC1_MSG_FLAGS_BIT_MASK << cOCTVC1_MSG_FLAGS_BIT_OFFSET )): return "cOCTVC1_JOB_MSG_RUNNER_UNIT_TEST_END_EID"; case ( cOCTVC1_HW_MSG_ETH_PORT_RESTRICTED_UNBLOCK_CID & ~( cOCTVC1_MSG_FLAGS_BIT_MASK << cOCTVC1_MSG_FLAGS_BIT_OFFSET )): return "cOCTVC1_HW_MSG_ETH_PORT_RESTRICTED_UNBLOCK_CID"; case ( cOCTVC1_HW_MSG_CLOCK_SYNC_MGR_START_SYNCHRO_CID & ~( cOCTVC1_MSG_FLAGS_BIT_MASK << cOCTVC1_MSG_FLAGS_BIT_OFFSET )): return "cOCTVC1_HW_MSG_CLOCK_SYNC_MGR_START_SYNCHRO_CID"; case ( cOCTVC1_HW_MSG_CLOCK_SYNC_MGR_STOP_SYNCHRO_CID & ~( cOCTVC1_MSG_FLAGS_BIT_MASK << cOCTVC1_MSG_FLAGS_BIT_OFFSET )): return "cOCTVC1_HW_MSG_CLOCK_SYNC_MGR_STOP_SYNCHRO_CID"; default: break; } return octvc1_id2string( f_ulId ); } #endif #endif /* __OCTVC1_ID2STRING_PRIV__ */