znp_app.h 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /**************************************************************************************************
  2. Filename: znp_app.h
  3. Revised: $Date: 2011-06-07 15:36:01 -0700 (Tue, 07 Jun 2011) $
  4. Revision: $Revision: 26245 $
  5. Description: This file is the Application declaration for the ZNP.
  6. Copyright 2009-2011 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 NP_APP_H
  34. #define NP_APP_H
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. /* ------------------------------------------------------------------------------------------------
  39. * Includes
  40. * ------------------------------------------------------------------------------------------------
  41. */
  42. #include "ZComDef.h"
  43. #include "MT.h"
  44. /* ------------------------------------------------------------------------------------------------
  45. * Constants
  46. * ------------------------------------------------------------------------------------------------
  47. */
  48. #define ZNP_SPI_RX_AREQ_EVENT 0x4000
  49. #define ZNP_SPI_RX_SREQ_EVENT 0x2000
  50. #define ZNP_UART_TX_READY_EVENT 0x1000
  51. #define ZNP_PWRMGR_CONSERVE_EVENT 0x0080
  52. #define ZNP_SECONDARY_INIT_EVENT MT_SECONDARY_INIT_EVENT
  53. #if !defined ZNP_PWRMGR_CONSERVE_DELAY
  54. #define ZNP_PWRMGR_CONSERVE_DELAY 10
  55. #endif
  56. /* ------------------------------------------------------------------------------------------------
  57. * Macros
  58. * ------------------------------------------------------------------------------------------------
  59. */
  60. /* ------------------------------------------------------------------------------------------------
  61. * Global Variables
  62. * ------------------------------------------------------------------------------------------------
  63. */
  64. #define znpTaskId MT_TaskID
  65. /* ------------------------------------------------------------------------------------------------
  66. * Functions
  67. * ------------------------------------------------------------------------------------------------
  68. */
  69. void znpInit(uint8 taskId);
  70. uint16 znpEventLoop(uint8 taskId, uint16 events);
  71. void znpTestRF(void);
  72. /**************************************************************************************************
  73. */
  74. #ifdef __cplusplus
  75. };
  76. #endif
  77. #endif