Forked LoRaWAN-lib for Legacy Gateway testing
Fork of LoRaWAN-lib by
LoRaMacTest.h@10:e52525844705, 2017-04-20 (annotated)
- Committer:
- mick_ccc
- Date:
- Thu Apr 20 14:26:48 2017 +0000
- Revision:
- 10:e52525844705
- Parent:
- 8:2d237e069df2
Hacked for Legacy Gateway testing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mluis | 2:14a5d6ad92d5 | 1 | /*! |
mluis | 2:14a5d6ad92d5 | 2 | * \file LoRaMacTest.h |
mluis | 2:14a5d6ad92d5 | 3 | * |
mluis | 2:14a5d6ad92d5 | 4 | * \brief LoRa MAC layer test function implementation |
mluis | 2:14a5d6ad92d5 | 5 | * |
mluis | 2:14a5d6ad92d5 | 6 | * \copyright Revised BSD License, see section \ref LICENSE. |
mluis | 2:14a5d6ad92d5 | 7 | * |
mluis | 2:14a5d6ad92d5 | 8 | * \code |
mluis | 2:14a5d6ad92d5 | 9 | * ______ _ |
mluis | 2:14a5d6ad92d5 | 10 | * / _____) _ | | |
mluis | 2:14a5d6ad92d5 | 11 | * ( (____ _____ ____ _| |_ _____ ____| |__ |
mluis | 2:14a5d6ad92d5 | 12 | * \____ \| ___ | (_ _) ___ |/ ___) _ \ |
mluis | 2:14a5d6ad92d5 | 13 | * _____) ) ____| | | || |_| ____( (___| | | | |
mluis | 2:14a5d6ad92d5 | 14 | * (______/|_____)_|_|_| \__)_____)\____)_| |_| |
mluis | 2:14a5d6ad92d5 | 15 | * (C)2013 Semtech |
mluis | 2:14a5d6ad92d5 | 16 | * |
mluis | 2:14a5d6ad92d5 | 17 | * ___ _____ _ ___ _ _____ ___ ___ ___ ___ |
mluis | 2:14a5d6ad92d5 | 18 | * / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __| |
mluis | 2:14a5d6ad92d5 | 19 | * \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _| |
mluis | 2:14a5d6ad92d5 | 20 | * |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___| |
mluis | 2:14a5d6ad92d5 | 21 | * embedded.connectivity.solutions=============== |
mluis | 2:14a5d6ad92d5 | 22 | * |
mluis | 2:14a5d6ad92d5 | 23 | * \endcode |
mluis | 2:14a5d6ad92d5 | 24 | * |
mluis | 2:14a5d6ad92d5 | 25 | * \author Miguel Luis ( Semtech ) |
mluis | 2:14a5d6ad92d5 | 26 | * |
mluis | 2:14a5d6ad92d5 | 27 | * \author Gregory Cristian ( Semtech ) |
mluis | 2:14a5d6ad92d5 | 28 | * |
mluis | 2:14a5d6ad92d5 | 29 | * \author Daniel Jäckle ( STACKFORCE ) |
mluis | 2:14a5d6ad92d5 | 30 | * |
mluis | 2:14a5d6ad92d5 | 31 | * \defgroup LORAMACTEST LoRa MAC layer test function implementation |
mluis | 2:14a5d6ad92d5 | 32 | * This module specifies the API implementation of test function of the LoRaMAC layer. |
mluis | 2:14a5d6ad92d5 | 33 | * The functions in this file are only for testing purposes only. |
mluis | 2:14a5d6ad92d5 | 34 | * \{ |
mluis | 2:14a5d6ad92d5 | 35 | */ |
mluis | 2:14a5d6ad92d5 | 36 | #ifndef __LORAMACTEST_H__ |
mluis | 2:14a5d6ad92d5 | 37 | #define __LORAMACTEST_H__ |
mluis | 2:14a5d6ad92d5 | 38 | |
mluis | 2:14a5d6ad92d5 | 39 | /*! |
mluis | 2:14a5d6ad92d5 | 40 | * \brief Enabled or disables the reception windows |
mluis | 2:14a5d6ad92d5 | 41 | * |
mluis | 2:14a5d6ad92d5 | 42 | * \details This is a test function. It shall be used for testing purposes only. |
mluis | 2:14a5d6ad92d5 | 43 | * Changing this attribute may lead to a non-conformance LoRaMac operation. |
mluis | 2:14a5d6ad92d5 | 44 | * |
mluis | 2:14a5d6ad92d5 | 45 | * \param [IN] enable - Enabled or disables the reception windows |
mluis | 2:14a5d6ad92d5 | 46 | */ |
mluis | 2:14a5d6ad92d5 | 47 | void LoRaMacTestRxWindowsOn( bool enable ); |
mluis | 2:14a5d6ad92d5 | 48 | |
mluis | 2:14a5d6ad92d5 | 49 | /*! |
mluis | 2:14a5d6ad92d5 | 50 | * \brief Enables the MIC field test |
mluis | 2:14a5d6ad92d5 | 51 | * |
mluis | 2:14a5d6ad92d5 | 52 | * \details This is a test function. It shall be used for testing purposes only. |
mluis | 2:14a5d6ad92d5 | 53 | * Changing this attribute may lead to a non-conformance LoRaMac operation. |
mluis | 2:14a5d6ad92d5 | 54 | * |
mluis | 2:14a5d6ad92d5 | 55 | * \param [IN] txPacketCounter - Fixed Tx packet counter value |
mluis | 2:14a5d6ad92d5 | 56 | */ |
mluis | 2:14a5d6ad92d5 | 57 | void LoRaMacTestSetMic( uint16_t txPacketCounter ); |
mluis | 2:14a5d6ad92d5 | 58 | |
mluis | 2:14a5d6ad92d5 | 59 | /*! |
mluis | 2:14a5d6ad92d5 | 60 | * \brief Enabled or disables the duty cycle |
mluis | 2:14a5d6ad92d5 | 61 | * |
mluis | 2:14a5d6ad92d5 | 62 | * \details This is a test function. It shall be used for testing purposes only. |
mluis | 2:14a5d6ad92d5 | 63 | * Changing this attribute may lead to a non-conformance LoRaMac operation. |
mluis | 2:14a5d6ad92d5 | 64 | * |
mluis | 2:14a5d6ad92d5 | 65 | * \param [IN] enable - Enabled or disables the duty cycle |
mluis | 2:14a5d6ad92d5 | 66 | */ |
mluis | 2:14a5d6ad92d5 | 67 | void LoRaMacTestSetDutyCycleOn( bool enable ); |
mluis | 2:14a5d6ad92d5 | 68 | |
mluis | 8:2d237e069df2 | 69 | /*! |
mluis | 8:2d237e069df2 | 70 | * \brief Sets the channel index |
mluis | 8:2d237e069df2 | 71 | * |
mluis | 8:2d237e069df2 | 72 | * \details This is a test function. It shall be used for testing purposes only. |
mluis | 8:2d237e069df2 | 73 | * Changing this attribute may lead to a non-conformance LoRaMac operation. |
mluis | 8:2d237e069df2 | 74 | * |
mluis | 8:2d237e069df2 | 75 | * \param [IN] channel - Channel index |
mluis | 8:2d237e069df2 | 76 | */ |
mluis | 8:2d237e069df2 | 77 | void LoRaMacTestSetChannel( uint8_t channel ); |
mluis | 8:2d237e069df2 | 78 | |
mluis | 2:14a5d6ad92d5 | 79 | /*! \} defgroup LORAMACTEST */ |
mluis | 2:14a5d6ad92d5 | 80 | |
mluis | 2:14a5d6ad92d5 | 81 | #endif // __LORAMACTEST_H__ |