⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ztcmaintask.c

📁 freescale的基于802.15.4的无线通讯例程
💻 C
字号:
/******************************************************************************
* This module implements ZTC task. When ZTC task is scheduled to run it will
* check for messages. Depending on the message received, it will either send
* the message primitive to the test client or to BeeStack / ZTC   
*
*
* (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 "ZtcInterface.h"
#include "ZtcQueue.h"

/******************************************************************************
*******************************************************************************
* Private macros
*******************************************************************************
******************************************************************************/
/* None */

/******************************************************************************
*******************************************************************************
* Public prototypes
*******************************************************************************
******************************************************************************/
/* None */

/******************************************************************************
*******************************************************************************
* Private prototypes
*******************************************************************************
******************************************************************************/
/* None */

/******************************************************************************
*******************************************************************************
* Private type definitions
*******************************************************************************
******************************************************************************/
/* None */

/******************************************************************************
*******************************************************************************
* Private memory declarations
*******************************************************************************
******************************************************************************/
/* None */

/******************************************************************************
*******************************************************************************
* Public memory declarations
*******************************************************************************
******************************************************************************/
/* None */

/******************************************************************************
*******************************************************************************
* Public functions
*******************************************************************************
******************************************************************************/

void ZTC_Main
  (
  uint16_t events /* IN:Events set for the ZTC task,  Events are bit maped */
  )
{
  if( gDataFromZTCToTestClientEvent_c & events ) { /* If the event is to send 
                                         data  from Ztc to Test client  */
    ZTCQueue_SendMsgFromQToTestClient();  
  }	 
  if( gDataFromTestClientToZTCEvent_c & events ) { /* If the event is to send 
                                         data  from Test client to Ztc */     
     ZTCQueue_QueueTheMsgFromTestClient(); 
  }
}

/******************************************************************************
*******************************************************************************
* Private functions
*******************************************************************************
******************************************************************************/
/* None */

/******************************************************************************
*******************************************************************************
* Private Debug stuff
*******************************************************************************
******************************************************************************/
/* None */

#endif /* ( gZtcIncluded_d == 1  ) */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -