Commit graph

115 commits

Author SHA1 Message Date
Matthijs Kooijman
cd138dd6c7 [STM32WLx] Apply PA clamp workaround for HP only
This modifies SX1262::begin and beginFSK to call setOutputPower after
applying the workaround, so that can undo the workaround if needed.
2023-01-10 18:09:55 +01:00
Matthijs Kooijman
da6c3f6a6b [SX126x] Allow subclasses to change the TX mode used
This prepares for adding a STM32WLx subclass later.
2023-01-09 10:26:28 +01:00
Matthijs Kooijman
52ec165643 Update radios to use new setRfSwitchState
This removes the compatibility wrapper and applies the following
replacements:

    sed -i 's/setRfSwitchState(LOW, LOW)/setRfSwitchState(Module::MODE_IDLE)/' src/modules/*/*.cpp
    sed -i 's/setRfSwitchState(HIGH, LOW)/setRfSwitchState(Module::MODE_RX)/' src/modules/*/*.cpp
    sed -i 's/setRfSwitchState(LOW, HIGH)/setRfSwitchState(Module::MODE_TX)/' src/modules/*/*.cpp
2023-01-09 10:26:28 +01:00
Matthijs Kooijman
3779faf600 Add setRfSwitchTable() wrapper methods
This gives all radios that use an rfswitch (i.e. have
a setRfSwitchPins() wrapper already) a wrapper method for
setRfSwitchTable() too. This wrapper just calls the same method on
Module, to make it easier for sketches to use it.
2023-01-09 10:26:27 +01:00
Matthijs Kooijman
dfbe6934bb [SX126x] Set DIO2 to RF switch by default for FSK too
In commit a1f94d9f ([SX126x] Set DIO2 to RF switch by default), this was
changed for LoRa modulation in begin(), but since this is really
a board-specific attribute, independent of the modulation used, there is
no reason to have a different default for FSK (so this was probably just
forgotten).
2022-12-20 23:33:02 +01:00
jgromes
f942ccaec7 [SX126x] Added option to specify custom CAD parameters 2022-11-18 13:39:51 +01:00
jgromes
e02b3f2ce0 [SX126x] Added missing Rx write arguments 2022-11-18 11:35:32 +01:00
Amalinda Gamage
a7e56800a8
Update SX126x.cpp 2022-11-18 16:08:57 +08:00
jgromes
b11deda33d [SX126x] Removed slowdown macro (#158) 2022-11-13 22:12:04 +01:00
jgromes
0b1a421863 [SX126x] Fixed receive always failing after timeout 2022-10-06 19:30:13 +02:00
jgromes
170ce9752b [SX126x] Skip SPI verification during block calibration (#583) 2022-10-04 18:19:54 +02:00
jgromes
1382e56508 [SX126x] Removed extra newline (CI_BUILD_ALL) 2022-10-02 00:02:17 +02:00
jgromes
e31bcd315b [SX126x] Fixed RTC control register address (#575) 2022-10-01 22:46:50 +02:00
jgromes
3bdc8963a4 [SX126x] Added post-transaction error checking (#575) 2022-10-01 22:46:17 +02:00
jgromes
0ae6eae4d9 [SX126x] Added finishTransmit 2022-09-18 16:12:53 +02:00
jgromes
da0993a6ed Added RADIOLIB_EXCLUDE_DIRECT_RECEIVE exclusion macro (#557) 2022-08-15 19:19:59 +02:00
jgromes
05a4cf1ef1 [SX126x] Added LR-FHSS registers 2022-06-05 11:15:54 +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
4f19d97f42 [SX126x] Set initial BW to 500 kHz for LLCC68 (#502) 2022-03-27 17:38:22 +02:00
jgromes
cc9d7b7220 [SX126x] Moved SF and BW out of common part 2021-12-20 18:11:52 +01:00
jgromes
f3de4602e6 [SX126x] Fixed known binary receive length 2021-11-21 21:16:58 +01:00
jgromes
6f744a8f13 [SX126x] Update to 5.0.0 2021-11-14 11:41:53 +01:00
jgromes
3a8360c361 [SX126x] Added interrupt-driven CAD 2021-10-28 15:44:44 +02:00
jgromes
caf34534d3 [SX126x] Renamed TRNG method 2021-07-18 10:18:18 +02:00
jgromes
450a46af84 [SX126x] Fixed warnings 2021-06-14 21:20:21 +02:00
jgromes
8e340dfc94 [SX126x] Added direct reception dummies 2021-06-14 21:15:06 +02:00
jgromes
0810a6c4cc [SX126x] Removed redundant call to setPacketParams (#298) 2021-05-05 10:21:12 +02:00
jgromes
2b0317d618 [SX126x] Fixed variable redefinition 2021-05-04 19:24:16 +02:00
jgromes
e482c7e554 [SX126x] Fixed packet length not restored after transmission (#298) 2021-05-04 19:21:07 +02:00
jgromes
ba71e92eb1 [SX126x] Replace abs() with fabs() (#297) CI_BUILD_ALL 2021-05-04 09:22:01 +02:00
jgromes
f3c1887517 [SX128x] Added -1 as alias for lowest supported frequency deviation 2021-02-13 17:41:46 +01:00
jgromes
bac2be1576 [SX126x] Simplify SPI slowdown 2021-02-05 23:25:02 +01:00
Kihun Song
d6330cfe44
Convert arbitrary unit to dBm 2021-02-04 16:51:05 +09:00
Kihun Song
0b835f9fcf Added getRSSIInst command for SX126x 2021-02-04 14:27:23 +09:00
jgromes
d1cbe133e2 [SX126x] Update markers for debug decoder 2020-12-05 12:05:36 +01:00
jgromes
bb1bb59aff [SX126x] Added option to disable TCXO using SX126x::setTCXO(0) (#99) 2020-09-22 07:49:27 +02:00
jgromes
b40ad5c2f7 [SX126x] Added TRNG support 2020-09-13 17:53:23 +02:00
jgromes
882ec98563 [SX126x] Added Module overrides for all Arduino core functions 2020-08-01 16:34:27 +02:00
jgromes
96405b938d [SX126x] Added methods to manually set LoRa LDRO 2020-07-08 18:52:08 +02:00
jgromes
b21f93342e [SX126x] Synced parameters of all LoRa modules 2020-07-06 11:48:25 +02:00
jgromes
c8f4698a26 [SX126x] Synced parameters of all FSK modules 2020-07-06 11:13:37 +02:00
jgromes
5aff492323 [SX126x] Changed shaping datatype to uint8_t 2020-07-06 08:52:48 +02:00
jgromes
fed86b0742 [SX126x] Fixes from cppcheck scan 2020-07-04 14:32:29 +02:00
jgromes
58ddfb8b51 [SX126x] Reworked driver exclusion 2020-06-30 10:43:41 +02:00
jgromes
aa4f4c9ab4 [SX126x] Added SPI delay for SAMD cores (#153) 2020-06-20 21:13:50 +02:00
jgromes
06c254bc6e [SX126x] Added missing RF switch control 2020-06-20 17:04:17 +02:00
jgromes
bb7108a52b [SX126x] Fixed RF switch state in Rx mode 2020-06-19 08:23:28 +02:00
jgromes
d710a85985 [SX126x] Implemented RF switch control (#153) 2020-06-18 16:38:30 +02:00
jgromes
d005112407 [SX126x] Added digital pin to interrupt macro 2020-05-11 20:32:32 +02:00