Lines Matching refs:rf_cfg

112 	struct dwt_phy_config rf_cfg;  member
128 .rf_cfg = {
464 if (ctx->rf_cfg.prf == DWT_PRF_16M) { in dwt_irq_handle_rx()
631 struct dwt_phy_config *rf_cfg = &ctx->rf_cfg; in dwt_get_pkt_duration_ns() local
632 float t_psdu = rf_cfg->t_dsym * psdu_len * 8; in dwt_get_pkt_duration_ns()
634 return (rf_cfg->t_shr + rf_cfg->t_phr + t_psdu); in dwt_get_pkt_duration_ns()
681 struct dwt_phy_config *rf_cfg = &ctx->rf_cfg; in dwt_set_channel() local
691 rf_cfg->channel = channel; in dwt_set_channel()
969 struct dwt_phy_config *rf_cfg = &ctx->rf_cfg; in dwt_attr_get() local
972 rf_cfg->prf == DWT_PRF_64M ? IEEE802154_PHY_HRP_UWB_NOMINAL_64_M in dwt_attr_get()
1030 struct dwt_phy_config *rf_cfg = &ctx->rf_cfg; in dwt_set_rx_mode() local
1041 t_on_us = (rx_sniff[0] + 1) * (BIT(3) << rf_cfg->rx_pac_l); in dwt_set_rx_mode()
1273 struct dwt_phy_config *rf_cfg = &ctx->rf_cfg; in dwt_configure_rf_phy() local
1274 uint8_t chan = rf_cfg->channel; in dwt_configure_rf_phy()
1275 uint8_t prf_idx = rf_cfg->prf; in dwt_configure_rf_phy()
1299 if (rf_cfg->rx_shr_code >= ARRAY_SIZE(dwt_lde_repc_defs)) { in dwt_configure_rf_phy()
1301 rf_cfg->rx_shr_code); in dwt_configure_rf_phy()
1310 if (rf_cfg->rx_pac_l >= DWT_NUMOF_PACS) { in dwt_configure_rf_phy()
1311 LOG_ERR("RX PAC not supported %u", rf_cfg->rx_pac_l); in dwt_configure_rf_phy()
1315 if (rf_cfg->rx_ns_sfd > 1) { in dwt_configure_rf_phy()
1320 if (rf_cfg->tx_shr_nsync >= DWT_NUM_OF_PLEN) { in dwt_configure_rf_phy()
1325 lde_repc = dwt_lde_repc_defs[rf_cfg->rx_shr_code]; in dwt_configure_rf_phy()
1327 sfdto = rf_cfg->rx_sfd_to; in dwt_configure_rf_phy()
1332 tune2 = dwt_tune2_defs[prf_idx][rf_cfg->rx_pac_l]; in dwt_configure_rf_phy()
1334 tune0b = dwt_tune0b_defs[rf_cfg->dr][rf_cfg->rx_ns_sfd]; in dwt_configure_rf_phy()
1348 if (rf_cfg->dr == DWT_BR_110K) { in dwt_configure_rf_phy()
1356 if (rf_cfg->tx_shr_nsync == DWT_PLEN_64) { in dwt_configure_rf_phy()
1366 if (rf_cfg->prf == DWT_PRF_64M) { in dwt_configure_rf_phy()
1372 if (rf_cfg->prf == DWT_PRF_64M) { in dwt_configure_rf_phy()
1388 if (rf_cfg->prf == DWT_PRF_64M) { in dwt_configure_rf_phy()
1431 if (rf_cfg->rx_ns_sfd) { in dwt_configure_rf_phy()
1438 dwt_ns_sfdlen[rf_cfg->dr]); in dwt_configure_rf_phy()
1439 LOG_DBG("USR_SFDLEN: 0x%02x", dwt_ns_sfdlen[rf_cfg->dr]); in dwt_configure_rf_phy()
1449 chan_ctrl |= (BIT(rf_cfg->prf) << DWT_CHAN_CTRL_RXFPRF_SHIFT) & in dwt_configure_rf_phy()
1453 chan_ctrl |= (rf_cfg->tx_shr_code << DWT_CHAN_CTRL_TX_PCOD_SHIFT) & in dwt_configure_rf_phy()
1457 chan_ctrl |= (rf_cfg->rx_shr_code << DWT_CHAN_CTRL_RX_PCOD_SHIFT) & in dwt_configure_rf_phy()
1465 tx_fctrl = dwt_plen_cfg[rf_cfg->tx_shr_nsync] | in dwt_configure_rf_phy()
1466 (BIT(rf_cfg->prf) << DWT_TX_FCTRL_TXPRF_SHFT) | in dwt_configure_rf_phy()
1467 (rf_cfg->dr << DWT_TX_FCTRL_TXBR_SHFT); in dwt_configure_rf_phy()
1500 uint16_t nsync = BIT(rf_cfg->tx_shr_nsync + 6); in dwt_configure_rf_phy()
1502 if (rf_cfg->prf == DWT_PRF_64M) { in dwt_configure_rf_phy()
1503 rf_cfg->t_shr = UWB_PHY_TPSYM_PRF64 * in dwt_configure_rf_phy()
1506 rf_cfg->t_shr = UWB_PHY_TPSYM_PRF16 * in dwt_configure_rf_phy()
1510 if (rf_cfg->dr == DWT_BR_6M8) { in dwt_configure_rf_phy()
1511 rf_cfg->t_phr = UWB_PHY_NUMOF_SYM_PHR * UWB_PHY_TDSYM_PHR_6M8; in dwt_configure_rf_phy()
1512 rf_cfg->t_dsym = UWB_PHY_TDSYM_DATA_6M8 / 0.44; in dwt_configure_rf_phy()
1513 } else if (rf_cfg->dr == DWT_BR_850K) { in dwt_configure_rf_phy()
1514 rf_cfg->t_phr = UWB_PHY_NUMOF_SYM_PHR * UWB_PHY_TDSYM_PHR_850K; in dwt_configure_rf_phy()
1515 rf_cfg->t_dsym = UWB_PHY_TDSYM_DATA_850K / 0.44; in dwt_configure_rf_phy()
1517 rf_cfg->t_phr = UWB_PHY_NUMOF_SYM_PHR * UWB_PHY_TDSYM_PHR_110K; in dwt_configure_rf_phy()
1518 rf_cfg->t_dsym = UWB_PHY_TDSYM_DATA_110K / 0.44; in dwt_configure_rf_phy()