From 676ee7d2bc37d9821b1abc719d4eae946efbc894 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 10 Apr 2023 15:26:40 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=209c019?= =?UTF-8?q?a58e78954c6f7c72428425c1eb59fcc0db2=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _a_x25_8h_source.html | 64 +++--- _build_opt_8h_source.html | 8 +- _c_c1101_8h_source.html | 116 +++++------ _hellschreiber_8h_source.html | 90 +++++---- _module_8h_source.html | 186 ++++++++--------- _morse_8h_source.html | 106 +++++----- _pager_8h_source.html | 110 +++++----- _physical_layer_8h_source.html | 322 +++++++++++++++--------------- _r_f69_8h_source.html | 152 +++++++------- _r_t_t_y_8h_source.html | 108 +++++----- _s_t_m32_w_lx_8h_source.html | 2 +- _s_x126x_8h_source.html | 152 +++++++------- _s_x1272_8h_source.html | 26 +-- _s_x1278_8h_source.html | 26 +-- _s_x127x_8h_source.html | 52 ++--- _s_x128x_8h_source.html | 110 +++++----- _si443x_8h_source.html | 32 +-- class_a_x25_client-members.html | 3 +- class_a_x25_client.html | 50 +---- class_a_x25_client.js | 1 - class_c_c1101-members.html | 18 +- class_c_c1101.html | 170 +--------------- class_c_c1101.js | 5 - class_external_radio-members.html | 17 +- class_external_radio.html | 15 -- class_hell_client-members.html | 4 - class_hell_client.html | 12 -- class_hell_client.js | 4 - class_l_l_c_c68-members.html | 18 +- class_l_l_c_c68.html | 30 --- class_morse_client-members.html | 4 - class_morse_client.html | 12 -- class_morse_client.js | 4 - class_pager_client-members.html | 8 +- class_pager_client.html | 102 +--------- class_pager_client.js | 2 - class_physical_layer-members.html | 17 +- class_physical_layer.html | 217 +------------------- class_physical_layer.js | 5 - class_r_f69-members.html | 18 +- class_r_f69.html | 170 +--------------- class_r_f69.js | 5 - class_r_f_m95-members.html | 18 +- class_r_f_m95.html | 34 +--- class_r_f_m96-members.html | 18 +- class_r_f_m96.html | 34 +--- class_r_f_m97-members.html | 18 +- class_r_f_m97.html | 34 +--- class_r_t_t_y_client-members.html | 8 +- class_r_t_t_y_client.html | 12 -- class_r_t_t_y_client.js | 4 - class_s_t_m32_w_lx-members.html | 18 +- class_s_t_m32_w_lx.html | 30 --- class_s_x1231-members.html | 18 +- class_s_x1231.html | 30 --- class_s_x1261-members.html | 18 +- class_s_x1261.html | 30 --- class_s_x1262-members.html | 18 +- class_s_x1262.html | 30 --- class_s_x1268-members.html | 18 +- class_s_x1268.html | 30 --- class_s_x126x-members.html | 18 +- class_s_x126x.html | 170 +--------------- class_s_x126x.js | 5 - class_s_x1272-members.html | 18 +- class_s_x1272.html | 34 +--- class_s_x1273-members.html | 18 +- class_s_x1273.html | 34 +--- class_s_x1276-members.html | 18 +- class_s_x1276.html | 34 +--- class_s_x1277-members.html | 18 +- class_s_x1277.html | 34 +--- class_s_x1278-members.html | 18 +- class_s_x1278.html | 34 +--- class_s_x1279-members.html | 18 +- class_s_x1279.html | 34 +--- class_s_x127x-members.html | 18 +- class_s_x127x.html | 178 ++--------------- class_s_x127x.js | 5 - class_s_x1280-members.html | 18 +- class_s_x1280.html | 30 --- class_s_x1281-members.html | 18 +- class_s_x1281.html | 30 --- class_s_x1282-members.html | 18 +- class_s_x1282.html | 30 --- class_s_x128x-members.html | 18 +- class_s_x128x.html | 170 +--------------- class_s_x128x.js | 5 - class_si4430-members.html | 18 +- class_si4430.html | 34 +--- class_si4431-members.html | 18 +- class_si4431.html | 34 +--- class_si4432-members.html | 18 +- class_si4432.html | 34 +--- class_si443x-members.html | 18 +- class_si443x.html | 178 ++--------------- class_si443x.js | 5 - classn_r_f24-members.html | 18 +- classn_r_f24.html | 170 +--------------- classn_r_f24.js | 5 - functions_func_r.html | 14 +- functions_func_s.html | 26 +-- functions_func_t.html | 8 +- functions_r.html | 16 +- functions_s.html | 16 +- functions_t.html | 8 +- n_r_f24_8h_source.html | 32 +-- navtreedata.js | 8 +- navtreeindex0.js | 146 +++++++------- navtreeindex1.js | 318 ++++++++++++++--------------- navtreeindex2.js | 256 ++++++++++++------------ navtreeindex3.js | 306 ++++++++++++++-------------- navtreeindex4.js | 57 +----- search/all_10.js | 2 +- search/all_e.js | 20 +- search/all_f.js | 4 +- search/functions_10.js | 2 +- search/functions_e.js | 10 +- search/functions_f.js | 54 ++--- 119 files changed, 1712 insertions(+), 4177 deletions(-) diff --git a/_a_x25_8h_source.html b/_a_x25_8h_source.html index 605db844..541d7e5c 100644 --- a/_a_x25_8h_source.html +++ b/_a_x25_8h_source.html @@ -237,46 +237,48 @@ $(document).ready(function(){initNavTree('_a_x25_8h_source.html',''); initResiza
311 
323  int16_t begin(const char* srcCallsign, uint8_t srcSSID = 0x00, uint8_t preambleLen = 8);
324 
-
336  int16_t transmit(String& str, const char* destCallsign, uint8_t destSSID = 0x00);
-
337 
-
349  int16_t transmit(const char* str, const char* destCallsign, uint8_t destSSID = 0x00);
-
350 
-
358  int16_t sendFrame(AX25Frame* frame);
-
359 
-
360 #if !defined(RADIOLIB_GODMODE)
-
361  private:
-
362 #endif
-
363  friend class APRSClient;
-
364 
-
365  PhysicalLayer* _phy;
-
366  #if !defined(RADIOLIB_EXCLUDE_AFSK)
-
367  AFSKClient* _audio;
-
368  uint32_t _afskMark;
-
369  uint32_t _afskSpace;
-
370  uint32_t _afskLen;
-
371  #endif
-
372 
-
373  char _srcCallsign[RADIOLIB_AX25_MAX_CALLSIGN_LEN + 1] = {0, 0, 0, 0, 0, 0, 0};
-
374  uint8_t _srcSSID = 0;
-
375  uint16_t _preambleLen = 0;
-
376 
-
377  static uint16_t getFrameCheckSequence(uint8_t* buff, size_t len);
+
325  #if defined(RADIOLIB_BUILD_ARDUINO)
+
337  int16_t transmit(String& str, const char* destCallsign, uint8_t destSSID = 0x00);
+
338  #endif
+
339 
+
351  int16_t transmit(const char* str, const char* destCallsign, uint8_t destSSID = 0x00);
+
352 
+
360  int16_t sendFrame(AX25Frame* frame);
+
361 
+
362 #if !defined(RADIOLIB_GODMODE)
+
363  private:
+
364 #endif
+
365  friend class APRSClient;
+
366 
+
367  PhysicalLayer* _phy;
+
368  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
369  AFSKClient* _audio;
+
370  uint32_t _afskMark;
+
371  uint32_t _afskSpace;
+
372  uint32_t _afskLen;
+
373  #endif
+
374 
+
375  char _srcCallsign[RADIOLIB_AX25_MAX_CALLSIGN_LEN + 1] = {0, 0, 0, 0, 0, 0, 0};
+
376  uint8_t _srcSSID = 0;
+
377  uint16_t _preambleLen = 0;
378 
-
379  void getCallsign(char* buff);
-
380  uint8_t getSSID();
-
381 };
-
382 
-
383 #endif
+
379  static uint16_t getFrameCheckSequence(uint8_t* buff, size_t len);
+
380 
+
381  void getCallsign(char* buff);
+
382  uint8_t getSSID();
+
383 };
384 
385 #endif
+
386 
+
387 #endif
Client for audio-based transmissions. Requires Arduino tone() function, and a module capable of direc...
Definition: AFSK.h:17
Client for APRS communication.
Definition: APRS.h:66
Client for AX25 communication.
Definition: AX25.h:279
-
int16_t sendFrame(AX25Frame *frame)
Transmit arbitrary AX.25 frame.
Definition: AX25.cpp:212
+
int16_t sendFrame(AX25Frame *frame)
Transmit arbitrary AX.25 frame.
Definition: AX25.cpp:214
int16_t begin(const char *srcCallsign, uint8_t srcSSID=0x00, uint8_t preambleLen=8)
Initialization method.
Definition: AX25.cpp:177
int16_t setCorrection(int16_t mark, int16_t space, float length=1.0f)
Set AFSK tone correction offset. On some platforms, this is required to get the audio produced by the...
Definition: AX25.cpp:169
+
int16_t transmit(const char *str, const char *destCallsign, uint8_t destSSID=0x00)
Transmit unnumbered information (UI) frame.
Definition: AX25.cpp:203
AX25Client(PhysicalLayer *phy)
Constructor for 2-FSK mode.
Definition: AX25.cpp:153
-
int16_t transmit(String &str, const char *destCallsign, uint8_t destSSID=0x00)
Transmit unnumbered information (UI) frame.
Definition: AX25.cpp:197
Abstraction of AX.25 frame format.
Definition: AX25.h:88
void setSendSequence(uint8_t seqNumber)
Method to set send sequence number.
Definition: AX25.cpp:149
AX25Frame(const char *destCallsign, uint8_t destSSID, const char *srcCallsign, uint8_t srcSSID, uint8_t control)
Overloaded constructor, for frames without info field.
Definition: AX25.cpp:4
diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html index a67928e2..615bf03b 100644 --- a/_build_opt_8h_source.html +++ b/_build_opt_8h_source.html @@ -1128,14 +1128,14 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html',''); initRe
1040 
1041 #if defined(RADIOLIB_DEBUG)
1042  #if defined(RADIOLIB_BUILD_ARDUINO)
-
1043  #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
-
1044  #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
+
1043  #define RADIOLIB_DEBUG_PRINT(...) Module::serialPrintf(__VA_ARGS__)
+
1044  #define RADIOLIB_DEBUG_PRINTLN(M, ...) Module::serialPrintf(M "\n", ##__VA_ARGS__)
1045  #else
1046  #if !defined(RADIOLIB_DEBUG_PRINT)
-
1047  #define RADIOLIB_DEBUG_PRINT(...) { frintf(RADIOLIB_DEBUG_PORT, __VA_ARGS__); }
+
1047  #define RADIOLIB_DEBUG_PRINT(...) fprintf(RADIOLIB_DEBUG_PORT, __VA_ARGS__)
1048  #endif
1049  #if !defined(RADIOLIB_DEBUG_PRINTLN)
-
1050  #define RADIOLIB_DEBUG_PRINTLN(...) { printf(RADIOLIB_DEBUG_PORT, __VA_ARGS__ "\n"); }
+
1050  #define RADIOLIB_DEBUG_PRINTLN(M, ...) fprintf(RADIOLIB_DEBUG_PORT, M "\n", ##__VA_ARGS__)
1051  #endif
1052  #endif
1053 #else
diff --git a/_c_c1101_8h_source.html b/_c_c1101_8h_source.html index fb106e9d..90775ed7 100644 --- a/_c_c1101_8h_source.html +++ b/_c_c1101_8h_source.html @@ -600,10 +600,10 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
517 class CC1101: public PhysicalLayer {
518  public:
519  // introduce PhysicalLayer overloads
-
520  using PhysicalLayer::transmit;
-
521  using PhysicalLayer::receive;
-
522  using PhysicalLayer::startTransmit;
-
523  using PhysicalLayer::readData;
+
520  using PhysicalLayer::transmit;
+
521  using PhysicalLayer::receive;
+
522  using PhysicalLayer::startTransmit;
+
523  using PhysicalLayer::readData;
524 
530  CC1101(Module* module);
531 
@@ -619,9 +619,9 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
558  int8_t power = RADIOLIB_CC1101_DEFAULT_POWER,
559  uint8_t preambleLength = RADIOLIB_CC1101_DEFAULT_PREAMBLELEN);
560 
-
573  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
573  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
574 
-
585  int16_t receive(uint8_t* data, size_t len) override;
+
585  int16_t receive(uint8_t* data, size_t len) override;
586 
592  int16_t standby() override;
593 
@@ -647,7 +647,7 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
664 
668  void clearGdo2Action();
669 
-
682  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
682  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
683 
689  int16_t finishTransmit() override;
690 
@@ -655,7 +655,7 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
697 
711  int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
712 
-
723  int16_t readData(uint8_t* data, size_t len) override;
+
723  int16_t readData(uint8_t* data, size_t len) override;
724 
725  // configuration methods
726 
@@ -769,61 +769,61 @@ $(document).ready(function(){initNavTree('_c_c1101_8h_source.html',''); initResi
1045 
1046 #endif
Control class for CC1101 module.
Definition: CC1101.h:517
-
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: CC1101.cpp:915
-
int16_t setFrequencyDeviation(float freqDev) override
Sets frequency deviation. Allowed values range from 1.587 to 380.8 kHz.
Definition: CC1101.cpp:515
-
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: CC1101.cpp:783
-
int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: CC1101.cpp:953
-
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: CC1101.cpp:174
-
int16_t setPromiscuousMode(bool promiscuous=true)
Set modem in "sniff" mode: no packet filtering (e.g., no preamble, sync word, address,...
Definition: CC1101.cpp:832
-
int16_t getChipVersion()
Read version SPI register. Should return CC1101_VERSION_LEGACY (0x04) or CC1101_VERSION_CURRENT (0x14...
Definition: CC1101.cpp:939
-
int16_t setRxBandwidth(float rxBw)
Sets receiver bandwidth. Allowed values range from 58.0 to 812.0 kHz.
Definition: CC1101.cpp:494
-
int16_t packetMode()
Stops direct mode. It is required to call this method to switch from direct transmissions to packet-b...
Definition: CC1101.cpp:225
-
int16_t setSyncWord(uint8_t syncH, uint8_t syncL, uint8_t maxErrBits=0, bool requireCarrierSense=false)
Sets 16-bit sync word as a two byte value.
Definition: CC1101.cpp:666
-
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: CC1101.cpp:911
-
float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: CC1101.cpp:756
-
int16_t disableSyncWordFiltering(bool requireCarrierSense=false)
Disable preamble and sync word filtering and generation.
Definition: CC1101.cpp:818
-
int16_t variablePacketLengthMode(uint8_t maxLen=RADIOLIB_CC1101_MAX_PACKET_LENGTH)
Set modem in variable packet length mode.
Definition: CC1101.cpp:801
-
void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode.
Definition: CC1101.cpp:944
-
uint8_t getLQI() const
Gets LQI (Link Quality Indicator) of the last received packet.
Definition: CC1101.cpp:779
-
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: CC1101.cpp:948
+
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: CC1101.cpp:905
+
int16_t setFrequencyDeviation(float freqDev) override
Sets frequency deviation. Allowed values range from 1.587 to 380.8 kHz.
Definition: CC1101.cpp:505
+
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: CC1101.cpp:773
+
int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: CC1101.cpp:943
+
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: CC1101.cpp:164
+
int16_t setPromiscuousMode(bool promiscuous=true)
Set modem in "sniff" mode: no packet filtering (e.g., no preamble, sync word, address,...
Definition: CC1101.cpp:822
+
int16_t getChipVersion()
Read version SPI register. Should return CC1101_VERSION_LEGACY (0x04) or CC1101_VERSION_CURRENT (0x14...
Definition: CC1101.cpp:929
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t setRxBandwidth(float rxBw)
Sets receiver bandwidth. Allowed values range from 58.0 to 812.0 kHz.
Definition: CC1101.cpp:484
+
int16_t packetMode()
Stops direct mode. It is required to call this method to switch from direct transmissions to packet-b...
Definition: CC1101.cpp:215
+
int16_t setSyncWord(uint8_t syncH, uint8_t syncL, uint8_t maxErrBits=0, bool requireCarrierSense=false)
Sets 16-bit sync word as a two byte value.
Definition: CC1101.cpp:656
+
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: CC1101.cpp:901
+
float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: CC1101.cpp:746
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t disableSyncWordFiltering(bool requireCarrierSense=false)
Disable preamble and sync word filtering and generation.
Definition: CC1101.cpp:808
+
int16_t variablePacketLengthMode(uint8_t maxLen=RADIOLIB_CC1101_MAX_PACKET_LENGTH)
Set modem in variable packet length mode.
Definition: CC1101.cpp:791
+
void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode.
Definition: CC1101.cpp:934
+
uint8_t getLQI() const
Gets LQI (Link Quality Indicator) of the last received packet.
Definition: CC1101.cpp:769
+
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: CC1101.cpp:938
CC1101(Module *module)
Default constructor.
Definition: CC1101.cpp:4
-
int16_t setNodeAddress(uint8_t nodeAddr, uint8_t numBroadcastAddrs=0)
Sets node and broadcast addresses. Calling this method will also enable address filtering.
Definition: CC1101.cpp:706
-
int16_t enableSyncWordFiltering(uint8_t maxErrBits=0, bool requireCarrierSense=false)
Enable sync word filtering and generation.
Definition: CC1101.cpp:805
-
int16_t standby() override
Sets the module to standby mode.
Definition: CC1101.cpp:160
-
uint8_t randomByte()
Get one truly random byte from RSSI noise.
Definition: CC1101.cpp:919
-
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in bands 300.0 to 348.0 MHz, 387.0 to 464....
Definition: CC1101.cpp:448
-
int16_t disableAddressFiltering()
Disables address filtering. Calling this method will also erase previously set addresses.
Definition: CC1101.cpp:717
-
int16_t receiveDirectAsync()
Starts asynchronous direct mode reception.
Definition: CC1101.cpp:208
-
int16_t setBitRate(float br)
Sets bit rate. Allowed values range from 0.025 to 600.0 kbps.
Definition: CC1101.cpp:474
-
int16_t setCrcFiltering(bool crcOn=true)
Enable CRC filtering and generation.
Definition: CC1101.cpp:822
-
int16_t receiveDirect() override
Starts direct mode reception.
Definition: CC1101.cpp:204
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Allowed values are RADIOLIB_ENCODING_NRZ, RADIOLIB_ENCODING_MANCHESTER,...
Definition: CC1101.cpp:887
-
void clearGdo0Action()
Clears interrupt service routine to call when GDO0 activates.
Definition: CC1101.cpp:236
-
int16_t getFrequencyDeviation(float *freqDev)
Gets frequency deviation.
Definition: CC1101.cpp:542
-
int16_t setOutputPower(int8_t power)
Sets output power. Allowed values are -30, -20, -15, -10, 0, 5, 7 or 10 dBm.
Definition: CC1101.cpp:567
-
void setGdo2Action(void(*func)(void), RADIOLIB_INTERRUPT_STATUS dir=FALLING)
Sets interrupt service routine to call when GDO2 activates.
Definition: CC1101.cpp:240
-
void clearGdo2Action()
Clears interrupt service routine to call when GDO0 activates.
Definition: CC1101.cpp:248
-
int16_t setPreambleLength(uint8_t preambleLength)
Sets preamble length.
Definition: CC1101.cpp:671
-
int16_t fixedPacketLengthMode(uint8_t len=RADIOLIB_CC1101_MAX_PACKET_LENGTH)
Set modem in fixed packet length mode.
Definition: CC1101.cpp:797
-
int16_t setDataShaping(uint8_t sh) override
Sets Gaussian filter bandwidth-time product that will be used for data shaping. Allowed value is RADI...
Definition: CC1101.cpp:868
-
void setGdo0Action(void(*func)(void), RADIOLIB_INTERRUPT_STATUS dir=RISING)
Sets interrupt service routine to call when GDO0 activates.
Definition: CC1101.cpp:232
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
+
int16_t setNodeAddress(uint8_t nodeAddr, uint8_t numBroadcastAddrs=0)
Sets node and broadcast addresses. Calling this method will also enable address filtering.
Definition: CC1101.cpp:696
+
int16_t enableSyncWordFiltering(uint8_t maxErrBits=0, bool requireCarrierSense=false)
Enable sync word filtering and generation.
Definition: CC1101.cpp:795
+
int16_t standby() override
Sets the module to standby mode.
Definition: CC1101.cpp:150
+
uint8_t randomByte()
Get one truly random byte from RSSI noise.
Definition: CC1101.cpp:909
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in bands 300.0 to 348.0 MHz, 387.0 to 464....
Definition: CC1101.cpp:438
+
int16_t disableAddressFiltering()
Disables address filtering. Calling this method will also erase previously set addresses.
Definition: CC1101.cpp:707
+
int16_t receiveDirectAsync()
Starts asynchronous direct mode reception.
Definition: CC1101.cpp:198
+
int16_t setBitRate(float br)
Sets bit rate. Allowed values range from 0.025 to 600.0 kbps.
Definition: CC1101.cpp:464
+
int16_t setCrcFiltering(bool crcOn=true)
Enable CRC filtering and generation.
Definition: CC1101.cpp:812
+
int16_t receiveDirect() override
Starts direct mode reception.
Definition: CC1101.cpp:194
+
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Allowed values are RADIOLIB_ENCODING_NRZ, RADIOLIB_ENCODING_MANCHESTER,...
Definition: CC1101.cpp:877
+
void clearGdo0Action()
Clears interrupt service routine to call when GDO0 activates.
Definition: CC1101.cpp:226
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
+
int16_t getFrequencyDeviation(float *freqDev)
Gets frequency deviation.
Definition: CC1101.cpp:532
+
int16_t setOutputPower(int8_t power)
Sets output power. Allowed values are -30, -20, -15, -10, 0, 5, 7 or 10 dBm.
Definition: CC1101.cpp:557
+
void setGdo2Action(void(*func)(void), RADIOLIB_INTERRUPT_STATUS dir=FALLING)
Sets interrupt service routine to call when GDO2 activates.
Definition: CC1101.cpp:230
+
void clearGdo2Action()
Clears interrupt service routine to call when GDO0 activates.
Definition: CC1101.cpp:238
+
int16_t setPreambleLength(uint8_t preambleLength)
Sets preamble length.
Definition: CC1101.cpp:661
+
int16_t fixedPacketLengthMode(uint8_t len=RADIOLIB_CC1101_MAX_PACKET_LENGTH)
Set modem in fixed packet length mode.
Definition: CC1101.cpp:787
+
int16_t setDataShaping(uint8_t sh) override
Sets Gaussian filter bandwidth-time product that will be used for data shaping. Allowed value is RADI...
Definition: CC1101.cpp:858
+
void setGdo0Action(void(*func)(void), RADIOLIB_INTERRUPT_STATUS dir=RISING)
Sets interrupt service routine to call when GDO0 activates.
Definition: CC1101.cpp:222
int16_t begin(float freq=RADIOLIB_CC1101_DEFAULT_FREQ, float br=RADIOLIB_CC1101_DEFAULT_BR, float freqDev=RADIOLIB_CC1101_DEFAULT_FREQDEV, float rxBw=RADIOLIB_CC1101_DEFAULT_RXBW, int8_t power=RADIOLIB_CC1101_DEFAULT_POWER, uint8_t preambleLength=RADIOLIB_CC1101_DEFAULT_PREAMBLELEN)
Initialization method.
Definition: CC1101.cpp:12
-
bool getPromiscuousMode()
Get whether the modem is in promiscuous mode: no packet filtering (e.g., no preamble,...
Definition: CC1101.cpp:864
-
int16_t transmitDirectAsync(uint32_t frf=0)
Starts asynchronous direct mode transmission.
Definition: CC1101.cpp:178
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: CC1101.cpp:329
-
int16_t startReceive()
Interrupt-driven receive method. GDO0 will be activated when full packet is received.
Definition: CC1101.cpp:339
-
int16_t setOOK(bool enableOOK)
Enables/disables OOK modulation instead of FSK.
Definition: CC1101.cpp:727
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
bool getPromiscuousMode()
Get whether the modem is in promiscuous mode: no packet filtering (e.g., no preamble,...
Definition: CC1101.cpp:854
+
int16_t transmitDirectAsync(uint32_t frf=0)
Starts asynchronous direct mode transmission.
Definition: CC1101.cpp:168
+
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: CC1101.cpp:319
+
int16_t startReceive()
Interrupt-driven receive method. GDO0 will be activated when full packet is received.
Definition: CC1101.cpp:329
+
int16_t setOOK(bool enableOOK)
Enables/disables OOK modulation instead of FSK.
Definition: CC1101.cpp:717
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:28
static const size_t RFSWITCH_MAX_PINS
The maximum number of pins supported by the RF switch code.
Definition: Module.h:39
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
Definition: Module.h:46
diff --git a/_hellschreiber_8h_source.html b/_hellschreiber_8h_source.html index 2f345561..3a26a855 100644 --- a/_hellschreiber_8h_source.html +++ b/_hellschreiber_8h_source.html @@ -189,51 +189,55 @@ $(document).ready(function(){initNavTree('_hellschreiber_8h_source.html',''); in
135  size_t write(uint8_t* buff, size_t len);
136  size_t write(uint8_t b);
137 
-
138  size_t print(__FlashStringHelper*);
-
139  size_t print(const String &);
-
140  size_t print(const char[]);
-
141  size_t print(char);
-
142  size_t print(unsigned char, int = DEC);
-
143  size_t print(int, int = DEC);
-
144  size_t print(unsigned int, int = DEC);
-
145  size_t print(long, int = DEC);
-
146  size_t print(unsigned long, int = DEC);
-
147  size_t print(double, int = 2);
-
148 
-
149  size_t println(void);
-
150  size_t println(__FlashStringHelper*);
-
151  size_t println(const String &);
-
152  size_t println(const char[]);
-
153  size_t println(char);
-
154  size_t println(unsigned char, int = DEC);
-
155  size_t println(int, int = DEC);
-
156  size_t println(unsigned int, int = DEC);
-
157  size_t println(long, int = DEC);
-
158  size_t println(unsigned long, int = DEC);
-
159  size_t println(double, int = 2);
-
160 
-
161 #if !defined(RADIOLIB_GODMODE)
-
162  private:
-
163 #endif
-
164  PhysicalLayer* _phy;
-
165  #if !defined(RADIOLIB_EXCLUDE_AFSK)
-
166  AFSKClient* _audio;
-
167  #endif
-
168 
-
169  uint32_t _base = 0, _baseHz = 0;
-
170  uint32_t _pixelDuration = 0;
-
171  bool _inv = false;
+
138  #if defined(RADIOLIB_BUILD_ARDUINO)
+
139  size_t print(__FlashStringHelper*);
+
140  size_t print(const String &);
+
141  #endif
+
142  size_t print(const char[]);
+
143  size_t print(char);
+
144  size_t print(unsigned char, int = DEC);
+
145  size_t print(int, int = DEC);
+
146  size_t print(unsigned int, int = DEC);
+
147  size_t print(long, int = DEC);
+
148  size_t print(unsigned long, int = DEC);
+
149  size_t print(double, int = 2);
+
150 
+
151  size_t println(void);
+
152  #if defined(RADIOLIB_BUILD_ARDUINO)
+
153  size_t println(__FlashStringHelper*);
+
154  size_t println(const String &);
+
155  #endif
+
156  size_t println(const char[]);
+
157  size_t println(char);
+
158  size_t println(unsigned char, int = DEC);
+
159  size_t println(int, int = DEC);
+
160  size_t println(unsigned int, int = DEC);
+
161  size_t println(long, int = DEC);
+
162  size_t println(unsigned long, int = DEC);
+
163  size_t println(double, int = 2);
+
164 
+
165 #if !defined(RADIOLIB_GODMODE)
+
166  private:
+
167 #endif
+
168  PhysicalLayer* _phy;
+
169  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
170  AFSKClient* _audio;
+
171  #endif
172 
-
173  size_t printNumber(unsigned long, uint8_t);
-
174  size_t printFloat(double, uint8_t);
-
175 
-
176  int16_t transmitDirect(uint32_t freq = 0, uint32_t freqHz = 0);
-
177  int16_t standby();
-
178 };
+
173  uint32_t _base = 0, _baseHz = 0;
+
174  uint32_t _pixelDuration = 0;
+
175  bool _inv = false;
+
176 
+
177  size_t printNumber(unsigned long, uint8_t);
+
178  size_t printFloat(double, uint8_t);
179 
-
180 #endif
-
181 
-
182 #endif
+
180  int16_t transmitDirect(uint32_t freq = 0, uint32_t freqHz = 0);
+
181  int16_t standby();
+
182 };
+
183 
+
184 #endif
+
185 
+
186 #endif
Client for audio-based transmissions. Requires Arduino tone() function, and a module capable of direc...
Definition: AFSK.h:17
Client for Hellschreiber transmissions.
Definition: Hellschreiber.h:89
void setInversion(bool invert)
Invert text color.
Definition: Hellschreiber.cpp:55
diff --git a/_module_8h_source.html b/_module_8h_source.html index 1c505309..db034705 100644 --- a/_module_8h_source.html +++ b/_module_8h_source.html @@ -272,126 +272,130 @@ $(document).ready(function(){initNavTree('_module_8h_source.html',''); initResiz
697 
705  void regdump(uint16_t start, size_t len);
706 
-
707 #if !defined(RADIOLIB_GODMODE)
-
708  private:
-
709 #endif
+
707  #if defined(RADIOLIB_DEBUG) and defined(RADIOLIB_BUILD_ARDUINO)
+
708  static size_t serialPrintf(const char* format, ...);
+
709  #endif
710 
-
711  // pins
-
712  RADIOLIB_PIN_TYPE _cs = RADIOLIB_NC;
-
713  RADIOLIB_PIN_TYPE _irq = RADIOLIB_NC;
-
714  RADIOLIB_PIN_TYPE _rst = RADIOLIB_NC;
-
715  RADIOLIB_PIN_TYPE _gpio = RADIOLIB_NC;
-
716 
-
717  // SPI interface (Arduino only)
-
718  #if defined(RADIOLIB_BUILD_ARDUINO)
-
719  SPIClass* _spi = NULL;
-
720  SPISettings _spiSettings = RADIOLIB_DEFAULT_SPI_SETTINGS;
-
721  bool _initInterface = false;
-
722  #endif
-
723 
-
724  // RF switch pins and table
-
725  RADIOLIB_PIN_TYPE _rfSwitchPins[RFSWITCH_MAX_PINS] = { RADIOLIB_NC, RADIOLIB_NC, RADIOLIB_NC };
-
726  const RfSwitchMode_t *_rfSwitchTable = nullptr;
+
711 #if !defined(RADIOLIB_GODMODE)
+
712  private:
+
713 #endif
+
714 
+
715  // pins
+
716  RADIOLIB_PIN_TYPE _cs = RADIOLIB_NC;
+
717  RADIOLIB_PIN_TYPE _irq = RADIOLIB_NC;
+
718  RADIOLIB_PIN_TYPE _rst = RADIOLIB_NC;
+
719  RADIOLIB_PIN_TYPE _gpio = RADIOLIB_NC;
+
720 
+
721  // SPI interface (Arduino only)
+
722  #if defined(RADIOLIB_BUILD_ARDUINO)
+
723  SPIClass* _spi = NULL;
+
724  SPISettings _spiSettings = RADIOLIB_DEFAULT_SPI_SETTINGS;
+
725  bool _initInterface = false;
+
726  #endif
727 
-
728  #if defined(RADIOLIB_INTERRUPT_TIMING)
-
729  uint32_t _prevTimingLen = 0;
-
730  #endif
+
728  // RF switch pins and table
+
729  RADIOLIB_PIN_TYPE _rfSwitchPins[RFSWITCH_MAX_PINS] = { RADIOLIB_NC, RADIOLIB_NC, RADIOLIB_NC };
+
730  const RfSwitchMode_t *_rfSwitchTable = nullptr;
731 
-
732  // hardware abstraction layer callbacks
-
733  // this is placed at the end of Module class because the callback generator macros
-
734  // screw with the private/public access specifiers
-
735  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_PIN_MODE);
-
736  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DIGITAL_WRITE);
-
737  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DIGITAL_READ);
-
738  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_TONE);
-
739  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_NO_TONE);
-
740  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_ATTACH_INTERRUPT);
-
741  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DETACH_INTERRUPT);
-
742  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_YIELD);
-
743  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DELAY);
-
744  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DELAY_MICROSECONDS);
-
745  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_MILLIS);
-
746  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_MICROS);
-
747  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_PULSE_IN);
-
748 
-
749  #if defined(RADIOLIB_BUILD_ARDUINO)
-
750  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_BEGIN);
-
751  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_BEGIN_TRANSACTION);
-
752  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_TRANSFER);
-
753  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_END_TRANSACTION);
-
754  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_END);
-
755  #else
-
756  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_BEGIN);
-
757  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_BEGIN_TRANSACTION);
-
758  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_TRANSFER);
-
759  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_END_TRANSACTION);
-
760  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_END);
-
761  #endif
-
762 };
-
763 
-
764 #endif
+
732  #if defined(RADIOLIB_INTERRUPT_TIMING)
+
733  uint32_t _prevTimingLen = 0;
+
734  #endif
+
735 
+
736  // hardware abstraction layer callbacks
+
737  // this is placed at the end of Module class because the callback generator macros
+
738  // screw with the private/public access specifiers
+
739  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_PIN_MODE);
+
740  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DIGITAL_WRITE);
+
741  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DIGITAL_READ);
+
742  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_TONE);
+
743  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_NO_TONE);
+
744  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_ATTACH_INTERRUPT);
+
745  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DETACH_INTERRUPT);
+
746  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_YIELD);
+
747  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DELAY);
+
748  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_DELAY_MICROSECONDS);
+
749  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_MILLIS);
+
750  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_MICROS);
+
751  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_PULSE_IN);
+
752 
+
753  #if defined(RADIOLIB_BUILD_ARDUINO)
+
754  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_BEGIN);
+
755  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_BEGIN_TRANSACTION);
+
756  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_TRANSFER);
+
757  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_END_TRANSACTION);
+
758  RADIOLIB_GENERATE_CALLBACK_SPI(RADIOLIB_CB_ARGS_SPI_END);
+
759  #else
+
760  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_BEGIN);
+
761  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_BEGIN_TRANSACTION);
+
762  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_TRANSFER);
+
763  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_END_TRANSACTION);
+
764  RADIOLIB_GENERATE_CALLBACK(RADIOLIB_CB_ARGS_SPI_END);
+
765  #endif
+
766 };
+
767 
+
768 #endif
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:28
-
void endTransaction()
Arduino core SPI endTransaction override.
Definition: Module.cpp:657
+
void endTransaction()
Arduino core SPI endTransaction override.
Definition: Module.cpp:643
int16_t SPIgetRegValue(uint16_t reg, uint8_t msb=7, uint8_t lsb=0)
SPI read method that automatically masks unused bits. This method is the preferred SPI read mechanism...
Definition: Module.cpp:130
uint8_t SPIstatusCommand
Basic SPI status read command. Defaults to 0x00.
Definition: Module.h:154
int16_t SPIsetRegValue(uint16_t reg, uint8_t value, uint8_t msb=7, uint8_t lsb=0, uint8_t checkInterval=2, uint8_t checkMask=0xFF)
Overwrite-safe SPI write method with verification. This method is the preferred SPI write mechanism.
Definition: Module.cpp:140
static const size_t RFSWITCH_MAX_PINS
The maximum number of pins supported by the RF switch code.
Definition: Module.h:39
-
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: Module.cpp:773
+
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: Module.cpp:786
Module(RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq, RADIOLIB_PIN_TYPE rst, RADIOLIB_PIN_TYPE gpio=RADIOLIB_NC)
Default constructor.
Definition: Module.cpp:81
-
uint32_t pulseIn(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_STATUS state, uint32_t timeout)
Arduino core pulseIn override.
Definition: Module.cpp:617
-
void delayMicroseconds(uint32_t us)
Arduino core delayMicroseconds override.
Definition: Module.cpp:596
-
static uint16_t flipBits16(uint16_t i)
Function to reflect bits within an integer.
Definition: Module.cpp:708
-
uint32_t millis()
Arduino core millis override.
Definition: Module.cpp:603
-
void yield()
Arduino core yield override.
Definition: Module.cpp:580
-
void tone(RADIOLIB_PIN_TYPE pin, uint16_t value, uint32_t duration=0)
Arduino core tone override that checks RADIOLIB_NC as alias for unused pin and RADIOLIB_TONE_UNSUPPOR...
Definition: Module.cpp:504
+
uint32_t pulseIn(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_STATUS state, uint32_t timeout)
Arduino core pulseIn override.
Definition: Module.cpp:603
+
void delayMicroseconds(uint32_t us)
Arduino core delayMicroseconds override.
Definition: Module.cpp:582
+
static uint16_t flipBits16(uint16_t i)
Function to reflect bits within an integer.
Definition: Module.cpp:694
+
uint32_t millis()
Arduino core millis override.
Definition: Module.cpp:589
+
void yield()
Arduino core yield override.
Definition: Module.cpp:566
+
void tone(RADIOLIB_PIN_TYPE pin, uint16_t value, uint32_t duration=0)
Arduino core tone override that checks RADIOLIB_NC as alias for unused pin and RADIOLIB_TONE_UNSUPPOR...
Definition: Module.cpp:490
bool SPIstreamType
Whether the SPI interface is stream-type (e.g. SX126x) or register-type (e.g. SX127x)....
Definition: Module.h:165
-
void beginTransaction()
Arduino core SPI beginTransaction override.
Definition: Module.cpp:635
-
void SPIwriteRegister(uint16_t reg, uint8_t data)
SPI basic write method. Use of this method is reserved for special cases, SPIsetRegValue should be us...
Definition: Module.cpp:218
+
void beginTransaction()
Arduino core SPI beginTransaction override.
Definition: Module.cpp:621
+
void SPIwriteRegister(uint16_t reg, uint8_t data)
SPI basic write method. Use of this method is reserved for special cases, SPIsetRegValue should be us...
Definition: Module.cpp:220
void term()
Terminate low-level module control.
Definition: Module.cpp:117
-
uint8_t transfer(uint8_t b)
Arduino core SPI transfer override.
Definition: Module.cpp:646
+
uint8_t transfer(uint8_t b)
Arduino core SPI transfer override.
Definition: Module.cpp:632
uint8_t SPInopCommand
Basic SPI no-operation command. Defaults to 0x00.
Definition: Module.h:149
-
void digitalWrite(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_STATUS value)
Arduino core digitalWrite override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:485
-
void waitForMicroseconds(uint32_t start, uint32_t len)
Wait for time to elapse, either using the microsecond timer, or the TimerFlag. Note that in interrupt...
Definition: Module.cpp:460
+
void digitalWrite(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_STATUS value)
Arduino core digitalWrite override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:471
+
void waitForMicroseconds(uint32_t start, uint32_t len)
Wait for time to elapse, either using the microsecond timer, or the TimerFlag. Note that in interrupt...
Definition: Module.cpp:446
Module & operator=(const Module &mod)
Overload for assignment operator.
Definition: Module.cpp:96
-
const RfSwitchMode_t * findRfSwitchMode(uint8_t mode) const
Find a mode in the RfSwitchTable.
Definition: Module.cpp:795
+
const RfSwitchMode_t * findRfSwitchMode(uint8_t mode) const
Find a mode in the RfSwitchTable.
Definition: Module.cpp:808
OpMode_t
Definition: Module.h:58
@ MODE_TX
Definition: Module.h:68
@ MODE_IDLE
Definition: Module.h:64
@ MODE_RX
Definition: Module.h:66
@ MODE_END_OF_TABLE
Definition: Module.h:62
-
int16_t SPIcheckStream()
Method to check the result of last SPI stream transfer.
Definition: Module.cpp:314
-
void detachInterrupt(RADIOLIB_PIN_TYPE interruptNum)
Arduino core detachInterrupt override.
Definition: Module.cpp:573
+
int16_t SPIcheckStream()
Method to check the result of last SPI stream transfer.
Definition: Module.cpp:312
+
void detachInterrupt(RADIOLIB_PIN_TYPE interruptNum)
Arduino core detachInterrupt override.
Definition: Module.cpp:559
int16_t SPIstreamError
The last recorded SPI stream error.
Definition: Module.h:170
-
RADIOLIB_PIN_STATUS digitalRead(RADIOLIB_PIN_TYPE pin)
Arduino core digitalWrite override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:492
-
int16_t SPIwriteStream(uint8_t cmd, uint8_t *data, size_t numBytes, bool waitForGpio=true, bool verify=true)
Method to perform a write transaction with SPI stream.
Definition: Module.cpp:297
-
void SPItransfer(uint8_t cmd, uint16_t reg, uint8_t *dataOut, uint8_t *dataIn, size_t numBytes)
SPI single transfer method.
Definition: Module.cpp:227
-
static uint8_t flipBits(uint8_t b)
Function to reflect bits within a byte.
Definition: Module.cpp:701
+
RADIOLIB_PIN_STATUS digitalRead(RADIOLIB_PIN_TYPE pin)
Arduino core digitalWrite override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:478
+
int16_t SPIwriteStream(uint8_t cmd, uint8_t *data, size_t numBytes, bool waitForGpio=true, bool verify=true)
Method to perform a write transaction with SPI stream.
Definition: Module.cpp:295
+
void SPItransfer(uint8_t cmd, uint16_t reg, uint8_t *dataOut, uint8_t *dataIn, size_t numBytes)
SPI single transfer method.
Definition: Module.cpp:229
+
static uint8_t flipBits(uint8_t b)
Function to reflect bits within a byte.
Definition: Module.cpp:687
uint8_t SPIreadCommand
Basic SPI read command. Defaults to 0x00.
Definition: Module.h:139
-
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[RFSWITCH_MAX_PINS], const RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: Module.cpp:788
-
void SPIreadRegisterBurst(uint16_t reg, size_t numBytes, uint8_t *inBytes)
SPI burst read method.
Definition: Module.cpp:189
+
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[RFSWITCH_MAX_PINS], const RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: Module.cpp:801
+
void SPIreadRegisterBurst(uint16_t reg, size_t numBytes, uint8_t *inBytes)
SPI burst read method.
Definition: Module.cpp:191
RADIOLIB_PIN_TYPE getIrq() const
Access method to get the pin number of interrupt/GPIO.
Definition: Module.h:419
-
void attachInterrupt(RADIOLIB_PIN_TYPE interruptNum, void(*userFunc)(void), RADIOLIB_INTERRUPT_STATUS mode)
Arduino core attachInterrupt override.
Definition: Module.cpp:566
+
void attachInterrupt(RADIOLIB_PIN_TYPE interruptNum, void(*userFunc)(void), RADIOLIB_INTERRUPT_STATUS mode)
Arduino core attachInterrupt override.
Definition: Module.cpp:552
int16_t(* SPIparseStatusCb_t)(uint8_t in)
SPI status parsing callback typedef.
Definition: Module.h:175
-
uint8_t SPIreadRegister(uint16_t reg)
SPI basic read method. Use of this method is reserved for special cases, SPIgetRegValue should be use...
Definition: Module.cpp:198
-
void end()
Arduino core SPI end override.
Definition: Module.cpp:668
-
int16_t SPIreadStream(uint8_t cmd, uint8_t *data, size_t numBytes, bool waitForGpio=true, bool verify=true)
Method to perform a read transaction with SPI stream.
Definition: Module.cpp:280
-
void regdump(uint16_t start, size_t len)
Function to dump device registers as hex into the debug port.
Definition: Module.cpp:760
+
uint8_t SPIreadRegister(uint16_t reg)
SPI basic read method. Use of this method is reserved for special cases, SPIgetRegValue should be use...
Definition: Module.cpp:200
+
void end()
Arduino core SPI end override.
Definition: Module.cpp:654
+
int16_t SPIreadStream(uint8_t cmd, uint8_t *data, size_t numBytes, bool waitForGpio=true, bool verify=true)
Method to perform a read transaction with SPI stream.
Definition: Module.cpp:278
+
void regdump(uint16_t start, size_t len)
Function to dump device registers as hex into the debug port.
Definition: Module.cpp:747
uint8_t SPIaddrWidth
SPI address width. Defaults to 8, currently only supports 8 and 16-bit addresses.
Definition: Module.h:159
-
int16_t SPItransferStream(uint8_t *cmd, uint8_t cmdLen, bool write, uint8_t *dataOut, uint8_t *dataIn, size_t numBytes, bool waitForGpio, uint32_t timeout)
SPI single transfer method for modules with stream-type SPI interface (SX126x, SX128x etc....
Definition: Module.cpp:334
-
static void hexdump(uint8_t *data, size_t len, uint32_t offset=0, uint8_t width=1, bool be=false)
Function to dump data as hex into the debug port.
Definition: Module.cpp:716
+
int16_t SPItransferStream(uint8_t *cmd, uint8_t cmdLen, bool write, uint8_t *dataOut, uint8_t *dataIn, size_t numBytes, bool waitForGpio, uint32_t timeout)
SPI single transfer method for modules with stream-type SPI interface (SX126x, SX128x etc....
Definition: Module.cpp:332
+
static void hexdump(uint8_t *data, size_t len, uint32_t offset=0, uint8_t width=1, bool be=false)
Function to dump data as hex into the debug port.
Definition: Module.cpp:702
void init()
Initialize low-level module control.
Definition: Module.cpp:107
RADIOLIB_PIN_TYPE getRst() const
Access method to get the pin number of hardware reset pin.
Definition: Module.h:426
RADIOLIB_PIN_TYPE getCs() const
Access method to get the pin number of SPI chip select.
Definition: Module.h:412
uint8_t SPIwriteCommand
Basic SPI write command. Defaults to 0x80.
Definition: Module.h:144
RADIOLIB_PIN_TYPE getGpio() const
Access method to get the pin number of second interrupt/GPIO.
Definition: Module.h:433
-
void delay(uint32_t ms)
Arduino core delay override.
Definition: Module.cpp:589
-
uint32_t micros()
Arduino core micros override.
Definition: Module.cpp:610
-
void SPIwriteRegisterBurst(uint16_t reg, uint8_t *data, size_t numBytes)
SPI burst write method.
Definition: Module.cpp:209
-
void begin()
Arduino core SPI begin override.
Definition: Module.cpp:624
+
void delay(uint32_t ms)
Arduino core delay override.
Definition: Module.cpp:575
+
uint32_t micros()
Arduino core micros override.
Definition: Module.cpp:596
+
void SPIwriteRegisterBurst(uint16_t reg, uint8_t *data, size_t numBytes)
SPI burst write method.
Definition: Module.cpp:211
+
void begin()
Arduino core SPI begin override.
Definition: Module.cpp:610
SPIparseStatusCb_t SPIparseStatusCb
Callback to function that will parse the module-specific status codes to RadioLib status codes....
Definition: Module.h:181
-
void pinMode(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_MODE mode)
Arduino core pinMode override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:478
-
void noTone(RADIOLIB_PIN_TYPE pin)
Arduino core noTone override that checks RADIOLIB_NC as alias for unused pin and RADIOLIB_TONE_UNSUPP...
Definition: Module.cpp:539
-
void setRfSwitchState(uint8_t mode)
Set RF switch state.
Definition: Module.cpp:805
+
void pinMode(RADIOLIB_PIN_TYPE pin, RADIOLIB_PIN_MODE mode)
Arduino core pinMode override that checks RADIOLIB_NC as alias for unused pin.
Definition: Module.cpp:464
+
void noTone(RADIOLIB_PIN_TYPE pin)
Arduino core noTone override that checks RADIOLIB_NC as alias for unused pin and RADIOLIB_TONE_UNSUPP...
Definition: Module.cpp:525
+
void setRfSwitchState(uint8_t mode)
Set RF switch state.
Definition: Module.cpp:818
#define RADIOLIB_ERR_UNKNOWN
There was an unexpected, unknown error. If you see this, something went incredibly wrong....
Definition: TypeDef.h:110
Definition: Module.h:46
diff --git a/_morse_8h_source.html b/_morse_8h_source.html index a5811b03..66d12614 100644 --- a/_morse_8h_source.html +++ b/_morse_8h_source.html @@ -197,58 +197,62 @@ $(document).ready(function(){initNavTree('_morse_8h_source.html',''); initResiza
160  size_t write(uint8_t* buff, size_t len);
161  size_t write(uint8_t b);
162 
-
163  size_t print(__FlashStringHelper*);
-
164  size_t print(const String &);
-
165  size_t print(const char[]);
-
166  size_t print(char);
-
167  size_t print(unsigned char, int = DEC);
-
168  size_t print(int, int = DEC);
-
169  size_t print(unsigned int, int = DEC);
-
170  size_t print(long, int = DEC);
-
171  size_t print(unsigned long, int = DEC);
-
172  size_t print(double, int = 2);
-
173 
-
174  size_t println(void);
-
175  size_t println(__FlashStringHelper*);
-
176  size_t println(const String &);
-
177  size_t println(const char[]);
-
178  size_t println(char);
-
179  size_t println(unsigned char, int = DEC);
-
180  size_t println(int, int = DEC);
-
181  size_t println(unsigned int, int = DEC);
-
182  size_t println(long, int = DEC);
-
183  size_t println(unsigned long, int = DEC);
-
184  size_t println(double, int = 2);
-
185 
-
186 #if !defined(RADIOLIB_GODMODE)
-
187  private:
-
188 #endif
-
189  PhysicalLayer* _phy;
-
190  #if !defined(RADIOLIB_EXCLUDE_AFSK)
-
191  AFSKClient* _audio;
-
192  #endif
-
193 
-
194  uint32_t _base = 0, _baseHz = 0;
-
195  float _basePeriod = 0.0f;
-
196  uint32_t _dotLength = 0;
-
197  uint32_t _dashLength = 0;
-
198  uint32_t _letterSpace = 0;
-
199  uint16_t _wordSpace = 0;
-
200 
-
201  // variables to keep decoding state
-
202  uint32_t signalCounter = 0;
-
203  uint32_t signalStart = 0;
-
204  uint32_t pauseCounter = 0;
-
205  uint32_t pauseStart = 0;
-
206 
-
207  size_t printNumber(unsigned long, uint8_t);
-
208  size_t printFloat(double, uint8_t);
-
209 
-
210  int16_t transmitDirect(uint32_t freq = 0, uint32_t freqHz = 0);
-
211  int16_t standby();
-
212 };
+
163  #if defined(RADIOLIB_BUILD_ARDUINO)
+
164  size_t print(__FlashStringHelper*);
+
165  size_t print(const String &);
+
166  #endif
+
167  size_t print(const char[]);
+
168  size_t print(char);
+
169  size_t print(unsigned char, int = DEC);
+
170  size_t print(int, int = DEC);
+
171  size_t print(unsigned int, int = DEC);
+
172  size_t print(long, int = DEC);
+
173  size_t print(unsigned long, int = DEC);
+
174  size_t print(double, int = 2);
+
175 
+
176  size_t println(void);
+
177  #if defined(RADIOLIB_BUILD_ARDUINO)
+
178  size_t println(__FlashStringHelper*);
+
179  size_t println(const String &);
+
180  #endif
+
181  size_t println(const char[]);
+
182  size_t println(char);
+
183  size_t println(unsigned char, int = DEC);
+
184  size_t println(int, int = DEC);
+
185  size_t println(unsigned int, int = DEC);
+
186  size_t println(long, int = DEC);
+
187  size_t println(unsigned long, int = DEC);
+
188  size_t println(double, int = 2);
+
189 
+
190 #if !defined(RADIOLIB_GODMODE)
+
191  private:
+
192 #endif
+
193  PhysicalLayer* _phy;
+
194  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
195  AFSKClient* _audio;
+
196  #endif
+
197 
+
198  uint32_t _base = 0, _baseHz = 0;
+
199  float _basePeriod = 0.0f;
+
200  uint32_t _dotLength = 0;
+
201  uint32_t _dashLength = 0;
+
202  uint32_t _letterSpace = 0;
+
203  uint16_t _wordSpace = 0;
+
204 
+
205  // variables to keep decoding state
+
206  uint32_t signalCounter = 0;
+
207  uint32_t signalStart = 0;
+
208  uint32_t pauseCounter = 0;
+
209  uint32_t pauseStart = 0;
+
210 
+
211  size_t printNumber(unsigned long, uint8_t);
+
212  size_t printFloat(double, uint8_t);
213 
-
214 #endif
+
214  int16_t transmitDirect(uint32_t freq = 0, uint32_t freqHz = 0);
+
215  int16_t standby();
+
216 };
+
217 
+
218 #endif
Client for audio-based transmissions. Requires Arduino tone() function, and a module capable of direc...
Definition: AFSK.h:17
Client for Morse Code communication. The public interface is the same as Arduino Serial.
Definition: Morse.h:93
size_t startSignal()
Send start signal.
Definition: Morse.cpp:36
diff --git a/_pager_8h_source.html b/_pager_8h_source.html index ce81ecbf..990e667d 100644 --- a/_pager_8h_source.html +++ b/_pager_8h_source.html @@ -159,66 +159,70 @@ $(document).ready(function(){initNavTree('_pager_8h_source.html',''); initResiza
94 
102  int16_t sendTone(uint32_t addr);
103 
-
115  int16_t transmit(String& str, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
-
116 
-
128  int16_t transmit(const char* str, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
-
129 
-
143  int16_t transmit(uint8_t* data, size_t len, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
-
144 
-
145 
-
146 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
-
158  int16_t startReceive(RADIOLIB_PIN_TYPE pin, uint32_t addr, uint32_t mask = 0xFFFFF);
-
159 
-
165  size_t available();
-
166 
-
179  int16_t readData(String& str, size_t len = 0, uint32_t* addr = NULL);
-
180 
-
194  int16_t readData(uint8_t* data, size_t* len, uint32_t* addr = NULL);
-
195 #endif
-
196 
-
197 #if !defined(RADIOLIB_GODMODE)
-
198  private:
+
104  #if defined(RADIOLIB_BUILD_ARDUINO)
+
116  int16_t transmit(String& str, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
+
117  #endif
+
118 
+
130  int16_t transmit(const char* str, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
+
131 
+
145  int16_t transmit(uint8_t* data, size_t len, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
+
146 
+
147 
+
148 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
160  int16_t startReceive(RADIOLIB_PIN_TYPE pin, uint32_t addr, uint32_t mask = 0xFFFFF);
+
161 
+
167  size_t available();
+
168 
+
169  #if defined(RADIOLIB_BUILD_ARDUINO)
+
182  int16_t readData(String& str, size_t len = 0, uint32_t* addr = NULL);
+
183  #endif
+
184 
+
198  int16_t readData(uint8_t* data, size_t* len, uint32_t* addr = NULL);
199 #endif
-
200  PhysicalLayer* _phy;
-
201 
-
202  float _base;
-
203  float _speed;
-
204  uint32_t _baseRaw;
-
205  uint16_t _shift;
-
206  uint16_t _shiftHz;
-
207  uint16_t _bitDuration;
-
208  uint32_t _filterAddr;
-
209  uint32_t _filterMask;
-
210  bool inv = false;
-
211 
-
212  // BCH encoder
-
213  int32_t _bchAlphaTo[RADIOLIB_PAGER_BCH_N + 1];
-
214  int32_t _bchIndexOf[RADIOLIB_PAGER_BCH_N + 1];
-
215  int32_t _bchG[RADIOLIB_PAGER_BCH_N - RADIOLIB_PAGER_BCH_K + 1];
-
216 
-
217  void write(uint32_t* data, size_t len);
-
218  void write(uint32_t codeWord);
-
219 
-
220 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
-
221  uint32_t read();
-
222 #endif
+
200 
+
201 #if !defined(RADIOLIB_GODMODE)
+
202  private:
+
203 #endif
+
204  PhysicalLayer* _phy;
+
205 
+
206  float _base;
+
207  float _speed;
+
208  uint32_t _baseRaw;
+
209  uint16_t _shift;
+
210  uint16_t _shiftHz;
+
211  uint16_t _bitDuration;
+
212  uint32_t _filterAddr;
+
213  uint32_t _filterMask;
+
214  bool inv = false;
+
215 
+
216  // BCH encoder
+
217  int32_t _bchAlphaTo[RADIOLIB_PAGER_BCH_N + 1];
+
218  int32_t _bchIndexOf[RADIOLIB_PAGER_BCH_N + 1];
+
219  int32_t _bchG[RADIOLIB_PAGER_BCH_N - RADIOLIB_PAGER_BCH_K + 1];
+
220 
+
221  void write(uint32_t* data, size_t len);
+
222  void write(uint32_t codeWord);
223 
-
224  uint8_t encodeBCD(char c);
-
225  char decodeBCD(uint8_t b);
-
226 
-
227  void encoderInit();
-
228  uint32_t encodeBCH(uint32_t data);
-
229 };
+
224 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
225  uint32_t read();
+
226 #endif
+
227 
+
228  uint8_t encodeBCD(char c);
+
229  char decodeBCD(uint8_t b);
230 
-
231 #endif
+
231  void encoderInit();
+
232  uint32_t encodeBCH(uint32_t data);
+
233 };
+
234 
+
235 #endif
Client for Pager communication.
Definition: Pager.h:69
int16_t begin(float base, uint16_t speed, bool invert=false, uint16_t shift=RADIOLIB_PAGER_FREQ_SHIFT_HZ)
Initialization method.
Definition: Pager.cpp:27
-
int16_t transmit(String &str, uint32_t addr, uint8_t encoding=RADIOLIB_PAGER_BCD)
Arduino String transmit method.
Definition: Pager.cpp:55
int16_t sendTone(uint32_t addr)
Method to send a tone-only alert to a destination pager.
Definition: Pager.cpp:51
PagerClient(PhysicalLayer *phy)
Default constructor.
Definition: Pager.cpp:20
-
int16_t readData(String &str, size_t len=0, uint32_t *addr=NULL)
Reads data that was received after calling startReceive method.
Definition: Pager.cpp:263
-
int16_t startReceive(RADIOLIB_PIN_TYPE pin, uint32_t addr, uint32_t mask=0xFFFFF)
Start reception of POCSAG packets.
Definition: Pager.cpp:222
-
size_t available()
Get the number of POCSAG batches available in buffer. Limited by the size of direct mode buffer!
Definition: Pager.cpp:259
+
int16_t transmit(const char *str, uint32_t addr, uint8_t encoding=RADIOLIB_PAGER_BCD)
C-string transmit method.
Definition: Pager.cpp:61
+
int16_t readData(uint8_t *data, size_t *len, uint32_t *addr=NULL)
Reads data that was received after calling startReceive method.
Definition: Pager.cpp:312
+
int16_t startReceive(RADIOLIB_PIN_TYPE pin, uint32_t addr, uint32_t mask=0xFFFFF)
Start reception of POCSAG packets.
Definition: Pager.cpp:224
+
size_t available()
Get the number of POCSAG batches available in buffer. Limited by the size of direct mode buffer!
Definition: Pager.cpp:261
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
diff --git a/_physical_layer_8h_source.html b/_physical_layer_8h_source.html index 859a57ba..ec2b08e1 100644 --- a/_physical_layer_8h_source.html +++ b/_physical_layer_8h_source.html @@ -101,135 +101,143 @@ $(document).ready(function(){initNavTree('_physical_layer_8h_source.html',''); i
27 
28  // basic methods
29 
-
39  int16_t transmit(__FlashStringHelper* fstr, uint8_t addr = 0);
-
40 
-
50  int16_t transmit(String& str, uint8_t addr = 0);
-
51 
-
61  int16_t transmit(const char* str, uint8_t addr = 0);
-
62 
-
74  virtual int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0);
-
75 
-
85  int16_t receive(String& str, size_t len = 0);
-
86 
-
92  virtual int16_t sleep();
-
93 
-
99  virtual int16_t standby();
-
100 
-
106  virtual int16_t standby(uint8_t mode);
-
107 
-
121  virtual int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
-
122 
-
132  virtual int16_t receive(uint8_t* data, size_t len);
-
133 
-
144  int16_t startTransmit(String& str, uint8_t addr = 0);
-
145 
-
156  int16_t startTransmit(const char* str, uint8_t addr = 0);
-
157 
-
169  virtual int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0);
-
170 
-
176  virtual int16_t finishTransmit();
-
177 
-
188  int16_t readData(String& str, size_t len = 0);
-
189 
-
200  virtual int16_t readData(uint8_t* data, size_t len);
-
201 
-
210  virtual int16_t transmitDirect(uint32_t frf = 0);
-
211 
-
218  virtual int16_t receiveDirect();
+
30  #if defined(RADIOLIB_BUILD_ARDUINO)
+
40  int16_t transmit(__FlashStringHelper* fstr, uint8_t addr = 0);
+
41 
+
51  int16_t transmit(String& str, uint8_t addr = 0);
+
52  #endif
+
53 
+
63  int16_t transmit(const char* str, uint8_t addr = 0);
+
64 
+
76  virtual int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0);
+
77 
+
78  #if defined(RADIOLIB_BUILD_ARDUINO)
+
88  int16_t receive(String& str, size_t len = 0);
+
89  #endif
+
90 
+
96  virtual int16_t sleep();
+
97 
+
103  virtual int16_t standby();
+
104 
+
110  virtual int16_t standby(uint8_t mode);
+
111 
+
125  virtual int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
+
126 
+
136  virtual int16_t receive(uint8_t* data, size_t len);
+
137 
+
138  #if defined(RADIOLIB_BUILD_ARDUINO)
+
149  int16_t startTransmit(String& str, uint8_t addr = 0);
+
150  #endif
+
151 
+
162  int16_t startTransmit(const char* str, uint8_t addr = 0);
+
163 
+
175  virtual int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0);
+
176 
+
182  virtual int16_t finishTransmit();
+
183 
+
184  #if defined(RADIOLIB_BUILD_ARDUINO)
+
195  int16_t readData(String& str, size_t len = 0);
+
196  #endif
+
197 
+
208  virtual int16_t readData(uint8_t* data, size_t len);
+
209 
+
218  virtual int16_t transmitDirect(uint32_t frf = 0);
219 
-
220  // configuration methods
-
221 
-
229  virtual int16_t setFrequency(float freq);
-
230 
-
238  virtual int16_t setBitRate(float br);
-
239 
-
247  virtual int16_t setFrequencyDeviation(float freqDev);
-
248 
-
256  virtual int16_t setDataShaping(uint8_t sh);
-
257 
-
265  virtual int16_t setEncoding(uint8_t encoding);
-
266 
-
272  float getFreqStep() const;
-
273 
-
281  virtual size_t getPacketLength(bool update = true);
-
282 
-
288  virtual float getRSSI();
-
289 
-
295  virtual float getSNR();
-
296 
-
304  int32_t random(int32_t max);
-
305 
-
315  int32_t random(int32_t min, int32_t max);
-
316 
-
322  virtual uint8_t randomByte();
-
323 
-
329  int16_t startDirect();
-
330 
-
331  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
-
341  int16_t setDirectSyncWord(uint32_t syncWord, uint8_t len);
-
342 
-
348  virtual void setDirectAction(void (*func)(void));
-
349 
-
355  virtual void readBit(RADIOLIB_PIN_TYPE pin);
-
356 
-
362  int16_t available();
-
363 
-
367  void dropSync();
-
368 
-
376  uint8_t read(bool drop = true);
-
377  #endif
-
378 
-
388  virtual int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value);
-
389 
-
395  virtual void setDio1Action(void (*func)(void));
-
396 
-
400  virtual void clearDio1Action();
-
401 
-
402  #if defined(RADIOLIB_INTERRUPT_TIMING)
-
403 
-
410  void setInterruptSetup(void (*func)(uint32_t));
+
226  virtual int16_t receiveDirect();
+
227 
+
228  // configuration methods
+
229 
+
237  virtual int16_t setFrequency(float freq);
+
238 
+
246  virtual int16_t setBitRate(float br);
+
247 
+
255  virtual int16_t setFrequencyDeviation(float freqDev);
+
256 
+
264  virtual int16_t setDataShaping(uint8_t sh);
+
265 
+
273  virtual int16_t setEncoding(uint8_t encoding);
+
274 
+
280  float getFreqStep() const;
+
281 
+
289  virtual size_t getPacketLength(bool update = true);
+
290 
+
296  virtual float getRSSI();
+
297 
+
303  virtual float getSNR();
+
304 
+
312  int32_t random(int32_t max);
+
313 
+
323  int32_t random(int32_t min, int32_t max);
+
324 
+
330  virtual uint8_t randomByte();
+
331 
+
337  int16_t startDirect();
+
338 
+
339  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
349  int16_t setDirectSyncWord(uint32_t syncWord, uint8_t len);
+
350 
+
356  virtual void setDirectAction(void (*func)(void));
+
357 
+
363  virtual void readBit(RADIOLIB_PIN_TYPE pin);
+
364 
+
370  int16_t available();
+
371 
+
375  void dropSync();
+
376 
+
384  uint8_t read(bool drop = true);
+
385  #endif
+
386 
+
396  virtual int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value);
+
397 
+
403  virtual void setDio1Action(void (*func)(void));
+
404 
+
408  virtual void clearDio1Action();
+
409 
+
410  #if defined(RADIOLIB_INTERRUPT_TIMING)
411 
-
416  void setTimerFlag();
-
417 
-
418  #endif
+
418  void setInterruptSetup(void (*func)(uint32_t));
419 
-
420 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
-
421  protected:
-
422  void updateDirectBuffer(uint8_t bit);
-
423 #endif
-
424 
-
425 #if !defined(RADIOLIB_GODMODE)
-
426  private:
-
427 #endif
-
428  float _freqStep;
-
429  size_t _maxPacketLength;
-
430 
-
431  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
-
432  uint8_t _bufferBitPos;
-
433  uint8_t _bufferWritePos;
-
434  uint8_t _bufferReadPos;
-
435  uint8_t _buffer[RADIOLIB_STATIC_ARRAY_SIZE];
-
436  uint32_t _syncBuffer;
-
437  uint32_t _directSyncWord;
-
438  uint8_t _directSyncWordLen;
-
439  uint32_t _directSyncWordMask;
-
440  bool _gotSync;
-
441  #endif
-
442 
-
443  virtual Module* getMod() = 0;
-
444 
-
445  // allow specific classes access the private getMod method
-
446  friend class AFSKClient;
-
447  friend class RTTYClient;
-
448  friend class MorseClient;
-
449  friend class HellClient;
-
450  friend class SSTVClient;
-
451  friend class AX25Client;
-
452  friend class FSK4Client;
-
453  friend class PagerClient;
-
454 };
-
455 
-
456 #endif
+
424  void setTimerFlag();
+
425 
+
426  #endif
+
427 
+
428 #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
429  protected:
+
430  void updateDirectBuffer(uint8_t bit);
+
431 #endif
+
432 
+
433 #if !defined(RADIOLIB_GODMODE)
+
434  private:
+
435 #endif
+
436  float _freqStep;
+
437  size_t _maxPacketLength;
+
438 
+
439  #if !defined(RADIOLIB_EXCLUDE_DIRECT_RECEIVE)
+
440  uint8_t _bufferBitPos;
+
441  uint8_t _bufferWritePos;
+
442  uint8_t _bufferReadPos;
+
443  uint8_t _buffer[RADIOLIB_STATIC_ARRAY_SIZE];
+
444  uint32_t _syncBuffer;
+
445  uint32_t _directSyncWord;
+
446  uint8_t _directSyncWordLen;
+
447  uint32_t _directSyncWordMask;
+
448  bool _gotSync;
+
449  #endif
+
450 
+
451  virtual Module* getMod() = 0;
+
452 
+
453  // allow specific classes access the private getMod method
+
454  friend class AFSKClient;
+
455  friend class RTTYClient;
+
456  friend class MorseClient;
+
457  friend class HellClient;
+
458  friend class SSTVClient;
+
459  friend class AX25Client;
+
460  friend class FSK4Client;
+
461  friend class PagerClient;
+
462 };
+
463 
+
464 #endif
Client for audio-based transmissions. Requires Arduino tone() function, and a module capable of direc...
Definition: AFSK.h:17
Client for AX25 communication.
Definition: AX25.h:279
Client for FSK-4 communication. The public interface is the same as Arduino Serial.
Definition: FSK4.h:16
@@ -238,38 +246,38 @@ $(document).ready(function(){initNavTree('_physical_layer_8h_source.html',''); i
Client for Morse Code communication. The public interface is the same as Arduino Serial.
Definition: Morse.h:93
Client for Pager communication.
Definition: Pager.h:69
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
-
virtual int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len)
Interrupt-driven receive method. A DIO pin will be activated when full packet is received....
Definition: PhysicalLayer.cpp:126
-
virtual uint8_t randomByte()
Get one truly random byte from RSSI noise. Must be implemented in module class.
Definition: PhysicalLayer.cpp:281
-
virtual int16_t finishTransmit()
Clean up after transmission is done.
Definition: PhysicalLayer.cpp:149
-
virtual int16_t setFrequencyDeviation(float freqDev)
Sets FSK frequency deviation from carrier frequency. Only available in FSK mode. Must be implemented ...
Definition: PhysicalLayer.cpp:221
-
virtual size_t getPacketLength(bool update=true)
Query modem for the packet length of received payload. Must be implemented in module class.
Definition: PhysicalLayer.cpp:240
-
void dropSync()
Forcefully drop synchronization.
Definition: PhysicalLayer.cpp:304
-
virtual int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: PhysicalLayer.cpp:382
-
uint8_t read(bool drop=true)
Get data from direct mode buffer.
Definition: PhysicalLayer.cpp:311
+
virtual int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len)
Interrupt-driven receive method. A DIO pin will be activated when full packet is received....
Definition: PhysicalLayer.cpp:130
+
virtual uint8_t randomByte()
Get one truly random byte from RSSI noise. Must be implemented in module class.
Definition: PhysicalLayer.cpp:289
+
virtual int16_t finishTransmit()
Clean up after transmission is done.
Definition: PhysicalLayer.cpp:155
+
virtual int16_t setFrequencyDeviation(float freqDev)
Sets FSK frequency deviation from carrier frequency. Only available in FSK mode. Must be implemented ...
Definition: PhysicalLayer.cpp:229
+
virtual size_t getPacketLength(bool update=true)
Query modem for the packet length of received payload. Must be implemented in module class.
Definition: PhysicalLayer.cpp:248
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
void dropSync()
Forcefully drop synchronization.
Definition: PhysicalLayer.cpp:312
+
virtual int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: PhysicalLayer.cpp:388
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
uint8_t read(bool drop=true)
Get data from direct mode buffer.
Definition: PhysicalLayer.cpp:319
PhysicalLayer(float freqStep, size_t maxPacketLength)
Default constructor.
Definition: PhysicalLayer.cpp:3
-
virtual void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: PhysicalLayer.cpp:388
-
int16_t startDirect()
Configure module parameters for direct modes. Must be called prior to "ham" modes like RTTY or AX....
Definition: PhysicalLayer.cpp:285
-
virtual int16_t setFrequency(float freq)
Sets carrier frequency. Must be implemented in module class.
Definition: PhysicalLayer.cpp:211
-
int16_t setDirectSyncWord(uint32_t syncWord, uint8_t len)
Set sync word to be used to determine start of packet in direct reception mode.
Definition: PhysicalLayer.cpp:319
-
float getFreqStep() const
Gets the module frequency step size that was set in constructor.
Definition: PhysicalLayer.cpp:236
-
virtual int16_t transmitDirect(uint32_t frf=0)
Enables direct transmission mode on pins DIO1 (clock) and DIO2 (data). Must be implemented in module ...
Definition: PhysicalLayer.cpp:202
-
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:245
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t available()
Get the number of direct mode bytes currently available in buffer.
Definition: PhysicalLayer.cpp:300
-
virtual void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode....
Definition: PhysicalLayer.cpp:372
-
virtual int16_t setEncoding(uint8_t encoding)
Sets FSK data encoding. Only available in FSK mode. Must be implemented in module class.
Definition: PhysicalLayer.cpp:231
-
virtual int16_t standby()
Sets module to standby.
Definition: PhysicalLayer.cpp:117
-
int32_t random(int32_t max)
Get truly random number in range 0 - max.
Definition: PhysicalLayer.cpp:253
-
virtual void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: PhysicalLayer.cpp:392
-
virtual int16_t receiveDirect()
Enables direct reception mode on pins DIO1 (clock) and DIO2 (data). Must be implemented in module cla...
Definition: PhysicalLayer.cpp:207
-
virtual void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode. Must be implemented in module class.
Definition: PhysicalLayer.cpp:376
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
virtual int16_t setDataShaping(uint8_t sh)
Sets GFSK data shaping. Only available in FSK mode. Must be implemented in module class.
Definition: PhysicalLayer.cpp:226
-
virtual int16_t setBitRate(float br)
Sets FSK bit rate. Only available in FSK mode. Must be implemented in module class.
Definition: PhysicalLayer.cpp:216
-
virtual float getSNR()
Gets SNR (Signal to Noise Ratio) of the last received packet. Only available for LoRa modem.
Definition: PhysicalLayer.cpp:249
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
virtual int16_t sleep()
Sets module to sleep.
Definition: PhysicalLayer.cpp:113
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
virtual void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: PhysicalLayer.cpp:394
+
int16_t startDirect()
Configure module parameters for direct modes. Must be called prior to "ham" modes like RTTY or AX....
Definition: PhysicalLayer.cpp:293
+
virtual int16_t setFrequency(float freq)
Sets carrier frequency. Must be implemented in module class.
Definition: PhysicalLayer.cpp:219
+
int16_t setDirectSyncWord(uint32_t syncWord, uint8_t len)
Set sync word to be used to determine start of packet in direct reception mode.
Definition: PhysicalLayer.cpp:327
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
float getFreqStep() const
Gets the module frequency step size that was set in constructor.
Definition: PhysicalLayer.cpp:244
+
virtual int16_t transmitDirect(uint32_t frf=0)
Enables direct transmission mode on pins DIO1 (clock) and DIO2 (data). Must be implemented in module ...
Definition: PhysicalLayer.cpp:210
+
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:253
+
int16_t available()
Get the number of direct mode bytes currently available in buffer.
Definition: PhysicalLayer.cpp:308
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
+
virtual void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode....
Definition: PhysicalLayer.cpp:378
+
virtual int16_t setEncoding(uint8_t encoding)
Sets FSK data encoding. Only available in FSK mode. Must be implemented in module class.
Definition: PhysicalLayer.cpp:239
+
virtual int16_t standby()
Sets module to standby.
Definition: PhysicalLayer.cpp:121
+
int32_t random(int32_t max)
Get truly random number in range 0 - max.
Definition: PhysicalLayer.cpp:261
+
virtual void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: PhysicalLayer.cpp:398
+
virtual int16_t receiveDirect()
Enables direct reception mode on pins DIO1 (clock) and DIO2 (data). Must be implemented in module cla...
Definition: PhysicalLayer.cpp:215
+
virtual void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode. Must be implemented in module class.
Definition: PhysicalLayer.cpp:382
+
virtual int16_t setDataShaping(uint8_t sh)
Sets GFSK data shaping. Only available in FSK mode. Must be implemented in module class.
Definition: PhysicalLayer.cpp:234
+
virtual int16_t setBitRate(float br)
Sets FSK bit rate. Only available in FSK mode. Must be implemented in module class.
Definition: PhysicalLayer.cpp:224
+
virtual float getSNR()
Gets SNR (Signal to Noise Ratio) of the last received packet. Only available for LoRa modem.
Definition: PhysicalLayer.cpp:257
+
virtual int16_t sleep()
Sets module to sleep.
Definition: PhysicalLayer.cpp:117
Client for RTTY communication. The public interface is the same as Arduino Serial.
Definition: RTTY.h:88
Client for SSTV transmissions.
Definition: SSTV.h:120
diff --git a/_r_f69_8h_source.html b/_r_f69_8h_source.html index 63299045..79563d4b 100644 --- a/_r_f69_8h_source.html +++ b/_r_f69_8h_source.html @@ -562,10 +562,10 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
479 class RF69: public PhysicalLayer {
480  public:
481  // introduce PhysicalLayer overloads
-
482  using PhysicalLayer::transmit;
-
483  using PhysicalLayer::receive;
-
484  using PhysicalLayer::startTransmit;
-
485  using PhysicalLayer::readData;
+
482  using PhysicalLayer::transmit;
+
483  using PhysicalLayer::receive;
+
484  using PhysicalLayer::startTransmit;
+
485  using PhysicalLayer::readData;
486 
492  RF69(Module* module);
493 
@@ -583,9 +583,9 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
522 
526  void reset();
527 
-
540  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
540  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
541 
-
552  int16_t receive(uint8_t* data, size_t len) override;
+
552  int16_t receive(uint8_t* data, size_t len) override;
553 
559  int16_t sleep();
560 
@@ -629,7 +629,7 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
683 
695  bool fifoGet(volatile uint8_t* data, int totalLen, volatile int* rcvLen);
696 
-
709  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
709  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
710 
716  int16_t finishTransmit() override;
717 
@@ -637,7 +637,7 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
724 
738  int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
739 
-
750  int16_t readData(uint8_t* data, size_t len) override;
+
750  int16_t readData(uint8_t* data, size_t len) override;
751 
752  // configuration methods
753 
@@ -767,77 +767,77 @@ $(document).ready(function(){initNavTree('_r_f69_8h_source.html',''); initResiza
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:28
static const size_t RFSWITCH_MAX_PINS
The maximum number of pins supported by the RF switch code.
Definition: Module.h:39
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
Control class for RF69 module. Also serves as base class for SX1231.
Definition: RF69.h:479
-
int16_t getTemperature()
Measures temperature.
Definition: RF69.cpp:761
-
int16_t getChipVersion()
Read version SPI register. Should return RF69_CHIP_VERSION (0x24) if SX127x is connected and working.
Definition: RF69.cpp:978
-
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: RF69.cpp:961
-
void clearFifoEmptyAction()
Clears interrupt service routine to call when FIFO is empty.
Definition: RF69.cpp:317
-
int16_t fixedPacketLengthMode(uint8_t len=RADIOLIB_RF69_MAX_PACKET_LENGTH)
Set modem in fixed packet length mode.
Definition: RF69.cpp:791
-
int16_t disableAES()
Disables AES encryption.
Definition: RF69.cpp:243
-
void setFifoFullAction(void(*func)(void))
Set interrupt service routine function to call when FIFO is full.
Definition: RF69.cpp:321
-
int16_t setBroadcastAddress(uint8_t broadAddr)
Sets broadcast address. Calling this method will also enable address filtering for node and broadcast...
Definition: RF69.cpp:735
-
int16_t enableAES()
Enables AES encryption.
Definition: RF69.cpp:239
-
uint8_t randomByte()
Get one truly random byte from RSSI noise.
Definition: RF69.cpp:937
-
int16_t standby() override
Sets the module to standby mode.
Definition: RF69.cpp:168
-
int16_t setOokThresholdType(uint8_t type)
Selects the type of threshold in the OOK data slicer.
Definition: RF69.cpp:502
-
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: RF69.cpp:181
-
int16_t getFrequency(float *freq)
Gets carrier frequency.
Definition: RF69.cpp:538
-
int16_t setSyncWord(uint8_t *syncWord, size_t len, uint8_t maxErrBits=0)
Sets sync word. Up to 8 bytes can be set as sync word.
Definition: RF69.cpp:688
-
int16_t getFrequencyDeviation(float *freqDev)
Gets frequency deviation.
Definition: RF69.cpp:626
-
int16_t setOokFixedThreshold(uint8_t value)
Fixed threshold for the Data Slicer in OOK mode or floor threshold for the Data Slicer in OOK when Pe...
Definition: RF69.cpp:509
-
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: RF69.cpp:438
-
int16_t disableSyncWordFiltering()
Disable preamble and sync word filtering and generation.
Definition: RF69.cpp:804
-
int16_t setDataShaping(uint8_t sh) override
Sets Gaussian filter bandwidth-time product that will be used for data shaping. Allowed values are RA...
Definition: RF69.cpp:873
-
int16_t setOokPeakThresholdDecrement(uint8_t value)
Period of decrement of the RSSI threshold in the OOK demodulator.
Definition: RF69.cpp:513
-
int16_t sleep()
Sets the module to sleep mode.
Definition: RF69.cpp:160
-
int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: RF69.cpp:966
-
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: RF69.cpp:933
-
int16_t disableAddressFiltering()
Disables address filtering. Calling this method will also erase previously set addresses.
Definition: RF69.cpp:744
-
int16_t enableSyncWordFiltering(uint8_t maxErrBits=0)
Enable sync word filtering and generation.
Definition: RF69.cpp:799
+
int16_t getTemperature()
Measures temperature.
Definition: RF69.cpp:751
+
int16_t getChipVersion()
Read version SPI register. Should return RF69_CHIP_VERSION (0x24) if SX127x is connected and working.
Definition: RF69.cpp:968
+
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: RF69.cpp:951
+
void clearFifoEmptyAction()
Clears interrupt service routine to call when FIFO is empty.
Definition: RF69.cpp:307
+
int16_t fixedPacketLengthMode(uint8_t len=RADIOLIB_RF69_MAX_PACKET_LENGTH)
Set modem in fixed packet length mode.
Definition: RF69.cpp:781
+
int16_t disableAES()
Disables AES encryption.
Definition: RF69.cpp:233
+
void setFifoFullAction(void(*func)(void))
Set interrupt service routine function to call when FIFO is full.
Definition: RF69.cpp:311
+
int16_t setBroadcastAddress(uint8_t broadAddr)
Sets broadcast address. Calling this method will also enable address filtering for node and broadcast...
Definition: RF69.cpp:725
+
int16_t enableAES()
Enables AES encryption.
Definition: RF69.cpp:229
+
uint8_t randomByte()
Get one truly random byte from RSSI noise.
Definition: RF69.cpp:927
+
int16_t standby() override
Sets the module to standby mode.
Definition: RF69.cpp:158
+
int16_t setOokThresholdType(uint8_t type)
Selects the type of threshold in the OOK data slicer.
Definition: RF69.cpp:492
+
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: RF69.cpp:171
+
int16_t getFrequency(float *freq)
Gets carrier frequency.
Definition: RF69.cpp:528
+
int16_t setSyncWord(uint8_t *syncWord, size_t len, uint8_t maxErrBits=0)
Sets sync word. Up to 8 bytes can be set as sync word.
Definition: RF69.cpp:678
+
int16_t getFrequencyDeviation(float *freqDev)
Gets frequency deviation.
Definition: RF69.cpp:616
+
int16_t setOokFixedThreshold(uint8_t value)
Fixed threshold for the Data Slicer in OOK mode or floor threshold for the Data Slicer in OOK when Pe...
Definition: RF69.cpp:499
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: RF69.cpp:428
+
int16_t disableSyncWordFiltering()
Disable preamble and sync word filtering and generation.
Definition: RF69.cpp:794
+
int16_t setDataShaping(uint8_t sh) override
Sets Gaussian filter bandwidth-time product that will be used for data shaping. Allowed values are RA...
Definition: RF69.cpp:863
+
int16_t setOokPeakThresholdDecrement(uint8_t value)
Period of decrement of the RSSI threshold in the OOK demodulator.
Definition: RF69.cpp:503
+
int16_t sleep()
Sets the module to sleep mode.
Definition: RF69.cpp:150
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: RF69.cpp:956
+
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: RF69.cpp:923
+
int16_t disableAddressFiltering()
Disables address filtering. Calling this method will also erase previously set addresses.
Definition: RF69.cpp:734
+
int16_t enableSyncWordFiltering(uint8_t maxErrBits=0)
Enable sync word filtering and generation.
Definition: RF69.cpp:789
int16_t begin(float freq=RADIOLIB_RF69_DEFAULT_FREQ, float br=RADIOLIB_RF69_DEFAULT_BR, float freqDev=RADIOLIB_RF69_DEFAULT_FREQDEV, float rxBw=RADIOLIB_RF69_DEFAULT_RXBW, int8_t power=RADIOLIB_RF69_DEFAULT_POWER, uint8_t preambleLen=RADIOLIB_RF69_DEFAULT_PREAMBLELEN)
Initialization method.
Definition: RF69.cpp:12
-
int16_t packetMode()
Stops direct mode. It is required to call this method to switch from direct transmissions to packet-b...
Definition: RF69.cpp:231
-
int16_t setPromiscuousMode(bool promiscuous=true)
Set modem in "sniff" mode: no packet filtering (e.g., no preamble, sync word, address,...
Definition: RF69.cpp:835
-
int16_t setRxBandwidth(float rxBw)
Sets receiver bandwidth. Allowed values are 2.6, 3.1, 3.9, 5.2, 6.3, 7.8, 10.4, 12....
Definition: RF69.cpp:575
-
void setFifoEmptyAction(void(*func)(void))
Set interrupt service routine function to call when FIFO is empty.
Definition: RF69.cpp:306
-
int16_t setPreambleLength(uint8_t preambleLen)
Sets preamble length.
Definition: RF69.cpp:714
-
int16_t enableContinuousModeBitSync()
Enable Bit synchronization in continuous mode.
Definition: RF69.cpp:809
-
void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode.
Definition: RF69.cpp:957
-
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: RF69.cpp:778
-
void clearDio0Action()
Clears interrupt service routine to call when DIO0 activates.
Definition: RF69.cpp:287
-
int16_t disableContinuousModeBitSync()
Disable Bit synchronization in continuous mode.
Definition: RF69.cpp:818
-
int16_t setOutputPower(int8_t power, bool highPower=false)
Sets output power. Allowed values range from -18 to 13 dBm for low power modules (RF69C/CW) or -2 to ...
Definition: RF69.cpp:650
-
int16_t setOOK(bool enableOOK)
Enables/disables OOK modulation instead of FSK. Note: This function calls setRxBandwidth again,...
Definition: RF69.cpp:483
-
void setDio0Action(void(*func)(void))
Sets interrupt service routine to call when DIO0 activates.
Definition: RF69.cpp:283
-
int16_t setLnaTestBoost(bool value)
Enable/disable LNA Boost mode (disabled by default).
Definition: RF69.cpp:911
-
bool fifoGet(volatile uint8_t *data, int totalLen, volatile int *rcvLen)
Set interrupt service routine function to call when FIFO is sufficently full to read.
Definition: RF69.cpp:358
-
void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: RF69.cpp:291
-
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: RF69.cpp:929
-
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Allowed values are RADIOLIB_ENCODING_NRZ, RADIOLIB_ENCODING_MANCHESTER an...
Definition: RF69.cpp:893
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in bands 290.0 to 340.0 MHz, 431.0 to 510....
Definition: RF69.cpp:517
-
bool fifoAdd(uint8_t *data, int totalLen, int *remLen)
Set interrupt service routine function to call when FIFO is empty.
Definition: RF69.cpp:335
-
int16_t setNodeAddress(uint8_t nodeAddr)
Sets node address. Calling this method will also enable address filtering for node address only.
Definition: RF69.cpp:726
-
int16_t receiveDirect() override
Starts direct mode reception.
Definition: RF69.cpp:202
-
void setAESKey(uint8_t *key)
Sets AES key.
Definition: RF69.cpp:235
-
int16_t setCrcFiltering(bool crcOn=true)
Enable CRC filtering and generation.
Definition: RF69.cpp:827
-
void setAmbientTemperature(int16_t tempAmbient)
Sets ambient temperature. Required to correct values from on-board temperature sensor.
Definition: RF69.cpp:757
-
float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: RF69.cpp:919
-
int16_t setBitRate(float br)
Sets bit rate. Allowed values range from 0.5 to 300.0 kbps.
Definition: RF69.cpp:553
-
int16_t setFrequencyDeviation(float freqDev) override
Sets frequency deviation.
Definition: RF69.cpp:603
-
void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: RF69.cpp:299
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
void clearFifoFullAction()
Clears interrupt service routine to call when FIFO is full.
Definition: RF69.cpp:330
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t variablePacketLengthMode(uint8_t maxLen=RADIOLIB_RF69_MAX_PACKET_LENGTH)
Set modem in variable packet length mode.
Definition: RF69.cpp:795
-
void reset()
Reset method. Will reset the chip to the default state using RST pin.
Definition: RF69.cpp:106
-
int16_t startReceive()
Interrupt-driven receive method. GDO0 will be activated when full packet is received.
Definition: RF69.cpp:247
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
int16_t packetMode()
Stops direct mode. It is required to call this method to switch from direct transmissions to packet-b...
Definition: RF69.cpp:221
+
int16_t setPromiscuousMode(bool promiscuous=true)
Set modem in "sniff" mode: no packet filtering (e.g., no preamble, sync word, address,...
Definition: RF69.cpp:825
+
int16_t setRxBandwidth(float rxBw)
Sets receiver bandwidth. Allowed values are 2.6, 3.1, 3.9, 5.2, 6.3, 7.8, 10.4, 12....
Definition: RF69.cpp:565
+
void setFifoEmptyAction(void(*func)(void))
Set interrupt service routine function to call when FIFO is empty.
Definition: RF69.cpp:296
+
int16_t setPreambleLength(uint8_t preambleLen)
Sets preamble length.
Definition: RF69.cpp:704
+
int16_t enableContinuousModeBitSync()
Enable Bit synchronization in continuous mode.
Definition: RF69.cpp:799
+
void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode.
Definition: RF69.cpp:947
+
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: RF69.cpp:768
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
void clearDio0Action()
Clears interrupt service routine to call when DIO0 activates.
Definition: RF69.cpp:277
+
int16_t disableContinuousModeBitSync()
Disable Bit synchronization in continuous mode.
Definition: RF69.cpp:808
+
int16_t setOutputPower(int8_t power, bool highPower=false)
Sets output power. Allowed values range from -18 to 13 dBm for low power modules (RF69C/CW) or -2 to ...
Definition: RF69.cpp:640
+
int16_t setOOK(bool enableOOK)
Enables/disables OOK modulation instead of FSK. Note: This function calls setRxBandwidth again,...
Definition: RF69.cpp:473
+
void setDio0Action(void(*func)(void))
Sets interrupt service routine to call when DIO0 activates.
Definition: RF69.cpp:273
+
int16_t setLnaTestBoost(bool value)
Enable/disable LNA Boost mode (disabled by default).
Definition: RF69.cpp:901
+
bool fifoGet(volatile uint8_t *data, int totalLen, volatile int *rcvLen)
Set interrupt service routine function to call when FIFO is sufficently full to read.
Definition: RF69.cpp:348
+
void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: RF69.cpp:281
+
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: RF69.cpp:919
+
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Allowed values are RADIOLIB_ENCODING_NRZ, RADIOLIB_ENCODING_MANCHESTER an...
Definition: RF69.cpp:883
+
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in bands 290.0 to 340.0 MHz, 431.0 to 510....
Definition: RF69.cpp:507
+
bool fifoAdd(uint8_t *data, int totalLen, int *remLen)
Set interrupt service routine function to call when FIFO is empty.
Definition: RF69.cpp:325
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
+
int16_t setNodeAddress(uint8_t nodeAddr)
Sets node address. Calling this method will also enable address filtering for node address only.
Definition: RF69.cpp:716
+
int16_t receiveDirect() override
Starts direct mode reception.
Definition: RF69.cpp:192
+
void setAESKey(uint8_t *key)
Sets AES key.
Definition: RF69.cpp:225
+
int16_t setCrcFiltering(bool crcOn=true)
Enable CRC filtering and generation.
Definition: RF69.cpp:817
+
void setAmbientTemperature(int16_t tempAmbient)
Sets ambient temperature. Required to correct values from on-board temperature sensor.
Definition: RF69.cpp:747
+
float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: RF69.cpp:909
+
int16_t setBitRate(float br)
Sets bit rate. Allowed values range from 0.5 to 300.0 kbps.
Definition: RF69.cpp:543
+
int16_t setFrequencyDeviation(float freqDev) override
Sets frequency deviation.
Definition: RF69.cpp:593
+
void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: RF69.cpp:289
+
void clearFifoFullAction()
Clears interrupt service routine to call when FIFO is full.
Definition: RF69.cpp:320
+
int16_t variablePacketLengthMode(uint8_t maxLen=RADIOLIB_RF69_MAX_PACKET_LENGTH)
Set modem in variable packet length mode.
Definition: RF69.cpp:785
+
void reset()
Reset method. Will reset the chip to the default state using RST pin.
Definition: RF69.cpp:96
+
int16_t startReceive()
Interrupt-driven receive method. GDO0 will be activated when full packet is received.
Definition: RF69.cpp:237
RF69(Module *module)
Default constructor.
Definition: RF69.cpp:4
-
int16_t setRSSIThreshold(float dbm)
Sets the RSSI value above which the RSSI interrupt is signaled.
Definition: RF69.cpp:923
+
int16_t setRSSIThreshold(float dbm)
Sets the RSSI value above which the RSSI interrupt is signaled.
Definition: RF69.cpp:913
Definition: Module.h:46
diff --git a/_r_t_t_y_8h_source.html b/_r_t_t_y_8h_source.html index aaa8b5d5..edba8f68 100644 --- a/_r_t_t_y_8h_source.html +++ b/_r_t_t_y_8h_source.html @@ -159,58 +159,62 @@ $(document).ready(function(){initNavTree('_r_t_t_y_8h_source.html',''); initResi
138  size_t write(uint8_t* buff, size_t len);
139  size_t write(uint8_t b);
140 
-
141  size_t print(__FlashStringHelper*);
-
142  size_t print(ITA2String &);
+
141  #if defined(RADIOLIB_BUILD_ARDUINO)
+
142  size_t print(__FlashStringHelper*);
143  size_t print(const String &);
-
144  size_t print(const char[]);
-
145  size_t print(char);
-
146  size_t print(unsigned char, int = DEC);
-
147  size_t print(int, int = DEC);
-
148  size_t print(unsigned int, int = DEC);
-
149  size_t print(long, int = DEC);
-
150  size_t print(unsigned long, int = DEC);
-
151  size_t print(double, int = 2);
-
152 
-
153  size_t println(void);
-
154  size_t println(__FlashStringHelper*);
-
155  size_t println(ITA2String &);
-
156  size_t println(const String &);
-
157  size_t println(const char[]);
-
158  size_t println(char);
-
159  size_t println(unsigned char, int = DEC);
-
160  size_t println(int, int = DEC);
-
161  size_t println(unsigned int, int = DEC);
-
162  size_t println(long, int = DEC);
-
163  size_t println(unsigned long, int = DEC);
-
164  size_t println(double, int = 2);
-
165 
-
166 #if !defined(RADIOLIB_GODMODE)
-
167  private:
-
168 #endif
-
169  PhysicalLayer* _phy;
-
170  #if !defined(RADIOLIB_EXCLUDE_AFSK)
-
171  AFSKClient* _audio;
-
172  #endif
-
173 
-
174  uint8_t _encoding = RADIOLIB_ASCII;
-
175  uint32_t _base = 0, _baseHz = 0;
-
176  uint32_t _shift = 0, _shiftHz = 0;
-
177  uint32_t _bitDuration = 0;
-
178  uint8_t _dataBits = 0;
-
179  uint8_t _stopBits = 0;
-
180 
-
181  void mark();
-
182  void space();
-
183 
-
184  size_t printNumber(unsigned long, uint8_t);
-
185  size_t printFloat(double, uint8_t);
-
186 
-
187  int16_t transmitDirect(uint32_t freq = 0, uint32_t freqHz = 0);
-
188 };
-
189 
-
190 #endif
-
191 
-
192 #endif
+
144  #endif
+
145  size_t print(ITA2String &);
+
146  size_t print(const char[]);
+
147  size_t print(char);
+
148  size_t print(unsigned char, int = DEC);
+
149  size_t print(int, int = DEC);
+
150  size_t print(unsigned int, int = DEC);
+
151  size_t print(long, int = DEC);
+
152  size_t print(unsigned long, int = DEC);
+
153  size_t print(double, int = 2);
+
154 
+
155  size_t println(void);
+
156  #if defined(RADIOLIB_BUILD_ARDUINO)
+
157  size_t println(__FlashStringHelper*);
+
158  size_t println(const String &);
+
159  #endif
+
160  size_t println(ITA2String &);
+
161  size_t println(const char[]);
+
162  size_t println(char);
+
163  size_t println(unsigned char, int = DEC);
+
164  size_t println(int, int = DEC);
+
165  size_t println(unsigned int, int = DEC);
+
166  size_t println(long, int = DEC);
+
167  size_t println(unsigned long, int = DEC);
+
168  size_t println(double, int = 2);
+
169 
+
170 #if !defined(RADIOLIB_GODMODE)
+
171  private:
+
172 #endif
+
173  PhysicalLayer* _phy;
+
174  #if !defined(RADIOLIB_EXCLUDE_AFSK)
+
175  AFSKClient* _audio;
+
176  #endif
+
177 
+
178  uint8_t _encoding = RADIOLIB_ASCII;
+
179  uint32_t _base = 0, _baseHz = 0;
+
180  uint32_t _shift = 0, _shiftHz = 0;
+
181  uint32_t _bitDuration = 0;
+
182  uint8_t _dataBits = 0;
+
183  uint8_t _stopBits = 0;
+
184 
+
185  void mark();
+
186  void space();
+
187 
+
188  size_t printNumber(unsigned long, uint8_t);
+
189  size_t printFloat(double, uint8_t);
+
190 
+
191  int16_t transmitDirect(uint32_t freq = 0, uint32_t freqHz = 0);
+
192 };
+
193 
+
194 #endif
+
195 
+
196 #endif
Client for audio-based transmissions. Requires Arduino tone() function, and a module capable of direc...
Definition: AFSK.h:17
ITA2-encoded string.
Definition: RTTY.h:28
uint8_t * byteArr()
Gets the ITA2 representation of the ASCII string set in constructor.
Definition: RTTY.cpp:40
@@ -219,7 +223,7 @@ $(document).ready(function(){initNavTree('_r_t_t_y_8h_source.html',''); initResi
~ITA2String()
Default destructor.
Definition: RTTY.cpp:22
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
Client for RTTY communication. The public interface is the same as Arduino Serial.
Definition: RTTY.h:88
-
int16_t standby()
Stops transmitting.
Definition: RTTY.cpp:529
+
int16_t standby()
Stops transmitting.
Definition: RTTY.cpp:533
void idle()
Send out idle condition (RF tone at mark frequency).
Definition: RTTY.cpp:174
int16_t begin(float base, uint32_t shift, uint16_t rate, uint8_t encoding=RADIOLIB_ASCII, uint8_t stopBits=1)
Initialization method.
Definition: RTTY.cpp:128
RTTYClient(PhysicalLayer *phy)
Constructor for 2-FSK mode.
Definition: RTTY.cpp:114
diff --git a/_s_t_m32_w_lx_8h_source.html b/_s_t_m32_w_lx_8h_source.html index 524dcb4e..63434617 100644 --- a/_s_t_m32_w_lx_8h_source.html +++ b/_s_t_m32_w_lx_8h_source.html @@ -169,7 +169,7 @@ $(document).ready(function(){initNavTree('_s_t_m32_w_lx_8h_source.html',''); ini
@ MODE_IDLE
Definition: STM32WLx.h:57
int16_t beginFSK(float freq=434.0, float br=4.8, float freqDev=5.0, float rxBw=156.2, int8_t power=10, uint16_t preambleLength=16, float tcxoVoltage=1.6, bool useRegulatorLDO=false)
Initialization method for FSK modem.
Definition: STM32WLx.cpp:29
Derived class for SX1262 modules.
Definition: SX1262.h:23
-
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX126x.cpp:1370
+
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX126x.cpp:1364
diff --git a/_s_x126x_8h_source.html b/_s_x126x_8h_source.html index 5963c820..11ac5e49 100644 --- a/_s_x126x_8h_source.html +++ b/_s_x126x_8h_source.html @@ -526,10 +526,10 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
444 class SX126x: public PhysicalLayer {
445  public:
446  // introduce PhysicalLayer overloads
-
447  using PhysicalLayer::transmit;
-
448  using PhysicalLayer::receive;
-
449  using PhysicalLayer::startTransmit;
-
450  using PhysicalLayer::readData;
+
447  using PhysicalLayer::transmit;
+
448  using PhysicalLayer::receive;
+
449  using PhysicalLayer::startTransmit;
+
450  using PhysicalLayer::readData;
451 
457  SX126x(Module* mod);
458 
@@ -545,9 +545,9 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
503 
512  int16_t reset(bool verify = true);
513 
-
526  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
526  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
527 
-
538  int16_t receive(uint8_t* data, size_t len) override;
+
538  int16_t receive(uint8_t* data, size_t len) override;
539 
547  int16_t transmitDirect(uint32_t frf = 0) override;
548 
@@ -567,7 +567,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
603 
607  void clearDio1Action();
608 
-
621  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
621  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
622 
628  int16_t finishTransmit() override;
629 
@@ -579,7 +579,7 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
680 
686  uint16_t getIrqStatus();
687 
-
698  int16_t readData(uint8_t* data, size_t len) override;
+
698  int16_t readData(uint8_t* data, size_t len) override;
699 
711  int16_t startChannelScan(uint8_t symbolNum = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak = RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin = RADIOLIB_SX126X_CAD_PARAM_DEFAULT);
712 
@@ -769,80 +769,80 @@ $(document).ready(function(){initNavTree('_s_x126x_8h_source.html',''); initResi
static const size_t RFSWITCH_MAX_PINS
The maximum number of pins supported by the RF switch code.
Definition: Module.h:39
@ MODE_TX
Definition: Module.h:68
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
-
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:245
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
virtual int16_t sleep()
Sets module to sleep.
Definition: PhysicalLayer.cpp:113
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:253
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
+
virtual int16_t sleep()
Sets module to sleep.
Definition: PhysicalLayer.cpp:117
Base class for SX126x series. All derived classes for SX126x (e.g. SX1262 or SX1268) inherit from thi...
Definition: SX126x.h:444
-
float getFrequencyError()
Gets frequency error of the latest received packet. WARNING: This functionality is based on SX128x im...
Definition: SX126x.cpp:1257
-
int16_t startReceiveDutyCycleAuto(uint16_t senderPreambleLength=0, uint16_t minSymbols=8, uint16_t irqFlags=RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX126X_IRQ_RX_DONE)
Calls startReceiveDutyCycle with rxPeriod and sleepPeriod set so the unit shouldn't miss any messages...
Definition: SX126x.cpp:580
-
void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: SX126x.cpp:462
-
int16_t startReceive(uint32_t timeout=RADIOLIB_SX126X_RX_TIMEOUT_INF, uint16_t irqFlags=RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX126X_IRQ_RX_DONE, size_t len=0)
Interrupt-driven receive method. DIO1 will be activated when full packet is received.
Definition: SX126x.cpp:539
-
int16_t startChannelScan(uint8_t symbolNum=RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak=RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin=RADIOLIB_SX126X_CAD_PARAM_DEFAULT)
Interrupt-driven channel activity detection method. DIO0 will be activated when LoRa preamble is dete...
Definition: SX126x.cpp:690
-
int16_t setDataShaping(uint8_t sh) override
Sets time-bandwidth product of Gaussian filter applied for shaping. Allowed values are RADIOLIB_SHAPI...
Definition: SX126x.cpp:1002
-
int16_t setRegulatorLDO()
Set regulator mode to LDO.
Definition: SX126x.cpp:1354
-
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX126x.cpp:1366
-
int16_t uploadPatch(const uint32_t *patch, size_t len, bool nonvolatile=true)
Upload binary patch into the SX126x device RAM. Patch is needed to e.g., enable spectral scan and mus...
Definition: SX126x.cpp:1447
-
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Available in FSK mode only. Serves only as alias for PhysicalLayer compat...
Definition: SX126x.cpp:1362
+
float getFrequencyError()
Gets frequency error of the latest received packet. WARNING: This functionality is based on SX128x im...
Definition: SX126x.cpp:1251
+
int16_t startReceiveDutyCycleAuto(uint16_t senderPreambleLength=0, uint16_t minSymbols=8, uint16_t irqFlags=RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX126X_IRQ_RX_DONE)
Calls startReceiveDutyCycle with rxPeriod and sleepPeriod set so the unit shouldn't miss any messages...
Definition: SX126x.cpp:576
+
void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: SX126x.cpp:458
+
int16_t startReceive(uint32_t timeout=RADIOLIB_SX126X_RX_TIMEOUT_INF, uint16_t irqFlags=RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX126X_IRQ_RX_DONE, size_t len=0)
Interrupt-driven receive method. DIO1 will be activated when full packet is received.
Definition: SX126x.cpp:535
+
int16_t startChannelScan(uint8_t symbolNum=RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak=RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin=RADIOLIB_SX126X_CAD_PARAM_DEFAULT)
Interrupt-driven channel activity detection method. DIO0 will be activated when LoRa preamble is dete...
Definition: SX126x.cpp:684
+
int16_t setDataShaping(uint8_t sh) override
Sets time-bandwidth product of Gaussian filter applied for shaping. Allowed values are RADIOLIB_SHAPI...
Definition: SX126x.cpp:996
+
int16_t setRegulatorLDO()
Set regulator mode to LDO.
Definition: SX126x.cpp:1348
+
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX126x.cpp:1360
+
int16_t uploadPatch(const uint32_t *patch, size_t len, bool nonvolatile=true)
Upload binary patch into the SX126x device RAM. Patch is needed to e.g., enable spectral scan and mus...
Definition: SX126x.cpp:1441
+
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Available in FSK mode only. Serves only as alias for PhysicalLayer compat...
Definition: SX126x.cpp:1356
int16_t beginFSK(float br, float freqDev, float rxBw, uint16_t preambleLength, float tcxoVoltage, bool useRegulatorLDO=false)
Initialization method for FSK modem.
Definition: SX126x.cpp:95
-
int16_t setBandwidth(float bw)
Sets LoRa bandwidth. Allowed values are 7.8, 10.4, 15.6, 20.8, 31.25, 41.7, 62.5, 125....
Definition: SX126x.cpp:737
-
int16_t explicitHeader()
Set explicit header mode for future reception/transmission.
Definition: SX126x.cpp:1350
-
int16_t forceLDRO(bool enable)
Forces LoRa low data rate optimization. Only available in LoRa mode. After calling this method,...
Definition: SX126x.cpp:1374
-
int16_t setNodeAddress(uint8_t nodeAddr)
Sets node address. Calling this method will also enable address filtering for node address only.
Definition: SX126x.cpp:1082
-
int16_t spectralScanGetStatus()
Read the status of spectral scan.
Definition: SX126x.cpp:1516
-
int16_t setTCXO(float voltage, uint32_t delay=5000)
Sets TCXO (Temperature Compensated Crystal Oscillator) configuration.
Definition: SX126x.cpp:1536
-
int16_t setRxBandwidth(float rxBw)
Sets FSK receiver bandwidth. Allowed values are 4.8, 5.8, 7.3, 9.7, 11.7, 14.6, 19....
Definition: SX126x.cpp:902
-
int16_t setRegulatorDCDC()
Set regulator mode to DC-DC.
Definition: SX126x.cpp:1358
-
int16_t startReceiveDutyCycle(uint32_t rxPeriod, uint32_t sleepPeriod, uint16_t irqFlags=RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX126X_IRQ_RX_DONE)
Interrupt-driven receive method where the device mostly sleeps and periodically wakes to listen....
Definition: SX126x.cpp:553
-
int16_t setWhitening(bool enabled, uint16_t initial=0x0100)
Sets FSK whitening parameters.
Definition: SX126x.cpp:1186
-
void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: SX126x.cpp:466
-
int16_t scanChannel(uint8_t symbolNum=RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak=RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin=RADIOLIB_SX126X_CAD_PARAM_DEFAULT)
Performs scan for LoRa transmission in the current channel. Detects both preamble and payload.
Definition: SX126x.cpp:420
-
int16_t standby() override
Sets the module to standby mode (overload for PhysicalLayer compatibility, uses 13 MHz RC oscillator)...
Definition: SX126x.cpp:450
-
int16_t setFrequencyDeviation(float freqDev) override
Sets FSK frequency deviation. Allowed values range from 0.0 to 200.0 kHz.
Definition: SX126x.cpp:860
-
int16_t setBitRate(float br)
Sets FSK bit rate. Allowed values range from 0.6 to 300.0 kbps.
Definition: SX126x.cpp:884
-
uint32_t getTimeOnAir(size_t len)
Get expected time-on-air for a given size of payload.
Definition: SX126x.cpp:1311
-
uint8_t randomByte()
Get one truly random byte from RSSI noise.
Definition: SX126x.cpp:1395
-
void spectralScanAbort()
Abort an ongoing spectral scan.
Definition: SX126x.cpp:1512
-
int16_t receiveDirect() override
Starts direct mode reception. Only implemented for PhysicalLayer compatibility, as SX126x series does...
Definition: SX126x.cpp:346
-
int16_t spectralScanStart(uint16_t numSamples, uint8_t window=RADIOLIB_SX126X_SPECTRAL_SCAN_WINDOW_DEFAULT, uint8_t interval=RADIOLIB_SX126X_SCAN_INTERVAL_8_20_US)
Start spectral scan. Requires binary path to be uploaded.
Definition: SX126x.cpp:1496
-
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: SX126x.cpp:531
-
int16_t setCurrentLimit(float currentLimit)
Sets current protection limit. Can be set in 2.5 mA steps.
Definition: SX126x.cpp:825
-
int16_t setRxBoostedGainMode(bool rxbgm, bool persist=true)
Enables or disables Rx Boosted Gain mode as described in SX126x datasheet section 9....
Definition: SX126x.cpp:965
-
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: SX126x.cpp:330
-
int16_t variablePacketLengthMode(uint8_t maxLen=RADIOLIB_SX126X_MAX_PACKET_LENGTH)
Set modem in variable packet length mode. Available in FSK mode only.
Definition: SX126x.cpp:1307
+
int16_t setBandwidth(float bw)
Sets LoRa bandwidth. Allowed values are 7.8, 10.4, 15.6, 20.8, 31.25, 41.7, 62.5, 125....
Definition: SX126x.cpp:731
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t explicitHeader()
Set explicit header mode for future reception/transmission.
Definition: SX126x.cpp:1344
+
int16_t forceLDRO(bool enable)
Forces LoRa low data rate optimization. Only available in LoRa mode. After calling this method,...
Definition: SX126x.cpp:1368
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t setNodeAddress(uint8_t nodeAddr)
Sets node address. Calling this method will also enable address filtering for node address only.
Definition: SX126x.cpp:1076
+
int16_t spectralScanGetStatus()
Read the status of spectral scan.
Definition: SX126x.cpp:1508
+
int16_t setTCXO(float voltage, uint32_t delay=5000)
Sets TCXO (Temperature Compensated Crystal Oscillator) configuration.
Definition: SX126x.cpp:1528
+
int16_t setRxBandwidth(float rxBw)
Sets FSK receiver bandwidth. Allowed values are 4.8, 5.8, 7.3, 9.7, 11.7, 14.6, 19....
Definition: SX126x.cpp:896
+
int16_t setRegulatorDCDC()
Set regulator mode to DC-DC.
Definition: SX126x.cpp:1352
+
int16_t startReceiveDutyCycle(uint32_t rxPeriod, uint32_t sleepPeriod, uint16_t irqFlags=RADIOLIB_SX126X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX126X_IRQ_RX_DONE)
Interrupt-driven receive method where the device mostly sleeps and periodically wakes to listen....
Definition: SX126x.cpp:549
+
int16_t setWhitening(bool enabled, uint16_t initial=0x0100)
Sets FSK whitening parameters.
Definition: SX126x.cpp:1180
+
void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: SX126x.cpp:462
+
int16_t scanChannel(uint8_t symbolNum=RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detPeak=RADIOLIB_SX126X_CAD_PARAM_DEFAULT, uint8_t detMin=RADIOLIB_SX126X_CAD_PARAM_DEFAULT)
Performs scan for LoRa transmission in the current channel. Detects both preamble and payload.
Definition: SX126x.cpp:416
+
int16_t standby() override
Sets the module to standby mode (overload for PhysicalLayer compatibility, uses 13 MHz RC oscillator)...
Definition: SX126x.cpp:446
+
int16_t setFrequencyDeviation(float freqDev) override
Sets FSK frequency deviation. Allowed values range from 0.0 to 200.0 kHz.
Definition: SX126x.cpp:854
+
int16_t setBitRate(float br)
Sets FSK bit rate. Allowed values range from 0.6 to 300.0 kbps.
Definition: SX126x.cpp:878
+
uint32_t getTimeOnAir(size_t len)
Get expected time-on-air for a given size of payload.
Definition: SX126x.cpp:1305
+
uint8_t randomByte()
Get one truly random byte from RSSI noise.
Definition: SX126x.cpp:1389
+
void spectralScanAbort()
Abort an ongoing spectral scan.
Definition: SX126x.cpp:1504
+
int16_t receiveDirect() override
Starts direct mode reception. Only implemented for PhysicalLayer compatibility, as SX126x series does...
Definition: SX126x.cpp:342
+
int16_t spectralScanStart(uint16_t numSamples, uint8_t window=RADIOLIB_SX126X_SPECTRAL_SCAN_WINDOW_DEFAULT, uint8_t interval=RADIOLIB_SX126X_SCAN_INTERVAL_8_20_US)
Start spectral scan. Requires binary path to be uploaded.
Definition: SX126x.cpp:1488
+
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: SX126x.cpp:527
+
int16_t setCurrentLimit(float currentLimit)
Sets current protection limit. Can be set in 2.5 mA steps.
Definition: SX126x.cpp:819
+
int16_t setRxBoostedGainMode(bool rxbgm, bool persist=true)
Enables or disables Rx Boosted Gain mode as described in SX126x datasheet section 9....
Definition: SX126x.cpp:959
+
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: SX126x.cpp:326
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
int16_t variablePacketLengthMode(uint8_t maxLen=RADIOLIB_SX126X_MAX_PACKET_LENGTH)
Set modem in variable packet length mode. Available in FSK mode only.
Definition: SX126x.cpp:1301
int16_t begin(uint8_t cr, uint8_t syncWord, uint16_t preambleLength, float tcxoVoltage, bool useRegulatorLDO=false)
Initialization method for LoRa modem.
Definition: SX126x.cpp:13
-
int16_t setCRC(uint8_t len, uint16_t initial=0x1D0F, uint16_t polynomial=0x1021, bool inverted=true)
Sets CRC configuration.
Definition: SX126x.cpp:1127
-
uint16_t getIrqStatus()
Reads the current IRQ status.
Definition: SX126x.cpp:1692
+
int16_t setCRC(uint8_t len, uint16_t initial=0x1D0F, uint16_t polynomial=0x1021, bool inverted=true)
Sets CRC configuration.
Definition: SX126x.cpp:1121
+
uint16_t getIrqStatus()
Reads the current IRQ status.
Definition: SX126x.cpp:1684
int16_t reset(bool verify=true)
Reset method. Will reset the chip to the default state using RST pin.
Definition: SX126x.cpp:189
-
int16_t setSyncWord(uint8_t syncWord, uint8_t controlBits=0x44)
Sets LoRa sync word.
Definition: SX126x.cpp:814
-
float getCurrentLimit()
Reads current protection limit.
Definition: SX126x.cpp:838
+
int16_t setSyncWord(uint8_t syncWord, uint8_t controlBits=0x44)
Sets LoRa sync word.
Definition: SX126x.cpp:808
+
float getCurrentLimit()
Reads current protection limit.
Definition: SX126x.cpp:832
SX126x(Module *mod)
Default constructor.
Definition: SX126x.cpp:4
-
int16_t setPreambleLength(uint16_t preambleLength)
Sets preamble length for LoRa or FSK modem. Allowed values range from 1 to 65535.
Definition: SX126x.cpp:847
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t autoLDRO()
Re-enables automatic LDRO configuration. Only available in LoRa mode. After calling this method,...
Definition: SX126x.cpp:1386
-
void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode.
Definition: SX126x.cpp:1438
-
int16_t fixedPacketLengthMode(uint8_t len=RADIOLIB_SX126X_MAX_PACKET_LENGTH)
Set modem in fixed packet length mode. Available in FSK mode only.
Definition: SX126x.cpp:1303
-
int16_t setBroadcastAddress(uint8_t broadAddr)
Sets broadcast address. Calling this method will also enable address filtering for node and broadcast...
Definition: SX126x.cpp:1099
-
int16_t getChannelScanResult()
Read the channel scan result.
Definition: SX126x.cpp:716
-
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: SX126x.cpp:1290
-
int16_t setSyncBits(uint8_t *syncWord, uint8_t bitsLen)
Sets FSK sync word in the form of array of up to 8 bytes.
Definition: SX126x.cpp:1055
-
float getDataRate() const
Gets effective data rate for the last transmitted packet. The value is calculated only for payload by...
Definition: SX126x.cpp:1223
-
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX126x.cpp:1370
+
int16_t setPreambleLength(uint16_t preambleLength)
Sets preamble length for LoRa or FSK modem. Allowed values range from 1 to 65535.
Definition: SX126x.cpp:841
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
+
int16_t autoLDRO()
Re-enables automatic LDRO configuration. Only available in LoRa mode. After calling this method,...
Definition: SX126x.cpp:1380
+
void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode.
Definition: SX126x.cpp:1432
+
int16_t fixedPacketLengthMode(uint8_t len=RADIOLIB_SX126X_MAX_PACKET_LENGTH)
Set modem in fixed packet length mode. Available in FSK mode only.
Definition: SX126x.cpp:1297
+
int16_t setBroadcastAddress(uint8_t broadAddr)
Sets broadcast address. Calling this method will also enable address filtering for node and broadcast...
Definition: SX126x.cpp:1093
+
int16_t getChannelScanResult()
Read the channel scan result.
Definition: SX126x.cpp:710
+
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: SX126x.cpp:1284
+
int16_t setSyncBits(uint8_t *syncWord, uint8_t bitsLen)
Sets FSK sync word in the form of array of up to 8 bytes.
Definition: SX126x.cpp:1049
+
float getDataRate() const
Gets effective data rate for the last transmitted packet. The value is calculated only for payload by...
Definition: SX126x.cpp:1217
+
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX126x.cpp:1364
bool XTAL
Whether the module has an XTAL (true) or TCXO (false). Defaults to false.
Definition: SX126x.h:464
-
int16_t invertIQ(bool invertIQ)
Enable/disable inversion of the I and Q signals.
Definition: SX126x.cpp:1424
-
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission.
Definition: SX126x.cpp:1346
-
float getSNR()
Gets SNR (Signal to Noise Ratio) of the last received packet. Only available for LoRa modem.
Definition: SX126x.cpp:1241
-
int16_t setDio2AsRfSwitch(bool enable=true)
Set DIO2 to function as RF switch (default in Semtech example designs).
Definition: SX126x.cpp:1589
-
int16_t spectralScanGetResult(uint16_t *results)
Read the result of spectral scan.
Definition: SX126x.cpp:1524
-
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa spreading factor. Allowed values range from 5 to 12.
Definition: SX126x.cpp:788
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
-
int16_t disableAddressFiltering()
Disables address filtering. Calling this method will also erase previously set addresses.
Definition: SX126x.cpp:1116
-
int16_t setCodingRate(uint8_t cr)
Sets LoRa coding rate denominator. Allowed values range from 5 to 8.
Definition: SX126x.cpp:801
-
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: SX126x.cpp:1442
+
int16_t invertIQ(bool invertIQ)
Enable/disable inversion of the I and Q signals.
Definition: SX126x.cpp:1418
+
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission.
Definition: SX126x.cpp:1340
+
float getSNR()
Gets SNR (Signal to Noise Ratio) of the last received packet. Only available for LoRa modem.
Definition: SX126x.cpp:1235
+
int16_t setDio2AsRfSwitch(bool enable=true)
Set DIO2 to function as RF switch (default in Semtech example designs).
Definition: SX126x.cpp:1581
+
int16_t spectralScanGetResult(uint16_t *results)
Read the result of spectral scan.
Definition: SX126x.cpp:1516
+
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa spreading factor. Allowed values range from 5 to 12.
Definition: SX126x.cpp:782
+
int16_t disableAddressFiltering()
Disables address filtering. Calling this method will also erase previously set addresses.
Definition: SX126x.cpp:1110
+
int16_t setCodingRate(uint8_t cr)
Sets LoRa coding rate denominator. Allowed values range from 5 to 8.
Definition: SX126x.cpp:795
+
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: SX126x.cpp:1436
Definition: Module.h:46
diff --git a/_s_x1272_8h_source.html b/_s_x1272_8h_source.html index 8b1610f7..3d520219 100644 --- a/_s_x1272_8h_source.html +++ b/_s_x1272_8h_source.html @@ -244,24 +244,24 @@ $(document).ready(function(){initNavTree('_s_x1272_8h_source.html',''); initResi
327 
328 #endif
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:28
-
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:245
+
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:253
Derived class for SX1272 modules. Also used as base class for SX1273. Both modules use the same basic...
Definition: SX1272.h:95
void reset() override
Reset method. Will reset the chip to the default state using RST pin.
Definition: SX1272.cpp:73
int16_t setBandwidth(float bw)
Sets LoRa link bandwidth. Allowed values are 125, 250 and 500 kHz. Only available in LoRa mode.
Definition: SX1272.cpp:92
-
int16_t setDataShapingOOK(uint8_t sh)
Sets filter cutoff frequency that will be used for data shaping. Allowed values are 1 for frequency e...
Definition: SX1272.cpp:329
-
int16_t forceLDRO(bool enable)
Forces LoRa low data rate optimization. Only available in LoRa mode. After calling this method,...
Definition: SX1272.cpp:394
-
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission. Required for spreading factor 6.
Definition: SX1272.cpp:416
-
int16_t setOutputPower(int8_t power, bool useRfo=false)
Sets transmission output power. Allowed values range from -1 to 14 dBm (RFO pin) or +2 to +20 dBm (PA...
Definition: SX1272.cpp:226
-
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa link spreading factor. Allowed values range from 6 to 12. Only available in LoRa mode.
Definition: SX1272.cpp:132
+
int16_t setDataShapingOOK(uint8_t sh)
Sets filter cutoff frequency that will be used for data shaping. Allowed values are 1 for frequency e...
Definition: SX1272.cpp:325
+
int16_t forceLDRO(bool enable)
Forces LoRa low data rate optimization. Only available in LoRa mode. After calling this method,...
Definition: SX1272.cpp:390
+
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission. Required for spreading factor 6.
Definition: SX1272.cpp:412
+
int16_t setOutputPower(int8_t power, bool useRfo=false)
Sets transmission output power. Allowed values range from -1 to 14 dBm (RFO pin) or +2 to +20 dBm (PA...
Definition: SX1272.cpp:222
+
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa link spreading factor. Allowed values range from 6 to 12. Only available in LoRa mode.
Definition: SX1272.cpp:130
int16_t beginFSK(float freq=915.0, float br=4.8, float freqDev=5.0, float rxBw=125.0, int8_t power=10, uint16_t preambleLength=16, bool enableOOK=false)
FSK modem initialization method. Must be called at least once from Arduino sketch to initialize the m...
Definition: SX1272.cpp:39
-
int16_t setDataShaping(uint8_t sh) override
Sets Gaussian filter bandwidth-time product that will be used for data shaping. Only available in FSK...
Definition: SX1272.cpp:299
-
int16_t setCodingRate(uint8_t cr)
Sets LoRa link coding rate denominator. Allowed values range from 5 to 8. Only available in LoRa mode...
Definition: SX1272.cpp:188
+
int16_t setDataShaping(uint8_t sh) override
Sets Gaussian filter bandwidth-time product that will be used for data shaping. Only available in FSK...
Definition: SX1272.cpp:295
+
int16_t setCodingRate(uint8_t cr)
Sets LoRa link coding rate denominator. Allowed values range from 5 to 8. Only available in LoRa mode...
Definition: SX1272.cpp:184
SX1272(Module *mod)
Default constructor. Called from Arduino sketch when creating new LoRa instance.
Definition: SX1272.cpp:4
-
int16_t setBitRate(float br) override
Sets FSK bit rate. Allowed values range from 0.5 to 300 kbps. Only available in FSK mode.
Definition: SX1272.cpp:222
-
int16_t autoLDRO()
Re-enables automatic LDRO configuration. Only available in LoRa mode. After calling this method,...
Definition: SX1272.cpp:407
-
int16_t setCRC(bool enable, bool mode=false)
Enables/disables CRC check of received packets.
Definition: SX1272.cpp:366
-
int16_t setGain(uint8_t gain)
Sets gain of receiver LNA (low-noise amplifier). Can be set to any integer in range 1 to 6 where 1 is...
Definition: SX1272.cpp:263
-
int16_t explicitHeader()
Set explicit header mode for future reception/transmission.
Definition: SX1272.cpp:420
+
int16_t setBitRate(float br) override
Sets FSK bit rate. Allowed values range from 0.5 to 300 kbps. Only available in FSK mode.
Definition: SX1272.cpp:218
+
int16_t autoLDRO()
Re-enables automatic LDRO configuration. Only available in LoRa mode. After calling this method,...
Definition: SX1272.cpp:403
+
int16_t setCRC(bool enable, bool mode=false)
Enables/disables CRC check of received packets.
Definition: SX1272.cpp:362
+
int16_t setGain(uint8_t gain)
Sets gain of receiver LNA (low-noise amplifier). Can be set to any integer in range 1 to 6 where 1 is...
Definition: SX1272.cpp:259
+
int16_t explicitHeader()
Set explicit header mode for future reception/transmission.
Definition: SX1272.cpp:416
int16_t begin(float freq=915.0, float bw=125.0, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_SX127X_SYNC_WORD, int8_t power=10, uint16_t preambleLength=8, uint8_t gain=0)
LoRa modem initialization method. Must be called at least once from Arduino sketch to initialize the ...
Definition: SX1272.cpp:8
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values range from 860.0 MHz to 1020.0 MHz.
Definition: SX1272.cpp:81
Base class for SX127x series. All derived classes for SX127x (e.g. SX1278 or SX1272) inherit from thi...
Definition: SX127x.h:583
diff --git a/_s_x1278_8h_source.html b/_s_x1278_8h_source.html index f7e2d8de..0d7dc281 100644 --- a/_s_x1278_8h_source.html +++ b/_s_x1278_8h_source.html @@ -253,26 +253,26 @@ $(document).ready(function(){initNavTree('_s_x1278_8h_source.html',''); initResi
336 
337 #endif
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:28
-
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:245
+
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:253
Derived class for SX1278 modules. Also used as base class for SX1276, SX1277, SX1279,...
Definition: SX1278.h:104
SX1278(Module *mod)
Default constructor. Called from Arduino sketch when creating new LoRa instance.
Definition: SX1278.cpp:4
-
int16_t setDataShapingOOK(uint8_t sh)
Sets filter cutoff frequency that will be used for data shaping. Allowed values are 1 for frequency e...
Definition: SX1278.cpp:359
+
int16_t setDataShapingOOK(uint8_t sh)
Sets filter cutoff frequency that will be used for data shaping. Allowed values are 1 for frequency e...
Definition: SX1278.cpp:355
int16_t setBandwidth(float bw)
Sets LoRa link bandwidth. Allowed values are 10.4, 15.6, 20.8, 31.25, 41.7, 62.5, 125,...
Definition: SX1278.cpp:92
-
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission. Required for spreading factor 6.
Definition: SX1278.cpp:449
+
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission. Required for spreading factor 6.
Definition: SX1278.cpp:445
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values range from 137.0 MHz to 525.0 MHz.
Definition: SX1278.cpp:81
void reset() override
Reset method. Will reset the chip to the default state using RST pin.
Definition: SX1278.cpp:73
-
int16_t forceLDRO(bool enable)
Forces LoRa low data rate optimization. Only available in LoRa mode. After calling this method,...
Definition: SX1278.cpp:427
-
int16_t explicitHeader()
Set explicit header mode for future reception/transmission.
Definition: SX1278.cpp:453
-
int16_t setOutputPower(int8_t power, bool useRfo=false)
Sets transmission output power. Allowed values range from -3 to 15 dBm (RFO pin) or +2 to +17 dBm (PA...
Definition: SX1278.cpp:240
-
int16_t setCodingRate(uint8_t cr)
Sets LoRa link coding rate denominator. Allowed values range from 5 to 8. Only available in LoRa mode...
Definition: SX1278.cpp:202
+
int16_t forceLDRO(bool enable)
Forces LoRa low data rate optimization. Only available in LoRa mode. After calling this method,...
Definition: SX1278.cpp:423
+
int16_t explicitHeader()
Set explicit header mode for future reception/transmission.
Definition: SX1278.cpp:449
+
int16_t setOutputPower(int8_t power, bool useRfo=false)
Sets transmission output power. Allowed values range from -3 to 15 dBm (RFO pin) or +2 to +17 dBm (PA...
Definition: SX1278.cpp:236
+
int16_t setCodingRate(uint8_t cr)
Sets LoRa link coding rate denominator. Allowed values range from 5 to 8. Only available in LoRa mode...
Definition: SX1278.cpp:198
int16_t beginFSK(float freq=434.0, float br=4.8, float freqDev=5.0, float rxBw=125.0, int8_t power=10, uint16_t preambleLength=16, bool enableOOK=false)
FSK modem initialization method. Must be called at least once from Arduino sketch to initialize the m...
Definition: SX1278.cpp:39
int16_t begin(float freq=434.0, float bw=125.0, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_SX127X_SYNC_WORD, int8_t power=10, uint16_t preambleLength=8, uint8_t gain=0)
LoRa modem initialization method. Must be called at least once from Arduino sketch to initialize the ...
Definition: SX1278.cpp:8
-
int16_t setGain(uint8_t gain)
Sets gain of receiver LNA (low-noise amplifier). Can be set to any integer in range 1 to 6 where 1 is...
Definition: SX1278.cpp:288
-
int16_t setCRC(bool enable, bool mode=false)
Enables/disables CRC check of received packets.
Definition: SX1278.cpp:399
-
int16_t autoLDRO()
Re-enables automatic LDRO configuration. Only available in LoRa mode. After calling this method,...
Definition: SX1278.cpp:440
-
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa link spreading factor. Allowed values range from 6 to 12. Only available in LoRa mode.
Definition: SX1278.cpp:146
-
int16_t setDataShaping(uint8_t sh) override
Sets Gaussian filter bandwidth-time product that will be used for data shaping. Only available in FSK...
Definition: SX1278.cpp:324
-
int16_t setBitRate(float br) override
Sets FSK bit rate. Allowed values range from 0.5 to 300 kbps. Only available in FSK mode.
Definition: SX1278.cpp:236
+
int16_t setGain(uint8_t gain)
Sets gain of receiver LNA (low-noise amplifier). Can be set to any integer in range 1 to 6 where 1 is...
Definition: SX1278.cpp:284
+
int16_t setCRC(bool enable, bool mode=false)
Enables/disables CRC check of received packets.
Definition: SX1278.cpp:395
+
int16_t autoLDRO()
Re-enables automatic LDRO configuration. Only available in LoRa mode. After calling this method,...
Definition: SX1278.cpp:436
+
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa link spreading factor. Allowed values range from 6 to 12. Only available in LoRa mode.
Definition: SX1278.cpp:144
+
int16_t setDataShaping(uint8_t sh) override
Sets Gaussian filter bandwidth-time product that will be used for data shaping. Only available in FSK...
Definition: SX1278.cpp:320
+
int16_t setBitRate(float br) override
Sets FSK bit rate. Allowed values range from 0.5 to 300 kbps. Only available in FSK mode.
Definition: SX1278.cpp:232
Base class for SX127x series. All derived classes for SX127x (e.g. SX1278 or SX1272) inherit from thi...
Definition: SX127x.h:583
diff --git a/_s_x127x_8h_source.html b/_s_x127x_8h_source.html index 3b946c51..a67b453d 100644 --- a/_s_x127x_8h_source.html +++ b/_s_x127x_8h_source.html @@ -665,10 +665,10 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
583 class SX127x: public PhysicalLayer {
584  public:
585  // introduce PhysicalLayer overloads
-
586  using PhysicalLayer::transmit;
-
587  using PhysicalLayer::receive;
-
588  using PhysicalLayer::startTransmit;
-
589  using PhysicalLayer::readData;
+
586  using PhysicalLayer::transmit;
+
587  using PhysicalLayer::receive;
+
588  using PhysicalLayer::startTransmit;
+
589  using PhysicalLayer::readData;
590 
591  // constructor
592 
@@ -684,9 +684,9 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
621 
637  int16_t beginFSK(uint8_t chipVersion, float freqDev, float rxBw, uint16_t preambleLength, bool enableOOK);
638 
-
651  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
651  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
652 
-
663  int16_t receive(uint8_t* data, size_t len) override;
+
663  int16_t receive(uint8_t* data, size_t len) override;
664 
670  int16_t scanChannel();
671 
@@ -724,7 +724,7 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
787 
799  bool fifoGet(volatile uint8_t* data, int totalLen, volatile int* rcvLen);
800 
-
812  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
812  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
813 
819  int16_t finishTransmit() override;
820 
@@ -732,7 +732,7 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
831 
845  int16_t startReceive(uint32_t mode, uint16_t irqFlags, uint16_t irqMask, size_t len);
846 
-
857  int16_t readData(uint8_t* data, size_t len) override;
+
857  int16_t readData(uint8_t* data, size_t len) override;
858 
865  int16_t startChannelScan();
866 
@@ -886,37 +886,39 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:28
static const size_t RFSWITCH_MAX_PINS
The maximum number of pins supported by the RF switch code.
Definition: Module.h:39
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
-
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:245
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
virtual float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: PhysicalLayer.cpp:253
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
Base class for SX127x series. All derived classes for SX127x (e.g. SX1278 or SX1272) inherit from thi...
Definition: SX127x.h:583
-
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: SX127x.cpp:1520
+
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: SX127x.cpp:1510
int16_t packetMode()
Disables direct mode and enables packet mode, allowing the module to receive packets....
Definition: SX127x.cpp:359
void clearFifoFullAction()
Clears interrupt service routine to call when FIFO is full.
Definition: SX127x.cpp:468
int16_t setOokFixedOrFloorThreshold(uint8_t value)
Fixed threshold for the Data Slicer in OOK mode or floor threshold for the Data Slicer in OOK when Pe...
Definition: SX127x.cpp:1032
int16_t enableBitSync()
Enable Bit synchronizer.
Definition: SX127x.cpp:1056
int16_t variablePacketLengthMode(uint8_t maxLen=RADIOLIB_SX127X_MAX_PACKET_LENGTH_FSK)
Set modem in variable packet length mode. Available in FSK mode only.
Definition: SX127x.cpp:1136
int16_t startChannelScan()
Interrupt-driven channel activity detection method. DIO0 will be activated when LoRa preamble is dete...
Definition: SX127x.cpp:649
-
int16_t invertIQ(bool invertIQ)
Enable/disable inversion of the I and Q signals.
Definition: SX127x.cpp:1495
+
int16_t invertIQ(bool invertIQ)
Enable/disable inversion of the I and Q signals.
Definition: SX127x.cpp:1485
void setFifoFullAction(void(*func)(void))
Set interrupt service routine function to call when FIFO is full.
Definition: SX127x.cpp:459
int16_t setOOK(bool enableOOK)
Enables/disables OOK modulation instead of FSK.
Definition: SX127x.cpp:1064
bool fifoGet(volatile uint8_t *data, int totalLen, volatile int *rcvLen)
Set interrupt service routine function to call when FIFO is sufficently full to read.
Definition: SX127x.cpp:496
int16_t setRxBandwidth(float rxBw)
Sets FSK receiver bandwidth. Allowed values range from 2.6 to 250 kHz. Only available in FSK mode.
Definition: SX127x.cpp:902
uint8_t getModemStatus()
Reads modem status. Only available in LoRa mode.
Definition: SX127x.cpp:1259
virtual void reset()=0
Reset method. Will reset the chip to the default state using RST pin. Declared pure virtual since SX1...
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
bool fifoAdd(uint8_t *data, int totalLen, int *remLen)
Set interrupt service routine function to call when FIFO is empty.
Definition: SX127x.cpp:473
int16_t setCurrentLimit(uint8_t currentLimit)
Sets current limit for over current protection at transmitter amplifier. Allowed values range from 45...
Definition: SX127x.cpp:687
-
void clearFHSSInt(void)
Clear the FHSS interrupt.
Definition: SX127x.cpp:1537
+
void clearFHSSInt(void)
Clear the FHSS interrupt.
Definition: SX127x.cpp:1527
int16_t setAFC(bool isEnabled)
Enables or disables FSK automatic frequency correction(AFC)
Definition: SX127x.cpp:934
int16_t sleep()
Sets the LoRa module to sleep to save power. Module will not be able to transmit or receive any data ...
Definition: SX127x.cpp:272
int16_t setFrequencyDeviation(float freqDev) override
Sets FSK frequency deviation from carrier frequency. Allowed values depend on bit rate setting and mu...
Definition: SX127x.cpp:860
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: SX127x.cpp:1104
int16_t setOokPeakThresholdStep(uint8_t value)
Size of each decrement of the RSSI threshold in the OOK demodulator.
Definition: SX127x.cpp:1048
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
float getAFCError()
Gets current AFC error.
Definition: SX127x.cpp:793
int16_t setRSSIThreshold(float dbm)
Sets the RSSI value above which the RSSI interrupt is signaled.
Definition: SX127x.cpp:1196
-
uint8_t getFHSSChannel(void)
Gets the FHSS channel in use.
Definition: SX127x.cpp:1533
+
uint8_t getFHSSChannel(void)
Gets the FHSS channel in use.
Definition: SX127x.cpp:1523
int16_t begin(uint8_t chipVersion, uint8_t syncWord, uint16_t preambleLength)
Initialization method. Will be called with appropriate parameters when calling initialization method ...
Definition: SX127x.cpp:12
int16_t setAFCBandwidth(float afcBw)
Sets FSK automatic frequency correction bandwidth. Allowed values range from 2.6 to 250 kHz....
Definition: SX127x.cpp:918
uint8_t randomByte()
Get one truly random byte from RSSI noise.
Definition: SX127x.cpp:1277
@@ -926,21 +928,22 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
void clearDio0Action()
Clears interrupt service routine to call when DIO0 activates.
Definition: SX127x.cpp:432
int16_t beginFSK(uint8_t chipVersion, float freqDev, float rxBw, uint16_t preambleLength, bool enableOOK)
Initialization method for FSK modem. Will be called with appropriate parameters when calling FSK init...
Definition: SX127x.cpp:59
int16_t standby() override
Sets the LoRa module to standby.
Definition: SX127x.cpp:280
-
int16_t setDIOPreambleDetect(bool usePreambleDetect)
Configure DIO mapping to use RSSI or Preamble Detect for pins that support it.
Definition: SX127x.cpp:1556
-
int16_t setFHSSHoppingPeriod(uint8_t freqHoppingPeriod)
Sets the hopping period and enables FHSS.
Definition: SX127x.cpp:1525
+
int16_t setDIOPreambleDetect(bool usePreambleDetect)
Configure DIO mapping to use RSSI or Preamble Detect for pins that support it.
Definition: SX127x.cpp:1546
+
int16_t setFHSSHoppingPeriod(uint8_t freqHoppingPeriod)
Sets the hopping period and enables FHSS.
Definition: SX127x.cpp:1515
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: SX127x.cpp:590
int16_t disableBitSync()
Disable Bit synchronizer (not allowed in Packet mode).
Definition: SX127x.cpp:1060
int16_t setOokThresholdType(uint8_t type)
Selects the type of threshold in the OOK data slicer.
Definition: SX127x.cpp:1024
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
int8_t getTempRaw()
Reads uncalibrated temperature value. This function will change operating mode and should not be call...
Definition: SX127x.cpp:1306
int16_t setCrcFiltering(bool crcOn=true)
Enable CRC filtering and generation.
Definition: SX127x.cpp:1186
void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: SX127x.cpp:443
-
void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode.
Definition: SX127x.cpp:1516
+
void setDirectAction(void(*func)(void))
Set interrupt service routine function to call when data bit is receveid in direct mode.
Definition: SX127x.cpp:1506
int16_t receiveDirect() override
Enables direct reception mode on pins DIO1 (clock) and DIO2 (data). While in direct mode,...
Definition: SX127x.cpp:322
void clearFifoEmptyAction()
Clears interrupt service routine to call when FIFO is empty.
Definition: SX127x.cpp:455
int16_t setOokPeakThresholdDecrement(uint8_t value)
Period of decrement of the RSSI threshold in the OOK demodulator.
Definition: SX127x.cpp:1040
int16_t setAFCAGCTrigger(uint8_t trigger)
Controls trigger of AFC and AGC.
Definition: SX127x.cpp:944
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
int16_t setPreambleLength(uint16_t preambleLength)
Sets LoRa or FSK preamble length. Allowed values range from 6 to 65535 in LoRa mode or 0 to 65535 in ...
Definition: SX127x.cpp:711
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
int16_t setNodeAddress(uint8_t nodeAddr)
Sets FSK node address. Calling this method will enable address filtering. Only available in FSK mode.
Definition: SX127x.cpp:978
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Only available in FSK mode. Allowed values are RADIOLIB_ENCODING_NRZ,...
Definition: SX127x.cpp:1225
float getSNR()
Gets signal-to-noise ratio of the latest received packet. Only available in LoRa mode.
Definition: SX127x.cpp:809
@@ -951,19 +954,16 @@ $(document).ready(function(){initNavTree('_s_x127x_8h_source.html',''); initResi
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX127x.cpp:1273
int16_t setRSSIConfig(uint8_t smoothingSamples, int8_t offset=0)
Sets RSSI measurement configuration in FSK mode.
Definition: SX127x.cpp:1202
uint32_t getTimeOnAir(size_t len)
Get expected time-on-air for a given size of payload.
Definition: SX127x.cpp:1140
-
uint8_t getFHSSHoppingPeriod(void)
Gets FHSS hopping period.
Definition: SX127x.cpp:1529
+
uint8_t getFHSSHoppingPeriod(void)
Gets FHSS hopping period.
Definition: SX127x.cpp:1519
int16_t scanChannel()
Performs scan for valid LoRa preamble in the current channel.
Definition: SX127x.cpp:256
-
int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: SX127x.cpp:1546
+
int16_t setDIOMapping(RADIOLIB_PIN_TYPE pin, uint8_t value)
Configure DIO pin mapping to get a given signal on a DIO pin (if available).
Definition: SX127x.cpp:1536
float getDataRate() const
Get data rate of the latest transmitted packet.
Definition: SX127x.cpp:820
int16_t startReceive(uint8_t len=0, uint8_t mode=RADIOLIB_SX127X_RXCONTINUOUS)
Interrupt-driven receive method. DIO0 will be activated when full valid packet is received.
Definition: SX127x.cpp:368
void setDio1Action(void(*func)(void), RADIOLIB_INTERRUPT_STATUS dir=RISING)
Set interrupt service routine function to call when DIO1 activates.
Definition: SX127x.cpp:436
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX127x.cpp:1269
int16_t getChipVersion()
Read version SPI register. Should return SX1278_CHIP_VERSION (0x12) or SX1272_CHIP_VERSION (0x22) if ...
Definition: SX127x.cpp:1302
int16_t transmitDirect(uint32_t frf=0) override
Enables direct transmission mode on pins DIO1 (clock) and DIO2 (data). While in direct mode,...
Definition: SX127x.cpp:293
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
float getFrequencyError(bool autoCorrect=false)
Gets frequency error of the latest received packet.
Definition: SX127x.cpp:740
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
int16_t disableAddressFiltering()
Disables FSK address filtering.
Definition: SX127x.cpp:1006
Definition: Module.h:46
diff --git a/_s_x128x_8h_source.html b/_s_x128x_8h_source.html index 08c2318e..eb1d2f09 100644 --- a/_s_x128x_8h_source.html +++ b/_s_x128x_8h_source.html @@ -433,10 +433,10 @@ $(document).ready(function(){initNavTree('_s_x128x_8h_source.html',''); initResi
351 class SX128x: public PhysicalLayer {
352  public:
353  // introduce PhysicalLayer overloads
-
354  using PhysicalLayer::transmit;
-
355  using PhysicalLayer::receive;
-
356  using PhysicalLayer::startTransmit;
-
357  using PhysicalLayer::readData;
+
354  using PhysicalLayer::transmit;
+
355  using PhysicalLayer::receive;
+
356  using PhysicalLayer::startTransmit;
+
357  using PhysicalLayer::readData;
358 
364  SX128x(Module* mod);
365 
@@ -454,9 +454,9 @@ $(document).ready(function(){initNavTree('_s_x128x_8h_source.html',''); initResi
443 
452  int16_t reset(bool verify = true);
453 
-
466  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
466  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
467 
-
478  int16_t receive(uint8_t* data, size_t len) override;
+
478  int16_t receive(uint8_t* data, size_t len) override;
479 
487  int16_t transmitDirect(uint32_t frf = 0) override;
488 
@@ -476,7 +476,7 @@ $(document).ready(function(){initNavTree('_s_x128x_8h_source.html',''); initResi
537 
541  void clearDio1Action();
542 
-
555  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
555  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
556 
562  int16_t finishTransmit() override;
563 
@@ -484,7 +484,7 @@ $(document).ready(function(){initNavTree('_s_x128x_8h_source.html',''); initResi
579 
584  uint16_t getIrqStatus();
585 
-
596  int16_t readData(uint8_t* data, size_t len) override;
+
596  int16_t readData(uint8_t* data, size_t len) override;
597 
598  // configuration methods
599 
@@ -622,60 +622,60 @@ $(document).ready(function(){initNavTree('_s_x128x_8h_source.html',''); initResi
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:28
static const size_t RFSWITCH_MAX_PINS
The maximum number of pins supported by the RF switch code.
Definition: Module.h:39
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
virtual int16_t sleep()
Sets module to sleep.
Definition: PhysicalLayer.cpp:113
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
+
virtual int16_t sleep()
Sets module to sleep.
Definition: PhysicalLayer.cpp:117
Base class for SX128x series. All derived classes for SX128x (e.g. SX1280 or SX1281) inherit from thi...
Definition: SX128x.h:351
-
void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: SX128x.cpp:469
-
int16_t setSyncWord(uint8_t *syncWord, uint8_t len)
Sets FSK/FLRC sync word in the form of array of up to 5 bytes (FSK). For FLRC modem,...
Definition: SX128x.cpp:899
-
int16_t setPreambleLength(uint32_t preambleLength)
Sets preamble length for currently active modem. Allowed values range from 1 to 65535.
Definition: SX128x.cpp:731
-
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in range from 2400.0 to 2500.0 MHz.
Definition: SX128x.cpp:625
-
uint32_t getTimeOnAir(size_t len)
Get expected time-on-air for a given size of payload.
Definition: SX128x.cpp:1196
+
void setDio1Action(void(*func)(void))
Sets interrupt service routine to call when DIO1 activates.
Definition: SX128x.cpp:465
+
int16_t setSyncWord(uint8_t *syncWord, uint8_t len)
Sets FSK/FLRC sync word in the form of array of up to 5 bytes (FSK). For FLRC modem,...
Definition: SX128x.cpp:895
+
int16_t setPreambleLength(uint32_t preambleLength)
Sets preamble length for currently active modem. Allowed values range from 1 to 65535.
Definition: SX128x.cpp:727
+
int16_t setFrequency(float freq)
Sets carrier frequency. Allowed values are in range from 2400.0 to 2500.0 MHz.
Definition: SX128x.cpp:621
+
uint32_t getTimeOnAir(size_t len)
Get expected time-on-air for a given size of payload.
Definition: SX128x.cpp:1192
int16_t reset(bool verify=true)
Reset method. Will reset the chip to the default state using RST pin.
Definition: SX128x.cpp:262
-
int16_t setFrequencyDeviation(float freqDev) override
Sets FSK frequency deviation. Allowed values range from 0.0 to 3200.0 kHz.
Definition: SX128x.cpp:836
-
float getFrequencyError()
Gets frequency error of the latest received packet.
Definition: SX128x.cpp:1150
-
int16_t standby() override
Sets the module to standby mode (overload for PhysicalLayer compatibility, uses 13 MHz RC oscillator)...
Definition: SX128x.cpp:457
-
void readBit(RADIOLIB_PIN_TYPE pin)
Dummy method, to ensure PhysicalLayer compatibility.
Definition: SX128x.cpp:1306
+
int16_t setFrequencyDeviation(float freqDev) override
Sets FSK frequency deviation. Allowed values range from 0.0 to 3200.0 kHz.
Definition: SX128x.cpp:832
+
float getFrequencyError()
Gets frequency error of the latest received packet.
Definition: SX128x.cpp:1146
+
int16_t standby() override
Sets the module to standby mode (overload for PhysicalLayer compatibility, uses 13 MHz RC oscillator)...
Definition: SX128x.cpp:453
+
void readBit(RADIOLIB_PIN_TYPE pin)
Dummy method, to ensure PhysicalLayer compatibility.
Definition: SX128x.cpp:1302
int16_t beginBLE(float freq=2400.0, uint16_t br=800, float freqDev=400.0, int8_t power=10, uint8_t dataShaping=RADIOLIB_SHAPING_0_5)
Initialization method for BLE modem.
Definition: SX128x.cpp:142
-
int16_t setGainControl(uint8_t gain=0)
Enables or disables receiver manual gain control.
Definition: SX128x.cpp:1070
-
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: SX128x.cpp:1183
-
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: SX128x.cpp:541
-
int16_t setBitRate(float br)
Sets FSK or FLRC bit rate. Allowed values are 125, 250, 400, 500, 800, 1000, 1600 and 2000 kbps (for ...
Definition: SX128x.cpp:779
-
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: SX128x.cpp:373
-
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX128x.cpp:1272
-
int16_t setHighSensitivityMode(bool hsm=false)
Enables or disables receiver high sensitivity mode.
Definition: SX128x.cpp:1053
-
int16_t startReceive(uint16_t timeout=RADIOLIB_SX128X_RX_TIMEOUT_INF, uint16_t irqFlags=RADIOLIB_SX128X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX128X_IRQ_RX_DONE, size_t len=0)
Interrupt-driven receive method. DIO1 will be activated when full packet is received.
Definition: SX128x.cpp:549
-
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Serves only as alias for PhysicalLayer compatibility.
Definition: SX128x.cpp:1268
-
int16_t scanChannel()
Performs scan for LoRa transmission in the current channel. Detects both preamble and payload.
Definition: SX128x.cpp:396
-
float getSNR()
Gets SNR (Signal to Noise Ratio) of the last received packet. Only available for LoRa or ranging mode...
Definition: SX128x.cpp:1130
-
int16_t setWhitening(bool enabled)
Sets whitening parameters, not available for LoRa or FLRC modem.
Definition: SX128x.cpp:1022
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t setGainControl(uint8_t gain=0)
Enables or disables receiver manual gain control.
Definition: SX128x.cpp:1066
+
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: SX128x.cpp:1179
+
int16_t finishTransmit() override
Clean up after transmission is done.
Definition: SX128x.cpp:537
+
int16_t setBitRate(float br)
Sets FSK or FLRC bit rate. Allowed values are 125, 250, 400, 500, 800, 1000, 1600 and 2000 kbps (for ...
Definition: SX128x.cpp:775
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t transmitDirect(uint32_t frf=0) override
Starts direct mode transmission.
Definition: SX128x.cpp:369
+
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX128x.cpp:1268
+
int16_t setHighSensitivityMode(bool hsm=false)
Enables or disables receiver high sensitivity mode.
Definition: SX128x.cpp:1049
+
int16_t startReceive(uint16_t timeout=RADIOLIB_SX128X_RX_TIMEOUT_INF, uint16_t irqFlags=RADIOLIB_SX128X_IRQ_RX_DEFAULT, uint16_t irqMask=RADIOLIB_SX128X_IRQ_RX_DONE, size_t len=0)
Interrupt-driven receive method. DIO1 will be activated when full packet is received.
Definition: SX128x.cpp:545
+
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Serves only as alias for PhysicalLayer compatibility.
Definition: SX128x.cpp:1264
+
int16_t scanChannel()
Performs scan for LoRa transmission in the current channel. Detects both preamble and payload.
Definition: SX128x.cpp:392
+
float getSNR()
Gets SNR (Signal to Noise Ratio) of the last received packet. Only available for LoRa or ranging mode...
Definition: SX128x.cpp:1126
+
int16_t setWhitening(bool enabled)
Sets whitening parameters, not available for LoRa or FLRC modem.
Definition: SX128x.cpp:1018
int16_t beginGFSK(float freq=2400.0, uint16_t br=800, float freqDev=400.0, int8_t power=10, uint16_t preambleLength=16)
Initialization method for GFSK modem.
Definition: SX128x.cpp:73
-
int16_t setAccessAddress(uint32_t addr)
Sets BLE access address.
Definition: SX128x.cpp:1042
-
int16_t explicitHeader()
Set explicit header mode for future reception/transmission.
Definition: SX128x.cpp:1264
-
float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: SX128x.cpp:1106
-
uint8_t randomByte()
Dummy random method, to ensure PhysicalLayer compatibility.
Definition: SX128x.cpp:1280
-
int16_t setDataShaping(uint8_t sh) override
Sets time-bandwidth product of Gaussian filter applied for shaping. Allowed values are RADIOLIB_SHAPI...
Definition: SX128x.cpp:869
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
int16_t setAccessAddress(uint32_t addr)
Sets BLE access address.
Definition: SX128x.cpp:1038
+
int16_t explicitHeader()
Set explicit header mode for future reception/transmission.
Definition: SX128x.cpp:1260
+
float getRSSI()
Gets RSSI (Recorded Signal Strength Indicator) of the last received packet.
Definition: SX128x.cpp:1102
+
uint8_t randomByte()
Dummy random method, to ensure PhysicalLayer compatibility.
Definition: SX128x.cpp:1276
+
int16_t setDataShaping(uint8_t sh) override
Sets time-bandwidth product of Gaussian filter applied for shaping. Allowed values are RADIOLIB_SHAPI...
Definition: SX128x.cpp:865
SX128x(Module *mod)
Default constructor.
Definition: SX128x.cpp:4
-
int16_t setCodingRate(uint8_t cr, bool longInterleaving=false)
Sets LoRa coding rate denominator. Allowed values range from 5 to 8.
Definition: SX128x.cpp:697
-
int16_t invertIQ(bool invertIQ)
Enable/disable inversion of the I and Q signals.
Definition: SX128x.cpp:1286
-
int16_t setCRC(uint8_t len, uint32_t initial=0x1D0F, uint16_t polynomial=0x1021)
Sets CRC configuration.
Definition: SX128x.cpp:958
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: SX128x.cpp:473
-
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission.
Definition: SX128x.cpp:1260
+
int16_t setCodingRate(uint8_t cr, bool longInterleaving=false)
Sets LoRa coding rate denominator. Allowed values range from 5 to 8.
Definition: SX128x.cpp:693
+
int16_t invertIQ(bool invertIQ)
Enable/disable inversion of the I and Q signals.
Definition: SX128x.cpp:1282
+
int16_t setCRC(uint8_t len, uint32_t initial=0x1D0F, uint16_t polynomial=0x1021)
Sets CRC configuration.
Definition: SX128x.cpp:954
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
+
void clearDio1Action()
Clears interrupt service routine to call when DIO1 activates.
Definition: SX128x.cpp:469
+
int16_t implicitHeader(size_t len)
Set implicit header mode for future reception/transmission.
Definition: SX128x.cpp:1256
int16_t beginFLRC(float freq=2400.0, uint16_t br=650, uint8_t cr=3, int8_t power=10, uint16_t preambleLength=16, uint8_t dataShaping=RADIOLIB_SHAPING_0_5)
Initialization method for FLRC modem.
Definition: SX128x.cpp:197
int16_t begin(float freq=2400.0, float bw=812.5, uint8_t sf=9, uint8_t cr=7, uint8_t syncWord=RADIOLIB_SX128X_SYNC_WORD_PRIVATE, int8_t power=10, uint16_t preambleLength=12)
Initialization method for LoRa modem.
Definition: SX128x.cpp:12
-
int16_t setOutputPower(int8_t power)
Sets output power. Allowed values are in range from -18 to 13 dBm.
Definition: SX128x.cpp:725
-
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX128x.cpp:1276
-
uint16_t getIrqStatus()
Reads the current IRQ status.
Definition: SX128x.cpp:1406
-
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa spreading factor. Allowed values range from 5 to 12.
Definition: SX128x.cpp:663
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t setBandwidth(float bw)
Sets LoRa bandwidth. Allowed values are 203.125, 406.25, 812.5 and 1625.0 kHz.
Definition: SX128x.cpp:633
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
-
void setDirectAction(void(*func)(void))
Dummy method, to ensure PhysicalLayer compatibility.
Definition: SX128x.cpp:1300
-
int16_t receiveDirect() override
Starts direct mode reception. Only implemented for PhysicalLayer compatibility, as SX128x series does...
Definition: SX128x.cpp:388
+
int16_t setOutputPower(int8_t power)
Sets output power. Allowed values are in range from -18 to 13 dBm.
Definition: SX128x.cpp:721
+
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: SX128x.cpp:1272
+
uint16_t getIrqStatus()
Reads the current IRQ status.
Definition: SX128x.cpp:1402
+
int16_t setSpreadingFactor(uint8_t sf)
Sets LoRa spreading factor. Allowed values range from 5 to 12.
Definition: SX128x.cpp:659
+
int16_t setBandwidth(float bw)
Sets LoRa bandwidth. Allowed values are 203.125, 406.25, 812.5 and 1625.0 kHz.
Definition: SX128x.cpp:629
+
void setDirectAction(void(*func)(void))
Dummy method, to ensure PhysicalLayer compatibility.
Definition: SX128x.cpp:1296
+
int16_t receiveDirect() override
Starts direct mode reception. Only implemented for PhysicalLayer compatibility, as SX128x series does...
Definition: SX128x.cpp:384
#define RADIOLIB_SHAPING_0_5
Gaussin shaping filter, BT = 0.5.
Definition: TypeDef.h:27
Definition: Module.h:46
diff --git a/_si443x_8h_source.html b/_si443x_8h_source.html index 5c3c1613..97c3c872 100644 --- a/_si443x_8h_source.html +++ b/_si443x_8h_source.html @@ -636,10 +636,10 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
554 class Si443x: public PhysicalLayer {
555  public:
556  // introduce PhysicalLayer overloads
-
557  using PhysicalLayer::transmit;
-
558  using PhysicalLayer::receive;
-
559  using PhysicalLayer::startTransmit;
-
560  using PhysicalLayer::readData;
+
557  using PhysicalLayer::transmit;
+
558  using PhysicalLayer::receive;
+
559  using PhysicalLayer::startTransmit;
+
560  using PhysicalLayer::readData;
561 
562  // constructor
563 
@@ -653,9 +653,9 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
589 
593  void reset();
594 
-
607  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
607  int16_t transmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
608 
-
619  int16_t receive(uint8_t* data, size_t len) override;
+
619  int16_t receive(uint8_t* data, size_t len) override;
620 
627  int16_t sleep();
628 
@@ -675,7 +675,7 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
676 
680  void clearIrqAction();
681 
-
693  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
+
693  int16_t startTransmit(uint8_t* data, size_t len, uint8_t addr = 0) override;
694 
700  int16_t finishTransmit() override;
701 
@@ -683,7 +683,7 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
708 
722  int16_t startReceive(uint32_t timeout, uint16_t irqFlags, uint16_t irqMask, size_t len);
723 
-
734  int16_t readData(uint8_t* data, size_t len) override;
+
734  int16_t readData(uint8_t* data, size_t len) override;
735 
736  // configuration methods
737 
@@ -758,18 +758,20 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
Implements all common low-level methods to control the wireless module. Every module class contains o...
Definition: Module.h:28
static const size_t RFSWITCH_MAX_PINS
The maximum number of pins supported by the RF switch code.
Definition: Module.h:39
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
Base class for Si443x series. All derived classes for Si443x (e.g. Si4431 or Si4432) inherit from thi...
Definition: Si443x.h:554
int16_t startReceive()
Interrupt-driven receive method. IRQ will be activated when full valid packet is received.
Definition: Si443x.cpp:265
int16_t setEncoding(uint8_t encoding) override
Sets transmission encoding. Only available in FSK mode. Allowed values are RADIOLIB_ENCODING_NRZ,...
Definition: Si443x.cpp:539
int16_t receiveDirect() override
Enables direct reception mode. While in direct mode, the module will not be able to transmit or recei...
Definition: Si443x.cpp:188
size_t getPacketLength(bool update=true) override
Query modem for the packet length of received payload.
Definition: Si443x.cpp:526
+
virtual int16_t readData(uint8_t *data, size_t len)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:204
int16_t begin(float br, float freqDev, float rxBw, uint8_t preambleLen)
Initialization method.
Definition: Si443x.cpp:12
void readBit(RADIOLIB_PIN_TYPE pin)
Function to read and process data bit in direct reception mode.
Definition: Si443x.cpp:614
int16_t setPreambleLength(uint8_t preambleLen)
Sets preamble length.
Definition: Si443x.cpp:510
+
int16_t transmit(const char *str, uint8_t addr=0)
C-string transmit method.
Definition: PhysicalLayer.cpp:51
int16_t setSyncWord(uint8_t *syncWord, size_t len)
Sets sync word. Up to 4 bytes can be set as sync word.
Definition: Si443x.cpp:493
int16_t setRxBandwidth(float rxBw)
Sets receiver bandwidth. Allowed values range from 2.6 to 620.7 kHz.
Definition: Si443x.cpp:386
void setRfSwitchTable(const RADIOLIB_PIN_TYPE(&pins)[Module::RFSWITCH_MAX_PINS], const Module::RfSwitchMode_t table[])
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: Si443x.cpp:582
@@ -782,7 +784,8 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
int16_t setFrequencyDeviation(float freqDev) override
Sets FSK frequency deviation from carrier frequency. Allowed values range from 0.625 to 320....
Definition: Si443x.cpp:363
void setIrqAction(void(*func)(void))
Sets interrupt service routine to call when IRQ activates.
Definition: Si443x.cpp:208
void clearIrqAction()
Clears interrupt service routine to call when IRQ activates.
Definition: Si443x.cpp:212
-
int16_t transmit(__FlashStringHelper *fstr, uint8_t addr=0)
Arduino Flash String transmit method.
Definition: PhysicalLayer.cpp:12
+
int16_t startTransmit(const char *str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:144
+
virtual int16_t receive(uint8_t *data, size_t len)
Binary receive method. Must be implemented in module class.
Definition: PhysicalLayer.cpp:111
int16_t variablePacketLengthMode(uint8_t maxLen=RADIOLIB_SI443X_MAX_PACKET_LENGTH)
Set modem in variable packet length mode.
Definition: Si443x.cpp:623
int16_t standby() override
Sets the module to standby (with XTAL on).
Definition: Si443x.cpp:136
int16_t fixedPacketLengthMode(uint8_t len=RADIOLIB_SI443X_MAX_PACKET_LENGTH)
Set modem in fixed packet length mode.
Definition: Si443x.cpp:619
@@ -792,9 +795,6 @@ $(document).ready(function(){initNavTree('_si443x_8h_source.html',''); initResiz
void setRfSwitchPins(RADIOLIB_PIN_TYPE rxEn, RADIOLIB_PIN_TYPE txEn)
Some modules contain external RF switch controlled by pins. This function gives RadioLib control over...
Definition: Si443x.cpp:578
void reset()
Reset method. Will reset the chip to the default state using SDN pin.
Definition: Si443x.cpp:69
Si443x(Module *mod)
Default constructor.
Definition: Si443x.cpp:4
-
int16_t readData(String &str, size_t len=0)
Reads data that was received after calling startReceive method.
Definition: PhysicalLayer.cpp:153
-
int16_t startTransmit(String &str, uint8_t addr=0)
Interrupt-driven Arduino String transmit method. Unlike the standard transmit method,...
Definition: PhysicalLayer.cpp:134
-
int16_t receive(String &str, size_t len=0)
Arduino String receive method.
Definition: PhysicalLayer.cpp:60
Definition: Module.h:46
diff --git a/class_a_x25_client-members.html b/class_a_x25_client-members.html index f43aca59..7117580d 100644 --- a/class_a_x25_client-members.html +++ b/class_a_x25_client-members.html @@ -95,8 +95,7 @@ $(document).ready(function(){initNavTree('class_a_x25_client.html',''); initResi begin(const char *srcCallsign, uint8_t srcSSID=0x00, uint8_t preambleLen=8)AX25Client sendFrame(AX25Frame *frame)AX25Client setCorrection(int16_t mark, int16_t space, float length=1.0f)AX25Client - transmit(String &str, const char *destCallsign, uint8_t destSSID=0x00)AX25Client - transmit(const char *str, const char *destCallsign, uint8_t destSSID=0x00)AX25Client + transmit(const char *str, const char *destCallsign, uint8_t destSSID=0x00)AX25Client diff --git a/class_a_x25_client.html b/class_a_x25_client.html index b182b75f..a49dedd1 100644 --- a/class_a_x25_client.html +++ b/class_a_x25_client.html @@ -110,9 +110,6 @@ Public Member Functions int16_t begin (const char *srcCallsign, uint8_t srcSSID=0x00, uint8_t preambleLen=8)  Initialization method. More...
  -int16_t transmit (String &str, const char *destCallsign, uint8_t destSSID=0x00) - Transmit unnumbered information (UI) frame. More...
-  int16_t transmit (const char *str, const char *destCallsign, uint8_t destSSID=0x00)  Transmit unnumbered information (UI) frame. More...
  @@ -316,7 +313,7 @@ class APRSClient< -

◆ transmit() [1/2]

+

◆ transmit()

@@ -358,51 +355,6 @@ class APRSClient<
Returns
Status Codes
-
-
- -

◆ transmit() [2/2]

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
int16_t AX25Client::transmit (String & str,
const char * destCallsign,
uint8_t destSSID = 0x00 
)
-
- -

Transmit unnumbered information (UI) frame.

-
Parameters
- - - - -
strData to be sent as Arduino String.
destCallsignCallsign of the destination station.
destSSID4-bit SSID of the destination station (in case there are more stations with the same callsign). Defaults to 0.
-
-
-
Returns
Status Codes
-

The documentation for this class was generated from the following files: