How to use setModemRegisters in RF24
ModemConfig * config is a pointer to a ModemConfig struct.

You need to create a ModemConfig struct, populate it then pass a pointer to it in the call to the setModemConfig() function.

Something like this:

// create the struct
ModemConfig mc = ModemConfig();

... //populate the struct values

// then call the function
setModemConfig(&amp;mc);


The datarate is the rate at which you are sending information over the radio channel (not between the MCU and the Si4463).

The bandwidth is the range of frequencies used in the radio transmission (e.g. in FSK if a low/0 is 99.95MHz and a high/1 is 100.05Mhz then the bandwidth would be 100Khz)