mac_pib.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /**************************************************************************************************
  2. Filename: mac_pib.h
  3. Revised: $Date: 2009-08-19 06:55:19 -0700 (Wed, 19 Aug 2009) $
  4. Revision: $Revision: 20605 $
  5. Description: Internal interface file for the MAC PIB module.
  6. Copyright 2006-2009 Texas Instruments Incorporated. All rights reserved.
  7. IMPORTANT: Your use of this Software is limited to those specific rights
  8. granted under the terms of a software license agreement between the user
  9. who downloaded the software, his/her employer (which must be your employer)
  10. and Texas Instruments Incorporated (the "License"). You may not use this
  11. Software unless you agree to abide by the terms of the License. The License
  12. limits your use, and you acknowledge, that the Software may not be modified,
  13. copied or distributed unless embedded on a Texas Instruments microcontroller
  14. or used solely and exclusively in conjunction with a Texas Instruments radio
  15. frequency transceiver, which is integrated into your product. Other than for
  16. the foregoing purpose, you may not use, reproduce, copy, prepare derivative
  17. works of, modify, distribute, perform, display or sell this Software and/or
  18. its documentation for any purpose.
  19. YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
  20. PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
  21. INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
  22. NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
  23. TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,
  24. NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
  25. LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
  26. INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
  27. OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
  28. OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
  29. (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
  30. Should you have any questions regarding your right to use this Software,
  31. contact Texas Instruments Incorporated at www.TI.com.
  32. **************************************************************************************************/
  33. #ifndef MAC_PIB_H
  34. #define MAC_PIB_H
  35. /* ------------------------------------------------------------------------------------------------
  36. * Includes
  37. * ------------------------------------------------------------------------------------------------
  38. */
  39. #include "mac_api.h"
  40. #include "mac_high_level.h"
  41. /* ------------------------------------------------------------------------------------------------
  42. * Typedefs
  43. * ------------------------------------------------------------------------------------------------
  44. */
  45. /* MAC PIB type */
  46. typedef struct
  47. {
  48. uint8 ackWaitDuration;
  49. bool associationPermit;
  50. bool autoRequest;
  51. bool battLifeExt;
  52. uint8 battLifeExtPeriods;
  53. uint8 *pBeaconPayload;
  54. uint8 beaconPayloadLength;
  55. uint8 beaconOrder;
  56. uint32 beaconTxTime;
  57. uint8 bsn;
  58. sAddr_t coordExtendedAddress;
  59. uint16 coordShortAddress;
  60. uint8 dsn;
  61. bool gtsPermit;
  62. uint8 maxCsmaBackoffs;
  63. uint8 minBe;
  64. uint16 panId;
  65. bool promiscuousMode;
  66. bool rxOnWhenIdle;
  67. uint16 shortAddress;
  68. uint8 superframeOrder;
  69. uint16 transactionPersistenceTime;
  70. bool associatedPanCoord;
  71. uint8 maxBe;
  72. uint16 maxFrameTotalWaitTime;
  73. uint8 maxFrameRetries;
  74. uint8 responseWaitTime;
  75. uint8 syncSymbolOffset;
  76. bool timeStampSupported;
  77. bool securityEnabled;
  78. /* Proprietary */
  79. uint8 phyTransmitPower;
  80. uint8 logicalChannel;
  81. sAddr_t extendedAddress;
  82. uint8 altBe;
  83. uint8 deviceBeaconOrder;
  84. } macPib_t;
  85. /* ------------------------------------------------------------------------------------------------
  86. * Global Variables
  87. * ------------------------------------------------------------------------------------------------
  88. */
  89. /* MAC PIB */
  90. extern macPib_t macPib;
  91. /* ------------------------------------------------------------------------------------------------
  92. * Function Prototypes
  93. * ------------------------------------------------------------------------------------------------
  94. */
  95. MAC_INTERNAL_API void macPibReset(void);
  96. /**************************************************************************************************
  97. */
  98. #endif /* MAC_PIB_H */