mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2025-06-15 12:24:27 +02:00
Modifying to expose part of the LMIC controls
This commit is contained in:
parent
e29477fa7e
commit
8b28a72eec
@ -21,6 +21,19 @@
|
|||||||
*/
|
*/
|
||||||
#define TTN_NOT_CONNECTED 0xff
|
#define TTN_NOT_CONNECTED 0xff
|
||||||
|
|
||||||
|
class LMIC_Controls
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void disableChannel (uint8_t channel);
|
||||||
|
void enableSubBand(uint8_t band);
|
||||||
|
void enableChannel(uint8_t channel);
|
||||||
|
void disableSubBand(uint8_t band);
|
||||||
|
void selectSubBand(uint8_t band);
|
||||||
|
|
||||||
|
//void setDrTxpow (dr_t dr, s1_t txpow); // set default/start DR/txpow
|
||||||
|
//void setAdrMode (bit_t enabled); // set ADR mode (if mobile turn off)
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
typedef uint8_t port_t;
|
typedef uint8_t port_t;
|
||||||
|
|
||||||
|
@ -19,6 +19,12 @@
|
|||||||
#include "TTNProvisioning.h"
|
#include "TTNProvisioning.h"
|
||||||
#include "TTNLogging.h"
|
#include "TTNLogging.h"
|
||||||
|
|
||||||
|
void LMIC_Controls::disableChannel(uint8_t channel){ LMIC_disableChannel( channel ); }
|
||||||
|
void LMIC_Controls::enableSubBand(uint8_t band){ LMIC_enableSubBand( band ); }
|
||||||
|
void LMIC_Controls::enableChannel(uint8_t channel){ LMIC_enableChannel( channel ); }
|
||||||
|
void LMIC_Controls::disableSubBand(uint8_t band){ LMIC_disableSubBand( band ); }
|
||||||
|
void LMIC_Controls::selectSubBand(uint8_t band){ LMIC_selectSubBand( band ); }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Reason the user code is waiting
|
* @brief Reason the user code is waiting
|
||||||
|
Loading…
Reference in New Issue
Block a user