Commit graph

145 commits

Author SHA1 Message Date
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
Federico Maggi
09669eeb26
[CC1101] Fix setPromiscuousMode(false) bug
Signed-off-by: Federico Maggi <federico.maggi@gmail.com>
2022-12-01 13:32:47 +01:00
Federico Maggi
9422723bb7
[CC1101] Validate freq-dev unless special value 0
Signed-off-by: Federico Maggi <federico.maggi@gmail.com>
2022-11-27 10:20:29 +01:00
Federico Maggi
befba28629
No bound checks on frequency deviation if ~FSK 2022-11-26 19:38:36 +01:00
Federico Maggi
05217c095b
- Defined new RADIOLIB_ERR_NULL_POINTER
- all `begin()` now use macros for init values
- addressed other styling comments as per PR#612 review

Signed-off-by: Federico Maggi <federico.maggi@gmail.com>
2022-11-21 09:09:56 +01:00
Federico Maggi
1322796542
[RF69 & CC1101] Reworked cached parameters into getters
Signed-off-by: Federico Maggi <federico.maggi@gmail.com>
2022-11-20 01:35:08 +01:00
jgromes
6eeee45968 [CC1101] Use GDO2 for transmit interrupt (#357) 2022-10-09 19:21:39 +02:00
jgromes
ae64ec1911 [CC1101] Fixed incorrect GPIO NC check logic 2022-10-09 19:14:07 +02:00
jgromes
9dff4e709e [CC1101] Added finishTransmit 2022-09-18 16:12:03 +02:00
jgromes
da0993a6ed Added RADIOLIB_EXCLUDE_DIRECT_RECEIVE exclusion macro (#557) 2022-08-15 19:19:59 +02:00
Jan Gromeš
80950a1c22
Merge pull request #546 from NorthernMan54/master
Tweaks for async direct mode usage with rtl_433_ESP
2022-07-17 10:12:41 +02:00
Northern Man
a74c0536b8 Tweaks for async direct mode usage with rtl_433_ESP 2022-07-16 21:50:33 -04:00
obones
e1412108c1 Implement setDIOMapping for CC1101 2022-07-07 15:36:26 +02:00
jgromes
206d49f802 [CC1101] Fixed Tx buffer flushed on Rx timeout (#520) 2022-05-17 17:31:51 +02:00
jgromes
3a55ad92e1 [CC1101] Fixed RSSI/LQI always returning incorrect values (#504) 2022-04-02 19:20:28 +02: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
jgromes
9117c61254 [CC1101] Fixed incorrect fabs brackets (#490) 2022-03-09 22:18:46 +01:00
OBones
1418470038 Use protected overloads that accept the sync mode to avoid code duplication 2022-03-04 09:45:14 +01:00
OBones
fa1811fe73 Introduce asynchronous reception and transmission for CC1101 2022-02-28 17:27:29 +01:00
jgromes
90b9bd02fb [CC1101] Fixed known binary receive length 2021-11-21 21:17:10 +01:00
jgromes
e82049587b [CC1101] Update to 5.0.0 2021-11-14 11:38:31 +01:00
jgromes
a5083503e4 [CC1101] Fixed type limit comparison warning 2021-09-24 08:23:47 +02:00
jgromes
304e876c02 [CC1101] Fixed blocking receive always returning timeout (#348) 2021-08-18 17:23:08 +02:00
jgromes
4086afa691 [CC1101] Added 0x17 as valid version number (#349) 2021-08-14 08:02:38 +02:00
jgromes
cb1d79621d [RF69] Renamed TRNG method 2021-07-18 10:18:35 +02:00
jgromes
aa7219488e [CC1101] Fixed call to incorrect GDO action 2021-06-16 22:39:06 +02:00
jgromes
0360f2d50c [CC1101] Added missing infinite packet in direct mode 2021-06-16 22:37:08 +02:00
jgromes
06d40c78bc [CC1101] Added direct reception support 2021-06-14 21:14:47 +02:00
jgromes
32553032c4 [CC1101] Fixed missing bracket CI_BUILD_ALL 2021-05-04 09:14:26 +02:00
jgromes
4be690b7e4 [CC1101] Replace abs() with fabs() 2021-05-04 09:12:12 +02:00
Federico Maggi
12975b23e5 delay(1) -> delayMicroseconds(250) 2021-04-21 23:39:11 +02:00
Federico Maggi
012c39e7f5 Addressing PR#279 comments 2021-04-13 15:25:28 +02:00
Federico Maggi
54006662f1 Merge branch 'master' of github.com:rfquack/RadioLib
* 'master' of github.com:rfquack/RadioLib:
  [RF69] Fixed setOOK()
  [CC1101] Fix in promiscuous mode
  Fixed compiling issues
2021-04-13 09:45:19 +02:00
Federico Maggi
4d2764edb2 Merge remote-tracking branch 'upstream/master'
* upstream/master: (249 commits)
  [SX127x] OOK functions style cleanup
  [RF69] OOK functions style cleanup
  styles and syntax changes
  added RF69::setOokThresholdType
  added RF69::setLnaTestBoost
  doc fix
  SX1278::getRSSI() modified for OOK so it wont require an activation
  SX127x::setOokPeakThresholdDecrement
  ignore jetbrain .idea
  SX1278::setGain() added support for FSK_OOK modes
  SX127x::setOokFixedOrFloorThreshold
  SX1278::setOokThresholdType()
  RF69::setOOK
  [SX127x] Fixed shaping in OOK (#268)
  [SX127x] Added FSK CRC mode configuration (#266)
  Bump version to 4.3.0
  [nRF24] Added low-level access macro
  [XBee] Added low-level access macro
  [Si443x] Added low-level access macro
  [SX128x] Added low-level access macro
  ...
2021-04-13 09:42:02 +02:00
jgromes
c8ce3160fc [CC1101] Added -1 as alias for lowest supported frequency deviation 2021-02-13 17:41:34 +01:00
jgromes
4461e9a98e [CC1101] Added timeout in Rx/Tx blocking mode 2021-02-12 20:46:10 +01:00
jgromes
8ad7d1be45 [CC1101] Clarify ternary operator priority 2020-12-29 08:41:22 +01:00
jgromes
81135e0ae5 [CC1101] Fixed version register check (#208) 2020-12-08 17:31:54 +01:00
jgromes
6bc6777cac [CC1101] Update markers for debug decoder 2020-12-05 12:04:39 +01:00
Alessandro Fiorillo
1787505ea7 [RF69] Fixed setOOK() 2020-12-04 15:36:58 +01:00
Alessandro Fiorillo
3d1c45654b [CC1101] Fix in promiscuous mode 2020-12-02 16:43:02 +01:00
Alessandro Fiorillo
9329214405 Fixed compiling issues 2020-11-28 00:56:24 +01:00
jgromes
b4701c370b [CC1101] Added method to read version register 2020-11-20 17:52:32 +01:00
jgromes
cd142df4b9 [CC1101] Added 0x04 as valid version register value (#183) 2020-09-19 19:48:21 +02:00
jgromes
35f02ed402 [CC1101] Added TRNG support 2020-09-13 17:53:37 +02:00
jgromes
259b82a006 [CC1101] Added Module overrides for all Arduino core functions 2020-08-01 16:33:58 +02:00
jgromes
892bd48963 [CC1101] Fixed SPI commands always using default SPI (#173) 2020-07-25 16:15:05 +02:00
jgromes
8d92a5f402 [CC1101] Fixed inverted check (#167) 2020-07-18 07:09:33 +02:00
Federico Maggi
02d8b336ab Merged with upstream 2020-07-14 10:42:10 +02:00