Can someone explain the function of SX_FREQ_TO_CHANNEL?
Hello,
I'm working on an application that uses the NUCLEO-WL55JC development board. I was looking in the SubGHz_Phy_PingPong example code, and I noticed a macro called SX_FREQ_TO_CHANNEL. To use this macro, it seems you input the carrier wave frequency you want to transmit at, and it converts it to the value you pass as an array of 8-bit numbers to HAL_SUBGHZ_ExecSetCmd(&hsubghz, RADIO_SET_RFFREQUENCY, array, arr_len).
So if I want to transmit at 868 MHz, I give that value to SX_FREQ_TO_CHANNEL, which outputs 910,163,968. But why is SX_FREQ_TO_CHANNEL needed at all? Why can't I pass 868,000,000 directly in the RADIO_SET_RFFREQUENCY packet?
I think it has something to do with the RF-PLL frequency, but I don't understand. Can someone help explain why RADIO_SET_RFFREQUENCY doesn't actually set RF-PLL to frequency included in the packet?
Thanks in advance.
