Compilation errors when using rf12_control() with RFM69CW
I have an RFM69CW and i’m trying to change the baud rate using:
But when I try to compile the code I get an error message:
undefined reference to `rf69_control(unsigned int)’
Anyone know why this is happening please?
I think I covered this only a few days ago.
rf12_control(0xC686); is the valid command for an RFM12B. You will need to take a look at the RFM69CW datasheet to find out which register(s) to change.
The code from RF12Demo looks like this:
Stack is the register number that you wish to change to “value”. Set registers is done with
stack = (register_number | 80). That is the high order bit 1 indicates a register write while high order bit 0 indicates register read.