Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libxDot-Custom by
Diff: mDot.h
- Revision:
- 23:17a25e16ccf1
- Parent:
- 2:4569491293d7
--- a/mDot.h Wed Oct 26 07:51:39 2016 -0500
+++ b/mDot.h Mon Oct 31 14:51:55 2016 +0000
@@ -13,6 +13,7 @@
class mDotEvent;
class LoRaConfig;
+
class mDot {
friend class mDotEvent;
@@ -157,11 +158,8 @@
};
enum FrequencyBands {
- FB_868 = 0,
- FB_915 = 1,
- FB_EU868 = 0, // EU868
- FB_US915 = 1, // US915
- FB_AU915 = 2
+ DYNAMIC = 0,
+ FIXED = 1,
};
enum FrequencySubBands {
@@ -323,6 +321,13 @@
*/
void seedRandom(uint32_t seed);
+
+ uint8_t setChannelPlan(lora::ChannelPlan* plan);
+
+ lora::Settings* getSettings();
+
+ SxRadio* getRadio();
+
/** Enable or disable the activity LED.
* @param enable true to enable the LED, false to disable
*/
@@ -839,8 +844,10 @@
*
* @returns spreading factor and bandwidth
*/
+ std::string getDataRateDetails(uint8_t rate);
std::string getDateRateDetails(uint8_t rate);
+
/** Set TX power output of radio before antenna gain, default: 14 dBm
* actual output power may be limited by local regulations for the chosen frequency
* power affects maximum range
@@ -1315,7 +1322,8 @@
bool _testMode;
uint8_t _savedPort;
void handleTestModePacket();
-
+ lora::ChannelPlan* _plan;
};
#endif
+
