Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: alarm_slave alarm_master lora_p2p lorawan1v1 ... more
Diff: radio_sx126x.cpp
- Revision:
- 7:ba81f66e56d1
- Parent:
- 5:ab124d3842a8
- Child:
- 11:5111788c4298
- Child:
- 14:94993ae5b164
--- a/radio_sx126x.cpp Tue Dec 04 15:22:54 2018 -0800
+++ b/radio_sx126x.cpp Wed Dec 05 15:04:48 2018 -0800
@@ -312,6 +312,14 @@
radio.xfer(OPCODE_SET_LORA_SYMBOL_TIMEOUT, 1, 0, &symbs);
}
+float Radio::GetRssiInst()
+{
+ uint8_t buf[8];
+
+ radio.xfer(OPCODE_GET_RSSIINST, 0, 2, buf);
+ return buf[1] / -2.0;
+}
+
int Radio::Send(uint8_t size, timestamp_t maxListenTime, timestamp_t channelFreeTime, int rssiThresh)
{
uint8_t buf[8];