diff --git a/_pager_8h_source.html b/_pager_8h_source.html index 268d3fca..f1f03b54 100644 --- a/_pager_8h_source.html +++ b/_pager_8h_source.html @@ -155,67 +155,68 @@ $(document).ready(function(){initNavTree('_pager_8h_source.html',''); initResiza
77 
78  // basic methods
79 
-
89  int16_t begin(float base, uint16_t speed, uint16_t shift = RADIOLIB_PAGER_FREQ_SHIFT_HZ);
-
90 
-
98  int16_t sendTone(uint32_t addr);
-
99 
-
111  int16_t transmit(String& str, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
-
112 
-
124  int16_t transmit(const char* str, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
-
125 
-
139  int16_t transmit(uint8_t* data, size_t len, uint32_t addr, uint8_t encoding = RADIOLIB_PAGER_BCD);
-
140 
-
152  int16_t startReceive(RADIOLIB_PIN_TYPE pin, uint32_t addr, uint32_t mask = 0xFFFFF);
-
153 
-
159  size_t available();
-
160 
-
173  int16_t readData(String& str, size_t len = 0, uint32_t* addr = NULL);
-
174 
-
188  int16_t readData(uint8_t* data, size_t* len, uint32_t* addr = NULL);
-
189 
-
190 #if !defined(RADIOLIB_GODMODE)
-
191  private:
-
192 #endif
-
193  PhysicalLayer* _phy;
-
194 
-
195  float _base;
-
196  float _speed;
-
197  uint32_t _baseRaw;
-
198  uint16_t _shift;
-
199  uint16_t _shiftHz;
-
200  uint16_t _bitDuration;
-
201  uint32_t _readBatchPos;
-
202  uint32_t _filterAddr;
-
203  uint32_t _filterMask;
-
204 
-
205  // BCH encoder
-
206  int32_t _bchAlphaTo[RADIOLIB_PAGER_BCH_N + 1];
-
207  int32_t _bchIndexOf[RADIOLIB_PAGER_BCH_N + 1];
-
208  int32_t _bchG[RADIOLIB_PAGER_BCH_N - RADIOLIB_PAGER_BCH_K + 1];
+
93  int16_t begin(float base, uint16_t speed, bool invert = false, uint16_t shift = RADIOLIB_PAGER_FREQ_SHIFT_HZ);
+
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 
+
156  int16_t startReceive(RADIOLIB_PIN_TYPE pin, uint32_t addr, uint32_t mask = 0xFFFFF);
+
157 
+
163  size_t available();
+
164 
+
177  int16_t readData(String& str, size_t len = 0, uint32_t* addr = NULL);
+
178 
+
192  int16_t readData(uint8_t* data, size_t* len, uint32_t* addr = NULL);
+
193 
+
194 #if !defined(RADIOLIB_GODMODE)
+
195  private:
+
196 #endif
+
197  PhysicalLayer* _phy;
+
198 
+
199  float _base;
+
200  float _speed;
+
201  uint32_t _baseRaw;
+
202  uint16_t _shift;
+
203  uint16_t _shiftHz;
+
204  uint16_t _bitDuration;
+
205  uint32_t _readBatchPos;
+
206  uint32_t _filterAddr;
+
207  uint32_t _filterMask;
+
208  bool inv = false;
209 
-
210  void write(uint32_t* data, size_t len);
-
211  void write(uint32_t codeWord);
-
212  uint32_t read();
-
213 
-
214  uint8_t encodeBCD(char c);
-
215  char decodeBCD(uint8_t b);
-
216 
-
217  void encoderInit();
-
218  uint32_t encodeBCH(uint32_t data);
-
219 };
-
220 
-
221 #endif
+
210  // BCH encoder
+
211  int32_t _bchAlphaTo[RADIOLIB_PAGER_BCH_N + 1];
+
212  int32_t _bchIndexOf[RADIOLIB_PAGER_BCH_N + 1];
+
213  int32_t _bchG[RADIOLIB_PAGER_BCH_N - RADIOLIB_PAGER_BCH_K + 1];
+
214 
+
215  void write(uint32_t* data, size_t len);
+
216  void write(uint32_t codeWord);
+
217  uint32_t read();
+
218 
+
219  uint8_t encodeBCD(char c);
+
220  char decodeBCD(uint8_t b);
+
221 
+
222  void encoderInit();
+
223  uint32_t encodeBCH(uint32_t data);
+
224 };
+
225 
+
226 #endif
-
PagerClient::startReceive
int16_t startReceive(RADIOLIB_PIN_TYPE pin, uint32_t addr, uint32_t mask=0xFFFFF)
Start reception of POCSAG packets.
Definition: Pager.cpp:215
-
PagerClient::transmit
int16_t transmit(String &str, uint32_t addr, uint8_t encoding=RADIOLIB_PAGER_BCD)
Arduino String transmit method.
Definition: Pager.cpp:49
+
PagerClient::startReceive
int16_t startReceive(RADIOLIB_PIN_TYPE pin, uint32_t addr, uint32_t mask=0xFFFFF)
Start reception of POCSAG packets.
Definition: Pager.cpp:216
+
PagerClient::transmit
int16_t transmit(String &str, uint32_t addr, uint8_t encoding=RADIOLIB_PAGER_BCD)
Arduino String transmit method.
Definition: Pager.cpp:50
+
PagerClient::begin
int16_t begin(float base, uint16_t speed, bool invert=false, uint16_t shift=RADIOLIB_PAGER_FREQ_SHIFT_HZ)
Initialization method.
Definition: Pager.cpp:22
PagerClient::PagerClient
PagerClient(PhysicalLayer *phy)
Default constructor.
Definition: Pager.cpp:17
PagerClient
Client for Pager communication.
Definition: Pager.h:69
-
PagerClient::readData
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:247
-
PagerClient::sendTone
int16_t sendTone(uint32_t addr)
Method to send a tone-only alert to a destination pager.
Definition: Pager.cpp:45
-
PagerClient::begin
int16_t begin(float base, uint16_t speed, uint16_t shift=RADIOLIB_PAGER_FREQ_SHIFT_HZ)
Initialization method.
Definition: Pager.cpp:22
+
PagerClient::readData
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:248
+
PagerClient::sendTone
int16_t sendTone(uint32_t addr)
Method to send a tone-only alert to a destination pager.
Definition: Pager.cpp:46
PhysicalLayer
Provides common interface for protocols that run on LoRa/FSK modules, such as RTTY or LoRaWAN....
Definition: PhysicalLayer.h:14
-
PagerClient::available
size_t available()
Get the number of POCSAG batches available in buffer. Limited by the size of direct mode buffer!
Definition: Pager.cpp:243
+
PagerClient::available
size_t available()
Get the number of POCSAG batches available in buffer. Limited by the size of direct mode buffer!
Definition: Pager.cpp:244