publish for gps with lora
Dependents: Dinghy_RaceTrak_Node_GPS_with_LoRa
Fork of LoRaWAN-lib by
LoRaMacTest.h@8:26002607de9c, 2017-04-24 (annotated)
- Committer:
- mluis
- Date:
- Mon Apr 24 09:42:37 2017 +0000
- Revision:
- 8:26002607de9c
- Parent:
- 2:14a5d6ad92d5
WARNING: Radio API timings changed from micro-seconds to milliseconds; ; Synchronized with https://github.com/Lora-net/LoRaMac-node git revision e506c246652fa44c3f24cecb89d0707b49ece739;
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:26002607de9c | 69 | /*! |
mluis | 8:26002607de9c | 70 | * \brief Sets the channel index |
mluis | 8:26002607de9c | 71 | * |
mluis | 8:26002607de9c | 72 | * \details This is a test function. It shall be used for testing purposes only. |
mluis | 8:26002607de9c | 73 | * Changing this attribute may lead to a non-conformance LoRaMac operation. |
mluis | 8:26002607de9c | 74 | * |
mluis | 8:26002607de9c | 75 | * \param [IN] channel - Channel index |
mluis | 8:26002607de9c | 76 | */ |
mluis | 8:26002607de9c | 77 | void LoRaMacTestSetChannel( uint8_t channel ); |
mluis | 8:26002607de9c | 78 | |
mluis | 2:14a5d6ad92d5 | 79 | /*! \} defgroup LORAMACTEST */ |
mluis | 2:14a5d6ad92d5 | 80 | |
mluis | 2:14a5d6ad92d5 | 81 | #endif // __LORAMACTEST_H__ |