Library for HopeRF RFM22 / RFM22B transceiver module ported to mbed. Original Software from Mike McCauley (mikem@open.com.au) . See http://www.open.com.au/mikem/arduino/RF22/

Dependents:   RF22_MAX_test_Send Geofence_receiver Geofence_sender Geofence_sender ... more

More Info about RFM22-modules like connecting and a demo-program see RF22-Notebook

Files at this revision

API Documentation at this revision

Comitter:
charly
Date:
Sat Feb 18 20:34:59 2012 +0000
Parent:
1:813d4f57d630
Child:
3:c3c19f30ff69
Commit message:
Enable AFC of RFM22 in RF22::init()

Changed in this revision

RF22.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/RF22.cpp	Fri Feb 17 21:40:57 2012 +0000
+++ b/RF22.cpp	Sat Feb 18 20:34:59 2012 +0000
@@ -178,6 +178,11 @@
     setTxPower(RF22_TXPOW_8DBM);
 //    setTxPower(RF22_TXPOW_17DBM);
 
+// Set the AFC for receiver to max. 0,1MHz
+// Other AFC-Registers have PowerOnValues which enable AFC
+// RF22_AFC_LIMIT                          0x50   =0,1MHz
+   rf22.spiWrite(RF22_REG_2A_AFC_LIMITER, RF22_AFC_LIMIT);  // POR=0x00 = OFF
+
     return true;
 }