MT_AF.h 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /**************************************************************************************************
  2. Filename: MT_AF.h
  3. Revised: $Date: 2010-03-18 11:11:36 -0700 (Thu, 18 Mar 2010) $
  4. Revision: $Revision: 21931 $
  5. Description: MonitorTest functions for AF.
  6. Copyright 2007-2010 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 MT_AF_H
  34. #define MT_AF_H
  35. /***************************************************************************************************
  36. * INCLUDES
  37. ***************************************************************************************************/
  38. #include "ZComDef.h"
  39. #include "MT.h"
  40. #include "AF.h"
  41. #include "OnBoard.h"
  42. //#define AFCB_CHECK(cbi,task) ((_afCallbackSub & cbi) && (task == MT_TaskID))
  43. #define AFCB_CHECK(cbi,task) ((1) && (task == MT_TaskID))
  44. /***************************************************************************************************
  45. * CONSTANTS
  46. ***************************************************************************************************/
  47. #if defined ( MT_AF_CB_FUNC )
  48. #define CB_ID_AF_DATA_IND 0x0001
  49. #define CB_ID_AF_DATA_CNF 0x0002
  50. #define SPI_AF_CB_TYPE 0x0900
  51. #endif
  52. #if defined (INTER_PAN)
  53. typedef enum {
  54. InterPanClr,
  55. InterPanSet,
  56. InterPanReg,
  57. InterPanChk
  58. } InterPanCtl_t;
  59. #endif
  60. /***************************************************************************************************
  61. * GLOBAL VARIABLES
  62. ***************************************************************************************************/
  63. extern uint16 _afCallbackSub;
  64. /*
  65. * AF housekeeping executive.
  66. */
  67. extern void MT_AfExec(void);
  68. /*
  69. * Process AF commands
  70. */
  71. extern uint8 MT_AfCommandProcessing(uint8 *pBuf);
  72. /*
  73. * Process the callback subscription for AF Incoming data.
  74. */
  75. extern void MT_AfIncomingMsg(afIncomingMSGPacket_t *pMsg);
  76. /*
  77. * Process the callback subscription for Data confirm
  78. */
  79. extern void MT_AfDataConfirm(afDataConfirm_t *pMsg);
  80. /*********************************************************************
  81. *********************************************************************/
  82. #endif