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

📄 tablescoordrouter.h

📁 JENNIC无线传感器网络 ZIGBEE 文件资料
💻 H
字号:
/***************************************************************************** * * MODULE:              TablesCoordRouter * * COMPONENT:           TablesCoordRouter.h,v * * VERSION:             ZB_1v10rc2_for_Jenie * * REVISION:            1.8 * * DATED:               2007/11/26 15:37:39 * * STATUS:              Exp * * AUTHOR:              GPfef * * DESCRIPTION: * Additional definitions for Coordinator and Router neighbour/routing/binding * table access * * CHANGE HISTORY: * * TablesCoordRouter.h,v * * * * * * * * LAST MODIFIED BY:    gpfef *                      $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. All rights reserved * ****************************************************************************/#ifndef  TABLES_COORD_ROUTER_INCLUDED#define  TABLES_COORD_ROUTER_INCLUDED/****************************************************************************//***        Include Files                                                 ***//****************************************************************************//****************************************************************************//***        Macro Definitions                                             ***//****************************************************************************/#define NWK_SIZE_NEIGHBORTABLE		24#define NWK_SIZE_ROUTINGTABLE		20/****************************************************************************//***        Type Definitions                                              ***//****************************************************************************/typedef struct{	uint8 	nwkSequenceNumber;	uint8 	nwkPassiveAckTimeout;		//! Broadcast Passive ACK Timeout in second	uint8	nwkMaxBroadcastRetries;		//! The maximum time duration in seconds allowed for the parent and all child devices to retransmit a broadcast message (passive acknowledgment timeout).	uint8 	nwkMaxChildren;				// Range : 0 ~ nwkcMaxChildrenLimit	uint8 	nwkMaxDepth;				// Range : 0 ~ nwkcMaxDepth	uint8 	nwkMaxRouters;				// Range : 0 ~ nwkcMaxRoutersLimit	NWK_NeighborTable_s 	*nwkNeighborTable;			// NWK_SIZE_NEIGHBORTABLE is changeable	uint8	nwkNeighborTableSize;	uint8	nwkNetworkBroadcastDeliveryTime;		//! Broadcast Delivery Timeout in second	NWK_RoutingTable_s 		*nwkRoutingTable;	uint8	nwkRoutingTableSize;	NWK_CapabilityInformation_s nwkCapabilityInformation;	bool_t 	nwkSymLink;	bool_t 	nwkUseTreeRouting;	bool_t	nwkDistributingBroadcastEndDevice;		//! TRUE or FALSE, which turns on/off distributing broadcasts to End Devices. not declared in Spec.	bool_t	nwkAckedBroadcastEndDevice;				//! TRUE or FALSE, which choose Acknowledged Transmission or not ACKed Transmisson when distributing broadcasts to End Devices. not declared in Spec.	uint8	nwkRouteRepairThreshold;				//! ( Range : 0 ~ nwkcRepairThreshold ) Maximum number of allowed communication errors after which the route repair mechanism is initiated.	bool_t	nwkReuseShortAddress;					//! TRUE or FALSE, which choose Re-Use Short-Address in Neighbor Table, delete or not Neighbor Table when receipt Leave Indication	uint8	nwkReservedTransactionCount;			//! ( Range : 0 ~ nwkcMaxMacRequestCount-1 ) Number of Reserved Transaction for Unicast Data Frame	uint8	nwkReservedRoutingTableCount;			//! ( Range : 0 ~ NWK_SIZE_ROUTINGTABLE ) Number of Reserve Routing Table	uint8	nwkBTTSize;	MAC_ExtAddr_s	nwkExtAddrLocal;	bool_t	nwkDelNeighborTableWhenJoinFailed;		// If TRUE, the entry of neighbor table will be deleted when association is failed}NWK_IB_s;typedef struct{	bool_t	bInUse;	uint8	nwkSequenceNum;	uint16	u16AddrSrc;	uint8	u8MsduLength;	uint8	au8Msdu[maccMaxPayloadSize];	uint8	u8AckRequiredCount;		// Number of Devices of receive Passive ACK	uint8	u8NeighborCount;		// Number of Devices of give Passive ACK	uint8	u8AckedCount;			// Passive Acked count	uint8	u8BroadcastRetries;	NWK_BtrNeighborAddr_s	*asNeighborList;}NWK_BTR_s;/****************************************************************************//***        Exported Functions                                            ***//****************************************************************************//****************************************************************************//***        Exported Variables                                            ***//****************************************************************************/extern PUBLIC NWK_IF_s		gsNIF;					//network information fieldextern PUBLIC NWK_BTR_s		*gsaBTT;	//! Broadcast Transaction Tableextern PUBLIC NWK_IB_s		gsNIB;#endif  /* TABLES_COORD_ROUTER_INCLUDED *//****************************************************************************//***        END OF FILE                                                   ***//****************************************************************************/

⌨️ 快捷键说明

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