www.pudn.com > lightlamp.rar > ZigbeeErrorCodes.h
/* ** ============================================================================ ** ** FILE ** $Id: ZigbeeErrorCodes.h,v 1.2 2005/09/05 13:42:21 burnett Exp $ ** ** DESCRIPTION ** Definitions of error status codes returned in ZigBee confirms ** ** CREATED ** Peter Burnett ** ** COPYRIGHT ** Copyright 2005 Integration Associates Inc. All rights reserved. ** ** LIMITED USE LICENSE. By using this software, the user agrees to the terms of the ** following license. If the user does not agree to these terms, ** then this software should be returned within 30 days and a full ** refund of the purchase price or license fee will provided. ** Integration Associates hereby grants a license to the user on the ** following terms and conditions: The user may use, copy, modify, ** revise, translate, abridge, condense, expand, collect, compile, ** link, recast, distribute, transform or adapt this software solely ** in connection with the development of products incorporating ** integrated circuits sold by Integration Associates. Any other use ** for any other purpose is expressly prohibited with the prior written ** consent of Integration Associates. ** ** Any copy or modification made must satisfy the following conditions: ** ** 1. Both the copyright notice and this permission notice appear in all copies of the software, ** derivative works or modified versions, and any portions thereof, and that both notices ** appear in supporting documentation. ** ** 2. All copies of the software shall contain the following acknowledgement: "Portions of this ** software are used under license from Integration Associates Inc. and are copyrighted." ** ** 3 Neither the name of Integration Associates Inc. nor any of its subsidiaries may be used ** to endorse or promote products derived from this software without specific prior written ** permission. ** ** THIS SOFTWARE IS PROVIDED BY "AS IS" AND ALL WARRANTIES OF ANY KIND, INCLUDING THE IMPLIED ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR USE, ARE EXPRESSLY DISCLAIMED. THE DEVELOPER ** SHALL NOT BE LIABLE FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. ** THIS SOFTWARE MAY NOT BE USED IN PRODUCTS INTENDED FOR USE IN IMPLANTATION OR OTHER DIRECT ** LIFE SUPPORT APPLICATIONS WHERE MALFUNCTION MAY RESULT IN THE DIRECT PHYSICAL HARM OR INJURY ** TO PERSONS. ALL SUCH IS USE IS EXPRESSLY PROHIBITED. ** ** ** Edit History: ** ** $Log: ZigbeeErrorCodes.h,v $ ** Revision 1.2 2005/09/05 13:42:21 burnett ** copyright notice ** ** Revision 1.1 2005/07/22 10:40:58 burnett ** 1st version ** ** ** ** ============================================================================ **/ #ifndef ZIGBEEERRORCODES_H #define ZIGBEEERRORCODES_H /* ** ============================================================================ ** System include files ** ============================================================================ */ /* ** ============================================================================ ** Project include files ** ============================================================================ */ /* ** ============================================================================ ** Definitions ** ============================================================================ */ /* ** ============================================================================ ** MAC Enumeration definitions ** ============================================================================ */ #define MAC_SUCCESS 0x00 #define BEACON_LOST 0xe0 #define CHANNEL_ACCESS_FAILURE 0xe1 #define DENIED 0xe2 #define DISABLE_TRX_FAILURE 0xe3 #define FAILED_SECURITY_CHECK 0xe4 #define FRAME_TOO_LONG 0xe5 #define INVALID_GTS 0xe6 #define INVALID_HANDLE 0xe7 #define INVALID_PARAMETER 0xe8 #define NO_ACK 0xe9 #define NO_BEACON 0xea #define MAC_NO_DATA 0xeb #define NO_SHORT_ADDRESS 0xec #define OUT_OF_CAP 0xed #define PAN_ID_CONFLICT 0xee #define REALIGNMENT 0xef #define TRANSACTION_EXPIRED 0xf0 #define TRANSACTION_OVERFLOW 0xf1 #define TX_ACTIVE 0xf2 #define UNAVAILABLE_KEY 0xf3 #define UNSUPPORTED_ATTRIBUTE 0xf4 /* ** ============================================================================ ** NWK Enumeration definitions ** ============================================================================ */ #define NWK_SUCCESS 0x00 #define NWK_INVALID_PARAMETER 0xC1 #define NWK_INVALID_REQUEST 0xC2 #define NWK_NOT_PERMITTED 0xC3 #define NWK_STARTUP_FAILURE 0xC4 #define NWK_ALREADY_PRESENT 0xC5 #define NWK_SYNC_FAILURE 0xC6 #define NWK_TABLE_FULL 0xC7 #define NWK_UNKNOWN_DEVICE 0xC8 #define NWK_UNSUPPORTED_ATTRIBUTE 0xC9 #define NWK_NO_NETWORKS 0xCA #define NWK_LEAVE_UNCONFIRMED 0xCB #define NWK_MAX_FRM_CNTR 0xCC #define NWK_NO_KEY 0xCD #define NWK_BAD_CCM_OUTPUT 0xCE #define NWK_BUSY 0xCF /* ** ============================================================================ ** APS Status Enumeration definitions ** ============================================================================ */ #define APS_SUCCESS 0 #define APS_NO_BOUND_DEVICE 0xA0 #define APS_SECURITY_FAIL 0xA1 #define APS_ILLEGAL_DEVICE 0xA2 #define APS_ILLEGAL_REQUEST 0xA3 #define APS_TABLE_FULL 0xA4 #define APS_NOT_SUPPORTED 0xA5 #define APS_INVALID_BINDING 0xA6 #define APS_UNSUPPORTED_ATTRIBUTE 0xA7 #define APS_CHANNEL_ACCESS_FAILURE 0xA8 #define APS_INVALID_PARAMETER 0xA9 /******************************* * ZDO ERROR Numbers *******************************/ #define ZDO_SUCCESS 0 #define ZDO_INV_REQUESTTYPE 0x80 #define ZDO_DEVICE_NOT_FOUND 0x81 #define ZDO_INVALID_EP 0x82 #define ZDO_NOT_ACTIVE 0x83 #define ZDO_NOT_SUPPORTED 0x84 #define ZDO_TIMEOUT 0x85 #define ZDO_NO_MATCH 0x86 #define ZDO_TABLE_FULL 0x87 #define ZDO_NO_ENTRY 0x88 #define ZDO_RESTORE_FAIL 0x8D #define ZDO_NO_REPLY 0x8E #define ZDO_NO_TT_ENTRIES 0x8F /* ** ============================================================================ ** Function Prototypes ** ============================================================================ */ #endif /* ZIGBEEERRORCODES_H */ /* ** ============================================================================ ** End of $Id: ZigbeeErrorCodes.h,v 1.2 2005/09/05 13:42:21 burnett Exp $ ** ============================================================================ */