RUI3 (RAK Unified Interface 3) - RAK4631
RAKLoRa.h
Go to the documentation of this file.
1 #ifndef __RAK_LORA_H__
2 #define __RAK_LORA_H__
3 
4 #ifdef SUPPORT_LORA
5 
6 #include <cstdint>
7 #include "WString.h"
8 #include <cstring>
9 
10 #include "udrv_errno.h"
11 #include "service_lora.h"
12 #include "service_lora_test.h"
13 #include "service_lora_p2p.h"
14 #include "service_lora_multicast.h"
15 #include "service_battery.h"
16 #include "service_lora_arssi.h"
17 
23 {
24 public:
25  RAKLoraP2P();
26 
27  class iqInver
28  {
29  public:
56  bool get();
86  bool set(bool iqInver);
87  };
88 
89  class syncword
90  {
91  public:
118  uint32_t get();
148  bool set(uint32_t syncword);
149  };
150 
152  {
153  public:
180  uint32_t get();
210  bool set(uint32_t frequency);
211  };
212 
214  {
215  public:
242  uint8_t get();
271  bool set(uint8_t power_level);
272  };
273 
274  class bandwidth
275  {
276  public:
303  uint32_t get();
333  bool set(uint32_t bandwidth);
334  };
335 
337  {
338  public:
365  uint8_t get();
395  bool set(uint8_t sf);
396  };
397 
399  {
400  public:
427  uint8_t get();
457  bool set(uint8_t cr);
458  };
459 
461  {
462  public:
489  uint16_t get();
519  bool set(uint16_t length);
520  };
521 
523  {
524  public:
551  uint32_t get();
581  bool set(uint32_t time);
582  };
583 
585  {
586  public:
613  bool get();
643  bool set(bool enable);
644  };
645  class cad
646  {
647  public:
674  bool get();
705  bool set(bool enable);
706  };
718 
719 };
720 
721 #endif
722 
723 #endif //end RAKLoRa.h
This file contains all error code for the hardware independent driver layer.
Definition: RAKLoRa.h:22
symbolTimeout symbolTimeout
Definition: RAKLoRa.h:715
Definition: RAKLoRa.h:89
speradingFactor speradingFactor
Definition: RAKLoRa.h:712
fixLengthPayload fixLengthPayload
Definition: RAKLoRa.h:716
Definition: RAKLoRa.h:522
Definition: RAKLoRa.h:645
Provide battery service layer.
iqInver iqInver
Definition: RAKLoRa.h:707
Definition: RAKLoRa.h:151
Provide LoRa service layer for API layer to use.
codingrate codingrate
Definition: RAKLoRa.h:713
Definition: RAKLoRa.h:27
Definition: RAKLoRa.h:460
uint16_t length
Definition: RAKProtocol.h:71
Definition: RAKLoRa.h:213
syncword syncword
Definition: RAKLoRa.h:708
Definition: RAKLoRa.h:584
Definition: RAKLoRa.h:274
rfFrequency rfFrequency
Definition: RAKLoRa.h:709
cad cad
Definition: RAKLoRa.h:717
Definition: RAKLoRa.h:398
preambleLength preambleLength
Definition: RAKLoRa.h:714
bandwidth bandwidth
Definition: RAKLoRa.h:711
Provide LoRa service layer for API layer to use.
Definition: RAKLoRa.h:336
txOutputPower txOutputPower
Definition: RAKLoRa.h:710