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 iq_sx126x sx126x_simple_TX_shield_2020a sx126x_simple_RX_shield_2020a ... more
Revision 12:7a3ec8bb8407, committed 2020-05-04
- Comitter:
- Wayne Roberts
- Date:
- Mon May 04 17:48:12 2020 -0700
- Parent:
- 11:1cd95e76519a
- Child:
- 13:5703598a88fb
- Commit message:
- add rx front-end gain register
Changed in this revision
| sx12xx.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/sx12xx.h Wed Mar 04 19:59:06 2020 +0000
+++ b/sx12xx.h Mon May 04 17:48:12 2020 -0700
@@ -113,6 +113,7 @@
#define REG_ADDR_SDCFG0 0x889 //
#define REG_ADDR_RFFREQ 0x88b // 31bits
#define REG_ADDR_FREQ_OFFSET 0x88f // 19bits
+#define REG_ADDR_AGC_SENSI_ADJ 0x8ac // 8bits
#define REG_ADDR_ANACTRL6 0x8d7 // 6bits
#define REG_ADDR_ANACTRL7 0x8d8 // 6bits
#define REG_ADDR_ANACTRL15 0x8e1 // 7bits
@@ -181,6 +182,14 @@
uint8_t octet;
} sdCfg0_t; // at 0x889
+typedef union {
+ struct {
+ uint8_t power_mode: 2; // 0,1
+ uint8_t sensi_adjust: 6; // 2,3,4,5,6,7
+ } bits;
+ uint8_t octet;
+} AgcSensiAdj_t; // at 0x8ac
+
#define LORA_BW_7 0x00 // 7.81 kHz real
#define LORA_BW_10 0x08 // 10.42 kHz real
#define LORA_BW_15 0x01 // 15.63 kHz real