ztcmaintask.c
来自「freescale的基于802.15.4的无线通讯例程」· C语言 代码 · 共 99 行
C
99 行
/******************************************************************************
* 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 + =
减小字号Ctrl + -
显示快捷键?