LoRaMacTest.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*!
  2. * \file LoRaMacTest.h
  3. *
  4. * \brief LoRa MAC layer test function implementation
  5. *
  6. * \copyright Revised BSD License, see section \ref LICENSE.
  7. *
  8. * \code
  9. * ______ _
  10. * / _____) _ | |
  11. * ( (____ _____ ____ _| |_ _____ ____| |__
  12. * \____ \| ___ | (_ _) ___ |/ ___) _ \
  13. * _____) ) ____| | | || |_| ____( (___| | | |
  14. * (______/|_____)_|_|_| \__)_____)\____)_| |_|
  15. * (C)2013 Semtech
  16. *
  17. * ___ _____ _ ___ _ _____ ___ ___ ___ ___
  18. * / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
  19. * \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
  20. * |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
  21. * embedded.connectivity.solutions===============
  22. *
  23. * \endcode
  24. *
  25. * \author Miguel Luis ( Semtech )
  26. *
  27. * \author Gregory Cristian ( Semtech )
  28. *
  29. * \author Daniel Jäckle ( STACKFORCE )
  30. *
  31. * \defgroup LORAMACTEST LoRa MAC layer test function implementation
  32. * This module specifies the API implementation of test function of the LoRaMAC layer.
  33. * The functions in this file are only for testing purposes only.
  34. * \{
  35. */
  36. #ifndef __LORAMACTEST_H__
  37. #define __LORAMACTEST_H__
  38. /*!
  39. * \brief Enabled or disables the reception windows
  40. *
  41. * \details This is a test function. It shall be used for testing purposes only.
  42. * Changing this attribute may lead to a non-conformance LoRaMac operation.
  43. *
  44. * \param [IN] enable - Enabled or disables the reception windows
  45. */
  46. void LoRaMacTestRxWindowsOn( bool enable );
  47. /*!
  48. * \brief Enables the MIC field test
  49. *
  50. * \details This is a test function. It shall be used for testing purposes only.
  51. * Changing this attribute may lead to a non-conformance LoRaMac operation.
  52. *
  53. * \param [IN] txPacketCounter - Fixed Tx packet counter value
  54. */
  55. void LoRaMacTestSetMic( uint16_t txPacketCounter );
  56. /*!
  57. * \brief Enabled or disables the duty cycle
  58. *
  59. * \details This is a test function. It shall be used for testing purposes only.
  60. * Changing this attribute may lead to a non-conformance LoRaMac operation.
  61. *
  62. * \param [IN] enable - Enabled or disables the duty cycle
  63. */
  64. void LoRaMacTestSetDutyCycleOn( bool enable );
  65. /*! \} defgroup LORAMACTEST */
  66. #endif // __LORAMACTEST_H__