=================================================================================================================== radio300KBPS() - switch radio to max bitrate ===================================================================================================================
| 980 | // radio300KBPS() - switch radio to max bitrate |
| 981 | //=================================================================================================================== |
| 982 | void RFM69::set300KBPS() { |
| 983 | writeReg(0x03, 0x00); //REG_BITRATEMSB: 300kbps (0x006B, see DS p20) |
| 984 | writeReg(0x04, 0x6B); //REG_BITRATELSB: 300kbps (0x006B, see DS p20) |
| 985 | writeReg(0x19, 0x40); //REG_RXBW: 500kHz |
| 986 | writeReg(0x1A, 0x80); //REG_AFCBW: 500kHz |
| 987 | writeReg(0x05, 0x13); //REG_FDEVMSB: 300khz (0x1333) |
| 988 | writeReg(0x06, 0x33); //REG_FDEVLSB: 300khz (0x1333) |
| 989 | writeReg(0x29, 240); //set REG_RSSITHRESH to -120dBm |
| 990 | writeReg(0x37, 0b10010000); //DC=WHITENING, CRCAUTOOFF=0 |
| 991 | // ^^->DC: 00=none, 01=manchester, 10=whitening |
| 992 | } |
| 993 | |
| 994 | //============================================================================= |
| 995 | // setLNA() - disable the AGC and set a manual gain to attenuate input signal |
nothing calls this directly
no outgoing calls
no test coverage detected