Commit graph

1856 commits

Author SHA1 Message Date
Thomas Göttgens
08989ff6fa
Allow SPItransfer to be overridden by subclasses
This allows API clients to provide 'smarter' versions of Module that can do things like add thread safety so that multiple devices (and service threads) can share the same SPI bus. i.e. a subclass would lock some sort of mutex.

This is used in the Radiolib Fork for Meshtastic to share an SPI bus with SD Card and TFT Display but we want to move back to upstream and not maintain our own fork.
2022-06-10 12:28:32 +02:00
jgromes
34a0d77998 Merge branch 'master' of https://github.com/jgromes/RadioLib 2022-06-05 11:16:00 +02:00
jgromes
05a4cf1ef1 [SX126x] Added LR-FHSS registers 2022-06-05 11:15:54 +02:00
Jan Gromeš
77c9a295ed
[SX127x] Fixed RF switch not actuated in continuous Rx mode (#531) 2022-05-30 10:49:55 +02:00
jgromes
3df3b092eb [SX126x] Fixed default frequency deviation for SX1262 (#522) 2022-05-28 18:22:03 +02:00
jgromes
a391318477 Merge branch 'master' of https://github.com/jgromes/RadioLib 2022-05-28 17:58:46 +02:00
jgromes
ed43f8062e [Hell] Added method to invert text color (#529) 2022-05-28 17:58:34 +02:00
jgromes
2faa4b5d71 [Morse] Use out of band tone for space in AFSK mode (#529) 2022-05-28 17:57:42 +02:00
matthias-bs
76ddaf5f67
added setCrcFiltering() 2022-05-23 17:32:58 +02:00
matthias-bs
0a79f7fc22
added setCrcFiltering() 2022-05-23 17:30:40 +02:00
Jan Gromeš
9b392e349e
[CC1101] Fixed incorrect parameter documentation (#523) 2022-05-23 13:46:36 +02:00
jgromes
206d49f802 [CC1101] Fixed Tx buffer flushed on Rx timeout (#520) 2022-05-17 17:31:51 +02:00
jgromes
57dcf48f6b [SX126x] Fixed swapped IQ inversion fix branches (#516) 2022-05-03 18:46:56 +02:00
jgromes
7f09fc430a [SX126x] Enable timeout to generate IRQ event 2022-04-09 19:58:29 +02:00
jgromes
2e183d70bb [SX127x] Use RSSI interrupt and disable AFC (#505) 2022-04-03 12:14:26 +02:00
jgromes
3a55ad92e1 [CC1101] Fixed RSSI/LQI always returning incorrect values (#504) 2022-04-02 19:20:28 +02:00
James Smith
63ba279fd2 Call setRxBandwidth again if setOOK is called 2022-03-28 17:28:01 -07:00
James Smith
77fa0e83c0 Merge remote-tracking branch 'upstream/master' into rf69-ook-rxbw 2022-03-28 17:20:13 -07:00
jgromes
4f19d97f42 [SX126x] Set initial BW to 500 kHz for LLCC68 (#502) 2022-03-27 17:38:22 +02:00
James Smith
2b99b6ec86 Add enableOOK param to RF69::begin, false by default, mirrors SX127x 2022-03-26 14:45:54 -07:00
James Smith
eed4075cb1 [RF69] Persist bit synchronization settings 2022-03-26 13:08:46 -07:00
James Smith
361eba8ebc Set RX bandwidth correctly for OOK mode 2022-03-26 12:53:17 -07:00
James Smith
e20058c93c
[CC1101] Data shaping and encoding params in right order
For some reason, the `RADIOLIB_SHAPING_NONE` was being passed to `setEncoding` and `RADIOLIB_ENCODING_NRZ` was being passed to `setDataShaping`. Flipped these to be passed to the correct functions.

Note: These are both defined as `0x00` so this should have no impact on functionality, just makes initialization less confusing.
2022-03-24 10:30:45 -07:00
James Smith
dd0d48abe9 Fix setRxBandwidth by calculating mantissa and exponent, rather than comparing floats 2022-03-22 16:33:36 -07:00
jgromes
9117c61254 [CC1101] Fixed incorrect fabs brackets (#490) 2022-03-09 22:18:46 +01:00
Jan Gromeš
2e7067de81
Merge pull request #485 from obones/cc1101_async_serial
Introduce asynchronous reception and transmission for CC1101
2022-03-04 14:08:55 +01:00
OBones
1418470038 Use protected overloads that accept the sync mode to avoid code duplication 2022-03-04 09:45:14 +01:00
jgromes
64817ed4be [SX128x] Minor formatting update 2022-02-28 18:47:55 +01:00
OBones
fa1811fe73 Introduce asynchronous reception and transmission for CC1101 2022-02-28 17:27:29 +01:00
Robert
89f202ce6a Changed method to return float instead of double. All calculations within the method also use float instead of double. Results of the method do not seem to be effected. 2022-02-26 18:44:05 -05:00
Robert
ff43d95afa Cleaned up formatting in header. Changed assigned value to set only the bit indicated in the documentation. 2022-02-24 00:29:51 -05:00
Robert
da0cd455c9 Add method to support SX128x Manual Gain Mode. 2022-02-23 23:58:56 -05:00
Robert
89de031e18 Add method to support SX128x High Sensitivity Mode. 2022-02-23 23:51:54 -05:00
Robert
01fc7fb844 Add method to support SX128x Frequency Error of last received LoRa or Ranging packet. Updated SX128x receive examples. 2022-02-23 11:41:29 -05:00
jgromes
d3d2f90627 Bump version to 5.1.2 2022-02-06 15:08:12 +01:00
jgromes
035a13b81a Merge branch 'master' of https://github.com/jgromes/RadioLib 2022-02-06 15:07:07 +01:00
jgromes
5c5afdf99f Bump version to 5.1.1 2022-02-06 15:06:58 +01:00
Arthur B. Grossi
2538af82a9 [Si443x] Fixes getPacketLength
Fixes getPacketLength function to read the correct register when
on fixed packet length mode.
2022-01-31 18:10:41 -03:00
Jan Gromeš
7127433e3b
Merge pull request #457 from nseidle/Allow255Bytes
Fix >= to allow 255 bytes on SX1276
2022-01-29 08:38:53 +01:00
Jan Gromeš
79cde7c0f6
Merge pull request #453 from nseidle/master
Correct typos in explicit/implicitHeader functions.
2022-01-29 08:36:18 +01:00
Nathan Seidle
bad3029f4f Update SX126x.h 2022-01-28 15:54:44 -07:00
Nathan Seidle
74feffb4c7 Fix >= to allow 255 bytes 2022-01-28 15:50:59 -07:00
Chris Terwilliger
4661757482
Merge branch 'jgromes:master' into documentation-updates 2022-01-25 15:36:42 -05:00
Nathan Seidle
b5e5e079c8 Correct typos in explicit/implicitHeader functions. Add a few missing keywords. 2022-01-25 12:17:01 -07:00
jgromes
19109bc7d8 [Si443x] Added fixed packet length mode 2022-01-23 17:05:58 +01:00
Jan Gromeš
bd0158c734
Merge pull request #441 from nseidle/FHSS
Add FHSS support
2022-01-23 10:46:30 +01:00
jgromes
6367198546 [SX127x] Fixed shaping disable (#452) 2022-01-23 10:21:28 +01:00
Nathan Seidle
06ef449b68 Move helper functions from SX1276/7/8/9 to global SX127x. 2022-01-17 11:47:49 -07:00
Nathan Seidle
20e1ab23df Add helper functions for SX1277, SX1278, SX1279 2022-01-17 11:35:19 -07:00
Nathan Seidle
3cc299d17b Add FHSS support 2022-01-13 12:25:02 -07:00