📄 ztcfilter.c
字号:
/******************************************************************************
* This module stores the filter information set by the user (filter status).
* Each primitive to be monitored or hooked will be represented by a specific
* bit. These bits can be set or reset by the test client. Re-setting (value 0)
* of the bit will mean the particular primitive has to be monitored or hooked.
* Default values can be configured during compile time.
*
*
* (c) Copyright 2006, Freescale, Inc. All rights reserved.
*
* Freescale Semiconductor Confidential Proprietary
*
* No part of this document must be reproduced in any form - including copied,
* transcribed, printed or by any electronic means - without specific written
* permission from Freescale Semiconductor Danmark A/S.
*
******************************************************************************/
#if ( gZtcIncluded_d == 1 )
#include "EmbeddedTypes.h"
#include "ZtcFilter.h"
#include "ZtcInterface.h"
/******************************************************************************
*******************************************************************************
* Private macros
*******************************************************************************
******************************************************************************/
#define mMCPS_SAPCmdFilterIndex_c 0
#define mMLMELeaveJoinCmdFilterIndex_c mMCPS_SAPCmdFilterIndex_c + 1
#define mMLMESyncCmdFilterIndex_c mMLMELeaveJoinCmdFilterIndex_c + 1
#define mMLMESynAndGTSCmdFilterIndex_c mMLMESyncCmdFilterIndex_c + 1
#define mMLMEScanAndStartCmdFilterIndex_c mMLMESynAndGTSCmdFilterIndex_c + 1
#define mASPToAppCmdFilterIndex_c mMLMEScanAndStartCmdFilterIndex_c + 1
#define mAppToASPCmdFilterIndex_c mASPToAppCmdFilterIndex_c + 1
#define mAppToASPSet2CmdFilterIndex_c mAppToASPCmdFilterIndex_c+ 1
#define mNLDE_SAPCmdFilterIndex_c mAppToASPSet2CmdFilterIndex_c+ 1
#define mNLMEDiscCmdFilterIndex_c mNLDE_SAPCmdFilterIndex_c + 1
#define mNLMEJoinAndLeaveCmdFilterIndex_c mNLMEDiscCmdFilterIndex_c + 1
#define mNLMESyncAndNIBCmdFilterIndex_c mNLMEJoinAndLeaveCmdFilterIndex_c + 1
#define mAPSDECmdFilterIndex_c mNLMESyncAndNIBCmdFilterIndex_c + 1
#define mAPSMECmdFilterIndex_c mAPSDECmdFilterIndex_c + 1
#define mAPSMESecSet1CmdFilterIndex_c mAPSMECmdFilterIndex_c + 1
#define mAPSMESecSet2CmdFilterIndex_c mAPSMESecSet1CmdFilterIndex_c + 1
#define mAFRegAndDeRegCmdFilterIndex_c mAPSMESecSet2CmdFilterIndex_c + 1
#define mAFDataTransCmdFilterIndex_c mAFRegAndDeRegCmdFilterIndex_c + 1
#define mAF_ZDPInterfaceCmdFilterIndex_c mAFDataTransCmdFilterIndex_c + 1
#define mZDPDiscCmdFilterIndex_c mAF_ZDPInterfaceCmdFilterIndex_c + 1
#define mZDPBindCmdFilterIndex_c mZDPDiscCmdFilterIndex_c + 1
#define mZDPMgmtCmdFilterIndex_c mZDPBindCmdFilterIndex_c + 1
#define mZDPMgmtNwkCmdFilterIndex_c mZDPMgmtCmdFilterIndex_c + 1
#define mZDPDeviceDiscCmdFilterIndex_c mZDPMgmtNwkCmdFilterIndex_c + 1
#define mZDP_EPDetailsCmdFilterIndex_c mZDPDeviceDiscCmdFilterIndex_c + 1
#define mZDPSecSet1CmdFilterIndex_c mZDP_EPDetailsCmdFilterIndex_c + 1
#define mZDPSecSet2CmdFilterIndex_c mZDPSecSet1CmdFilterIndex_c + 1
#define mZDPNwkSet1CmdFilterIndex_c mZDPSecSet2CmdFilterIndex_c + 1
#define mZDPNwkSet2CmdFilterIndex_c mZDPNwkSet1CmdFilterIndex_c + 1
#define mNoFilterIndex_c 0
/******************************************************************************
*******************************************************************************
* Private prototypes
*******************************************************************************
******************************************************************************/
/* None */
/******************************************************************************
*******************************************************************************
* Private type definitions
*******************************************************************************
******************************************************************************/
/* None */
/******************************************************************************
*******************************************************************************
* Public memory declarations
*******************************************************************************
******************************************************************************/
#if gZTC_FilterCapability_d == 1
const locateFilterPos_t gaMsgFilterLocator[] =
{
/* Primitives in the NWK to MCPS direction */
{ mMCPS_SAPCmdFilterIndex_c, gFilterSetValueForMCPSDataReq_c },
{ mMCPS_SAPCmdFilterIndex_c, gFilterSetValueForMCPSPurgeReq_c },
{ mMCPS_SAPCmdFilterIndex_c, gFilterSetValueForMCPSDataConf_c },
{ mMCPS_SAPCmdFilterIndex_c, gFilterSetValueForMCPSDataInd_c },
{ mMCPS_SAPCmdFilterIndex_c, gFilterSetValueForMCPSPurgeConf_c },
{ mMCPS_SAPCmdFilterIndex_c, mNoFilterIndex_c },
/* Primitives in the NWK to MLME direction */
{ mMLMELeaveJoinCmdFilterIndex_c, gFilterSetValueForMLMEAssociateReq_c },
{ mMLMELeaveJoinCmdFilterIndex_c, gFilterSetValueForMLMEAssociateResp_c },
{ mMLMELeaveJoinCmdFilterIndex_c, gFilterSetValueForMLMEDisAssociateReq_c},
{ mMLMESyncCmdFilterIndex_c, gFilterSetValueForMLMEGetReq_c },
{ mMLMESynAndGTSCmdFilterIndex_c, gFilterSetValueForMLMEGtsReq_c },
{ mMLMEScanAndStartCmdFilterIndex_c, gFilterSetValueForMLMEOrphanResp_c },
{ mMLMESyncCmdFilterIndex_c, gFilterSetValueForMLMEResetReq_c },
{ mMLMESyncCmdFilterIndex_c, gFilterSetValueForMLMERXEnableReq_c },
{ mMLMEScanAndStartCmdFilterIndex_c, gFilterSetValueForMLMEScanReq_c },
{ mMLMESyncCmdFilterIndex_c, gFilterSetValueForMLMESetReq_c },
{ mMLMEScanAndStartCmdFilterIndex_c, gFilterSetValueForMLMEStartReq_c },
{ mMLMESynAndGTSCmdFilterIndex_c, gFilterSetValueForMLMESyncReq_c },
{ mMLMESynAndGTSCmdFilterIndex_c, gFilterSetValueForMLMEPollReq_c },
/* Primitives in the MLME to NWK direction */
{ mMLMELeaveJoinCmdFilterIndex_c, gFilterSetValueForMLMEAssociateInd_c },
{ mMLMELeaveJoinCmdFilterIndex_c, gFilterSetValueForMLMEAssociateConf_c },
{ mMLMELeaveJoinCmdFilterIndex_c, gFilterSetValueForMLMEDisAssociateInd_c},
{ mMLMELeaveJoinCmdFilterIndex_c, gFilterSetValueForMLMEDisAssociateConf_c},
{ mMLMEScanAndStartCmdFilterIndex_c,gFilterSetValueForMLMEBeaconNotifyInd_c },
{ mMLMESyncCmdFilterIndex_c, gFilterSetValueForMLMEGetConf_c },
{ mMLMESynAndGTSCmdFilterIndex_c, gFilterSetValueForMLMEGtsInd_c },
{ mMLMESynAndGTSCmdFilterIndex_c, gFilterSetValueForMLMEGtsConf_c },
{ mMLMEScanAndStartCmdFilterIndex_c, gFilterSetValueForMLMEOrphanInd_c },
{ mMLMESyncCmdFilterIndex_c, gFilterSetValueForMLMEResetConf_c },
{ mMLMESyncCmdFilterIndex_c, gFilterSetValueForMLMERXEnableConf_c },
{ mMLMEScanAndStartCmdFilterIndex_c, gFilterSetValueForMLMEScanConf_c },
{ mMLMESynAndGTSCmdFilterIndex_c, gFilterSetValueForMLMECommStatusInd_c },
{ mMLMESyncCmdFilterIndex_c, gFilterSetValueForMLMESetConf_c },
{ mMLMEScanAndStartCmdFilterIndex_c, gFilterSetValueForMLMEStartConf_c },
{ mMLMESynAndGTSCmdFilterIndex_c, gFilterSetValueForMLMESyncLossInd_c },
{ mMLMESynAndGTSCmdFilterIndex_c, gFilterSetValueForMLMEPollConf_c },
{ mMCPS_SAPCmdFilterIndex_c, mNoFilterIndex_c },
{ mMCPS_SAPCmdFilterIndex_c, mNoFilterIndex_c },
{ mMCPS_SAPCmdFilterIndex_c, mNoFilterIndex_c },
/* Primitives in the APP to ASP direction */
{ mAppToASPCmdFilterIndex_c, gFilterSetValueForASPGetTimeReq_c },
{ mAppToASPCmdFilterIndex_c, gFilterSetValueForASPGetInactiveTimeReq_c},
{ mAppToASPCmdFilterIndex_c, gFilterSetValueForASPDozeReq_c },
{ mAppToASPCmdFilterIndex_c, gFilterSetValueForASPAutoDozeReq_c },
{ mAppToASPCmdFilterIndex_c, gFilterSetValueForASPHibernateReq_c },
{ mAppToASPCmdFilterIndex_c, gFilterSetValueForASPWakeReq_c },
{ mAppToASPCmdFilterIndex_c, gFilterSetValueForASPEventReq_c },
{ mAppToASPCmdFilterIndex_c, gFilterSetValueForASPTrimReq_c },
{ mAppToASPSet2CmdFilterIndex_c, gFilterSetValueForASP_DDRReq_c },
{ mAppToASPSet2CmdFilterIndex_c, gFilterSetValueForASPPortReq_c },
{ mAppToASPSet2CmdFilterIndex_c, gFilterSetValueForASP_CLCK0Req_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mAppToASPSet2CmdFilterIndex_c, gFilterSetValueForASPSetNotifyReq_c },
{ mAppToASPSet2CmdFilterIndex_c, gFilterSetValueForASPSetMinDozeTimeReq_c},
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
/* Primitives in the ASP to NWK direction */
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mNoFilterIndex_c, mNoFilterIndex_c },
{ mASPToAppCmdFilterIndex_c, gFilterSetValueForASPWakeInd_c },
{ mASPToAppCmdFilterIndex_c, gFilterSetValueForASPIdleInd_c },
{ mASPToAppCmdFilterIndex_c, gFilterSetValueForASPInactiveInd_c },
{ mASPToAppCmdFilterIndex_c, gFilterSetValueForASPEventInd_c },
/* Primitives in the APS to NWK direction */
{ mNLDE_SAPCmdFilterIndex_c, gFilterSetValueForNLDEDataReq_c },
/* Primitives in the NWK to APS direction */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -