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/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

187 lines
4.8KB

  1. /**
  2. * \file demo_output.h
  3. *
  4. * \brief Demo output 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 _DEMO_OUPUT_H
  34. #define _DEMO_OUTPUT_H
  35. #define MAX_SEC_UCAST_PAYLOAD 218
  36. #define MAX_NSEC_UCAST_PAYLOAD 227
  37. #define MAX_SEC_BCAST_PAYLOAD 218
  38. #define MAX_NSEC_BCAST_PAYLOAD 227
  39. /*********************************************************************
  40. * Function: void DemoOutput_Greeting( void )
  41. *
  42. * Overview: Prints demo greeting message
  43. *
  44. * PreCondition: None
  45. *
  46. * Input: None
  47. *
  48. * Output: None
  49. *
  50. ********************************************************************/
  51. void DemoOutput_Greeting(void);
  52. /*********************************************************************
  53. * Function: void DemoOutput_Channel(uint8_t channel, uint8_t step)
  54. *
  55. * Overview: Prints demo channel
  56. *
  57. * PreCondition: None
  58. *
  59. * Input: None
  60. *
  61. * Output: None
  62. *
  63. ********************************************************************/
  64. void DemoOutput_Channel(uint8_t channel, uint8_t step);
  65. /*********************************************************************
  66. * Function: void DemoOutput_Instruction( void )
  67. *
  68. * Overview: Prints demo instructions
  69. *
  70. * PreCondition: None
  71. *
  72. * Input: None
  73. *
  74. * Output: None
  75. *
  76. ********************************************************************/
  77. void DemoOutput_Instruction(void);
  78. /*********************************************************************
  79. * Function: void DemoOutput_HandleMessage( void )
  80. *
  81. * Overview: Prints demo message type
  82. *
  83. * PreCondition: None
  84. *
  85. * Input: None
  86. *
  87. * Output: None
  88. *
  89. ********************************************************************/
  90. void DemoOutput_HandleMessage(void);
  91. /*********************************************************************
  92. * Function: void DemoOutput_UpdateTxRx( uint8_t TxNum, uint8_t RxNum )
  93. *
  94. * Overview: Prints Tx and Rx Packet Count
  95. *
  96. * PreCondition: None
  97. *
  98. * Input: None
  99. *
  100. * Output: None
  101. *
  102. ********************************************************************/
  103. void DemoOutput_UpdateTxRx(uint8_t TxNum, uint8_t RxNum);
  104. /*********************************************************************
  105. * Function: void DemoOutput_ChannelError( uint8_t channel )
  106. *
  107. * Overview: Outputs channel error message
  108. *
  109. * PreCondition: None
  110. *
  111. * Input: None
  112. *
  113. * Output: None
  114. *
  115. ********************************************************************/
  116. void DemoOutput_ChannelError(uint8_t channel);
  117. /*********************************************************************
  118. * Function: void DemoOutput_UnitcastFail( void )
  119. *
  120. * Overview: Outputs Unicast fail status
  121. *
  122. * PreCondition: None
  123. *
  124. * Input: None
  125. *
  126. * Output: None
  127. *
  128. ********************************************************************/
  129. void DemoOutput_UnicastFail(void);
  130. void DemoOutput_BroadcastFail(void);
  131. /*********************************************************************
  132. * Function: uint8_t ButtonPressed(void)
  133. *
  134. * Overview: Reads the Button state
  135. *
  136. * PreCondition: None
  137. *
  138. * Input: None
  139. *
  140. * Output: Buttons State
  141. *
  142. ********************************************************************/
  143. uint8_t ButtonPressed(void);
  144. /*********************************************************************
  145. * Function: uint8_t Buttons_init(void)
  146. *
  147. * Overview: configures buttons
  148. *
  149. * PreCondition: None
  150. *
  151. * Input: None
  152. *
  153. * Output: None
  154. *
  155. ********************************************************************/
  156. void Buttons_init(void);
  157. /*********************************************************************
  158. * Function: void demo_output_freezer_options(void)
  159. *
  160. * Overview: Display Freezer Options
  161. *
  162. * PreCondition: Timer Initialize , system Initialize
  163. *
  164. * Input: None
  165. *
  166. * Output: None
  167. *
  168. ********************************************************************/
  169. void demo_output_freezer_options(void);
  170. #endif