Europalab Devices produces a LoRaWAN transmitting client node, specialised for higher research of actuator and sensor assisted IoT networks. https://dev.europalab.com/nlnet/20200000/
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

97 строки
3.0KB

  1. /**
  2. * \file p2p_demo.h
  3. *
  4. * \brief Demo Application for MiWi P2P Interface
  5. *
  6. * Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.
  7. *
  8. * \asf_license_start
  9. *
  10. * \page License
  11. *
  12. * Subject to your compliance with these terms, you may use Microchip
  13. * software and any derivatives exclusively with Microchip products.
  14. * It is your responsibility to comply with third party license terms applicable
  15. * to your use of third party software (including open source software) that
  16. * may accompany Microchip software.
  17. *
  18. * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES,
  19. * WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE,
  20. * INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY,
  21. * AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE
  22. * LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL
  23. * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE
  24. * SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE
  25. * POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT
  26. * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY
  27. * RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
  28. * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
  29. *
  30. * \asf_license_stop
  31. *
  32. */
  33. #ifndef P2P_DEMO_H
  34. #define P2P_DEMO_H
  35. /*********************************************************************
  36. * Function: void ReceivedDataIndication (RECEIVED_MESSAGE *ind)
  37. *
  38. * Overview: Process a Received Message
  39. *
  40. * PreCondition: MiApp_ProtocolInit
  41. *
  42. * Input: None
  43. *
  44. * Output: None
  45. *
  46. ********************************************************************/
  47. void ReceivedDataIndication (RECEIVED_MESSAGE *ind);
  48. /*********************************************************************
  49. * Function: void run_p2p_demo(void)
  50. *
  51. * Overview: Starts the p2p demo
  52. *
  53. * PreCondition: System Initialization and Miwi Protocol Init
  54. *
  55. * Input: None
  56. *
  57. * Output: None
  58. *
  59. ********************************************************************/
  60. void run_p2p_demo(void);
  61. /*********************************************************************
  62. * Function: void TxToutCallback(void)
  63. *
  64. * Overview: Transmission timeout callback to bring the node back to continious transaction cycle
  65. *
  66. * PreCondition: MiApp_ProtocolInit
  67. *
  68. * Input: None
  69. *
  70. * Output: None
  71. *
  72. ********************************************************************/
  73. void TxToutCallback(void);
  74. /*********************************************************************
  75. * Function: void dataConfcb(uint8_t handle, miwi_status_t status, uint8_t* msgPointer)
  76. *
  77. * Overview: Callback routine which will be called upon the initiated data procedure is performed
  78. *
  79. * PreCondition: MiApp_ProtocolInit
  80. *
  81. * Input: None
  82. *
  83. * Output: None
  84. *
  85. ********************************************************************/
  86. void dataConfcb(uint8_t handle, miwi_status_t status, uint8_t* msgPointer);
  87. void p2p_demo_unicast_to_parent(void) ;
  88. void PeriodicTxCallback(void) ;
  89. #endif /* P2P_DEMO_H */