Lines Matching full:rf
215 * RF functions *
237 /* See Section 9.12 - RF programming
244 * Freq = ( RF * Lo_Div * 2^16 ) / Xtal
246 * RF and Xtal are, from here, expressed in KHz.
248 * It first calculates the targeted RF with given ChanCenterFreq0, channel
251 * The calculation will slice the targeted RF by multiple of 10:
253 * Let's take the 434000 KHz RF for instance:
255 * Or the 169406 KHz RF, 4 parts: 100000, 60000, 9000, 406.
273 uint32_t rf, lo_div; in rf_evaluate_freq_setting() local
275 rf = ctx->rf_settings->chan_center_freq0 + in rf_evaluate_freq_setting()
279 LOG_DBG("Calculating freq for %u KHz RF (%u)", rf, lo_div); in rf_evaluate_freq_setting()
281 while (rf > 0) { in rf_evaluate_freq_setting()
284 if (rf < 1000) { in rf_evaluate_freq_setting()
285 hz = rf; in rf_evaluate_freq_setting()
287 hz = rf / mult_10; in rf_evaluate_freq_setting()
309 rf -= hz; in rf_evaluate_freq_setting()
331 LOG_ERR("Could not install RF settings"); in rf_install_settings()
343 LOG_ERR("Could not calibrate RF"); in rf_calibrate()