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

📄 wuartdisp.c

📁 关于zigbee厂家jennic的zigbee通信模块JN5139的一些示例程序。
💻 C
字号:
/***************************************************************************//*! *\MODULE              Wireless UART with Flow Control * *\COMPONENT           $RCSfile: WUartDisp.c,v $ * *\VERSION             $Name:  $ * *\REVISION            $Revision: 1.1 $ * *\DATED               $Date: 2008/01/21 10:15:05 $ * *\STATUS              $State: Exp $ * *\AUTHOR              Martin Looker * *\DESCRIPTION         Wireless UART LCD statistics. * * Maintains an LCD screen, (using Display.c), showing running counters * of the data transmitted and received by the UART and radio. *//*\CHANGE HISTORY * * $Log: WUartDisp.c,v $ * Revision 1.1  2008/01/21 10:15:05  mlook * Initial checkin * * Revision 1.1  2007/11/02 12:32:54  mlook * Adding new application notes * * * *\LAST MODIFIED BY    $Author: mlook $ *                     $Modtime: $ * **************************************************************************** * * This software is owned by Jennic and/or its supplier and is protected * under applicable copyright laws. All rights are reserved. We grant You, * and any third parties, a license to use this software solely and * exclusively on Jennic products. You, and any third parties must reproduce * the copyright and warranty notice and any other legend of ownership on each * copy or partial copy of the software. * * THIS SOFTWARE IS PROVIDED "AS IS". JENNIC MAKES NO WARRANTIES, WHETHER * EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, * ACCURACY OR LACK OF NEGLIGENCE. JENNIC SHALL NOT, IN ANY CIRCUMSTANCES, * BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, SPECIAL, * INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER. * * Copyright Jennic Ltd 2005, 2006, 2007. All rights reserved * ****************************************************************************//****************************************************************************//***        Include files                                                 ***//****************************************************************************/#include <jendefs.h>#include "gdb.h"#include "Display.h"#include "Protocol.h"#include "SerialQ.h"#include "Uart.h"#include "WUartDisp.h"/****************************************************************************//***        Macro Definitions                                             ***//****************************************************************************//****************************************************************************//***        Type Definitions                                              ***//****************************************************************************//****************************************************************************//***        Local Function Prototypes                                     ***//****************************************************************************//****************************************************************************//***        Exported Variables                                            ***//****************************************************************************//****************************************************************************//***        Local Variables                                               ***//****************************************************************************//**************************************************************************** * * NAME: vWuartDisp_Init *//*! *\DESCRIPTION  Initialises display with unchanging values *//* PARAMETERS       Name            RW  Usage * None. * * RETURNS: * None. * * NOTES: * None. ****************************************************************************/PUBLIC void vWUartDisp_Init(char *sTitle){	/* Initialise display */	vDisplay_Init();	/* Set unchaning data */	vDisplay_Text(0, sTitle);	vDisplay_Val1(0, WUART_VERSION, 2);	vDisplay_Text(2, "Uart");	vDisplay_Text(3, "Rx Enabled Tx");/* UART enabled state */	vDisplay_Text(4, "Rx Data     Tx");/* Serial queue data counts */	vDisplay_Text(6, "Radio");	vDisplay_Text(7, "Rx Data     Tx");/* Protocol data counts */	/* Draw display */	vDisplay_Draw();}/**************************************************************************** * * NAME: vWuartDisp_Draw *//*! *\DESCRIPTION  Updates display *//* PARAMETERS       Name            RW  Usage * None. * * RETURNS: * None. * * NOTES: * None. ****************************************************************************/PUBLIC void vWUartDisp_Update(void){	/* UART enabled states */	vDisplay_Val0(3, (uint16) bUart_GetRxEnable(), 1);	vDisplay_Val1(3, (uint16) bUart_GetTxEnable(), 1);	/* UART data in queue counts */	vDisplay_Val0(4, u16SerialQ_GetInCount(RX_QUEUE),  4);	vDisplay_Val1(4, u16SerialQ_GetOutCount(TX_QUEUE),  4);	/* Radio data counts */	vDisplay_Val0(7, u16Protocol_GetRxCount(), 4);	vDisplay_Val1(7, u16Protocol_GetTxCount(), 4);	/* Redraw display */	vDisplay_Draw();}/****************************************************************************//***        END OF FILE                                                   ***//****************************************************************************/

⌨️ 快捷键说明

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