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

📄 ztctestclientinterface.h

📁 freescale的基于802.15.4的无线通讯例程
💻 H
字号:
/******************************************************************************
* This file exposes the services of UART interface module.
*
*
* (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  ) 
 
#ifndef _ZTCTESTCLIENTINTERFACE_H_
#define _ZTCTESTCLIENTINTERFACE_H_

#include "Uart_Interface.h" 

/******************************************************************************
*******************************************************************************
* Public memory declarations
*******************************************************************************
******************************************************************************/
extern const uint8_t gaOpcodeGrpToSAPId[];
extern const uint8_t gaSAPIdOpcodeGrp[];


/******************************************************************************
*******************************************************************************
* Public macros
*******************************************************************************
******************************************************************************/

/*****************************************************************************
* Converts Opcode Grp used by Test client to SapId used by ZTC.
*
* Interface assumptions:
*       None
*
* The routine limitations.
*       None
*
* Return value:
*       None
*
* Effects on global data.
*       None
*
* Source of algorithm used.
*       None
*
* Revison history:
*
* date   Author   Comments
* ------ ------   --------
* 240306 LS,      Updated
*****************************************************************************/
#define gOpcodeGrpForMlmeNwkSap_c 0x84

#define ZTC_ConvertOpcodeGrpToSapId( opcodeGrp )  \
  gaOpcodeGrpToSAPId[ ( opcodeGrp ) - gOpcodeGrpForMlmeNwkSap_c ]

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

/*****************************************************************************
* Poll any data is available from test Client.
*
* Interface assumptions:
*       None
*
* The routine limitations.
*       None
*
* Return value:
*       TRUE:Indicates new data ready for parser
*
* Effects on global data.
*       None
*
* Source of algorithm used.
*       None
*
* Revison history:
*
* date   Author   Comments
* ------ ------   --------
* 240306 LS,      Updated
*****************************************************************************/
bool_t ZTCTestClientInterface_PollTestInterface
  (
  uint8_t * pRxBuffer,  /*  IN: Ztc Buffer in to which data from
                                Test client get filled */
  uint16_t maxLen       /*  IN: Maximum length of the ZTC buffer  */
  );  

 
/*****************************************************************************
* Used to send the string to the test client.
* call this after the packet is being formed.
*
* Interface assumptions:
*       None
*
* The routine limitations.
*       None
*
* Return value:
*       None
*																	 
* Effects on global data.
*       None
*
* Source of algorithm used.
*       None
*
* Revison history:
*
* date   Author   Comments
* ------ ------   --------
* 240306 LS,      Updated
*****************************************************************************/ 
void ZTCTestClientInterface_SendTestInterface
  (	 
  uint8_t * pTxBuffer, /* IN: pointer to string  */
  uint8_t length       /* IN: Length of the frame
                             (Opcode Grp+opcodeID+ Length fileld+Length)   */
  );

/******************************************************************************
*******************************************************************************
* Public type definitions
*******************************************************************************
******************************************************************************/
/* None */

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

#endif /* _ZTCTESTCLIENTINTERFACE_H_ */

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

⌨️ 快捷键说明

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