Project

General

Profile

Compilation errors when using rf12_control() with RFM69CW

Added by zooto68 over 4 years ago

I have an RFM69CW and i’m trying to change the baud rate using:

rf12_control(0xC686);

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?

Thanks,

Mike


Replies (1)

RE: Compilation errors when using rf12_control() with RFM69CW - Added by JohnO over 4 years ago

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[1] is the register number that you wish to change to “value”. Set registers is done with stack[1] = (register_number | 80). That is the high order bit 1 indicates a register write while high order bit 0 indicates register read.

    (1-1/1)