rf12_control()
This call provides direct access to the RFM12B registers. If you're careful to avoid configuring the wireless module in a way which stops the driver from functioning, this can be used to adjust frequencies, power levels, RSSI threshold, etc. See the RFM12B wireless module documentation.
This call will briefly disable interrupts to avoid clashes on the SPI bus.
Returns the 16-bit value returned by SPI. Probably only useful with a "0x0000" status poll command.
#include <RF12.h>
#include <Ports.h> // needed to avoid a linker error :(
word rf12_control(word cmd);
Parameters
cmd
RF12 16-bit command, topmost bits will determine which register is affected.