Lines Matching full:phy

102 /* BLE PHY data structure */
223 * bit in the NVIC just to be sure when we disable the PHY.
267 * For LE Coded PHY this also includes CI and TERM1. */
289 * Workarounds should be applied only when switching to/from LE Coded PHY in ble_phy_apply_nrf52840_errata()
393 * Copies the data from the phy receive buffer into a mbuf chain.
510 * phy, thus we'll offset RTC by 2 full ticks (61 usecs) and then compensate in ble_phy_set_start_time()
632 * @param tx_phy_mode phy mode for last TX (only valid for TX->RX)
639 uint8_t phy; in ble_phy_wfr_enable() local
641 phy = g_ble_phy_data.phy_cur_phy_mode; in ble_phy_wfr_enable()
658 if ((phy == BLE_PHY_MODE_CODED_125KBPS) || in ble_phy_wfr_enable()
659 (phy == BLE_PHY_MODE_CODED_500KBPS)) { in ble_phy_wfr_enable()
661 * Some controllers exceed T_IFS when transmitting on coded phy in ble_phy_wfr_enable()
684 end_time += ble_phy_mode_pdu_start_off(phy); in ble_phy_wfr_enable()
686 end_time += g_ble_phy_t_rxaddrdelay[phy]; in ble_phy_wfr_enable()
799 * On Coded PHY there are CI and TERM1 fields before PDU starts so we need in ble_phy_rx_xcvr_setup()
836 int phy; in ble_phy_tx_end_isr() local
844 /* Store PHY on which we've just transmitted smth */ in ble_phy_tx_end_isr()
883 /* See if a new phy has been specified for tx to rx transition */ in ble_phy_tx_end_isr()
884 phy = g_ble_phy_data.phy_txtorx_phy_mode; in ble_phy_tx_end_isr()
885 if (phy != g_ble_phy_data.phy_cur_phy_mode) { in ble_phy_tx_end_isr()
886 ble_phy_mode_set(phy, phy); in ble_phy_tx_end_isr()
923 uint8_t phy; in ble_phy_get_cur_rx_phy_mode() local
925 phy = g_ble_phy_data.phy_cur_phy_mode; in ble_phy_get_cur_rx_phy_mode()
929 * For Coded PHY mode can be set to either codings since actual coding is in ble_phy_get_cur_rx_phy_mode()
934 if ((phy == BLE_PHY_MODE_CODED_125KBPS) || in ble_phy_get_cur_rx_phy_mode()
935 (phy == BLE_PHY_MODE_CODED_500KBPS)) { in ble_phy_get_cur_rx_phy_mode()
936 phy = NRF_RADIO->PDUSTAT & RADIO_PDUSTAT_CISTAT_Msk ? in ble_phy_get_cur_rx_phy_mode()
942 return phy; in ble_phy_get_cur_rx_phy_mode()
969 /* Count PHY crc errors and valid packets */ in ble_phy_rx_end_isr()
1028 /* XXX: we may have asymmetric phy so next phy may be different... */ in ble_phy_rx_end_isr()
1091 ble_hdr->rxinfo.phy = ble_phy_get_cur_phy(); in ble_phy_rx_start_isr()
1183 /* Disable PHY */ in ble_phy_rx_start_isr()
1339 * ble phy init
1341 * Initialize the PHY.
1343 * @return int 0: success; PHY error code otherwise
1350 /* Default phy to use is 1M */ in ble_phy_init()
1365 /* Set phy channel to an invalid channel so first set channel works */ in ble_phy_init()
1422 /* TIMER0 setup for PHY when using RTC */ in ble_phy_init()
1450 /* Register phy statistics */ in ble_phy_init()
1468 * Puts the phy into receive mode.
1470 * @return int 0: success; BLE Phy error code otherwise
1511 * Called to enable encryption at the PHY. Note that this state will persist
1512 * in the PHY; in other words, if you call this function you have to call
1513 * disable so that future PHY transmits/receives will not be encrypted.
1735 /* Set the PHY transition */ in ble_phy_tx()
1744 /* Set phy state to transmitting and count packet statistics */ in ble_phy_tx()
1759 * ble phy txpwr set
1793 * ble phy txpwr round
1816 * ble phy set access addr
1822 * @return int 0: success; PHY error code otherwise
1840 * ble phy txpwr get
1844 * @return int The current PHY transmit power, in dBm
1853 * ble phy setchan
1864 * @return int 0: success; PHY error code otherwise
1902 * ble phy disable irq and ppi
1905 * wait for response timeout or a packet being received and the phy is to be
1907 * the phy.
1935 * ble phy disable
1937 * Disables the PHY. This should be called when an event is over. It stops
1957 * Return the phy state
1959 * @return int The current PHY state.
1993 * phy. For this chip, if encryption is enabled, the maximum payload is 27